Skip to content

Commit 1122f52

Browse files
committed
Adjust format of c, cpp source files: astyle --style=linux -n -U -H -p -f
1 parent 67e610d commit 1122f52

36 files changed

+2495
-1773
lines changed

README.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

2+
![](images/logo.png)
3+
24
# 中国科学技术大学课程资源
5+
36
[![Stars](https://img.shields.io/github/stars/USTC-Resource/USTC-Course.svg?label=Stars&style=social)](https://github.com/USTC-Resource/USTC-Course/stargazers)
47
[![Forks](https://img.shields.io/github/forks/USTC-Resource/USTC-Course.svg?label=Forks&style=social)](https://github.com/USTC-Resource/USTC-Course/network/members)
58
[![Build](https://travis-ci.org/USTC-Resource/USTC-Course.svg?branch=master)](https://travis-ci.org/USTC-Resource/USTC-Course?branch=master)
@@ -31,6 +34,37 @@
3134
# 资料下载
3235
[戳我(●'◡'●)](https://ustc-resource.github.io/USTC-Course)
3336

37+
<!--
38+
## FTP
39+
1. FTP/FTPS:
40+
- 地址:ftp.ustclug.org;
41+
- 路径:/ebook/USTC-CS-Courses-Resource;
42+
- 用户名:ftp;
43+
- 密码:ftp;
44+
2. SFTP (Secure File Transfer Protocol):
45+
- 地址:ftp.ustclug.org;
46+
- 路径:/ebook/USTC-CS-Courses-Resource;
47+
- 用户名:ftp;
48+
- 密码:ftp;
49+
3. AFP (Apple Filing Protocol)
50+
- 地址:afp://ftp.ustclug.org/;
51+
- 路径:/ebook/USTC-CS-Courses-Resource;
52+
- Connect As Guest
53+
54+
感谢 @USTC-LUG, @[zzh1996](https://github.com/zzh1996), @[volltin](https://github.com/volltin)
55+
56+
57+
## HTTPS
58+
59+
- [github 网页](#课程目录)
60+
- [DownGit](http://downgit.zhoudaxiaa.com/#/home)
61+
- [gitzip-chrome-extension](https://chrome.google.com/webstore/detail/gitzip-for-github/ffabmkklhbepgcgfonabamgnfafbdlkn)
62+
63+
注意,建议不要直接用 GitHub 仓库的 `Download Zip`。因为网速慢,而且仓库很大,很可能下载到中途就切断连接了。
64+
推荐用 DownGit 工具,方法很简单,在 GitHub 这里浏览网页到某个文件夹,然后将这个网页地址粘贴到 DownGit 下载即可。
65+
66+
-->
67+
3468
# 课程结构
3569
每门课程大致结构如下,有些栏目可能没有,也可以自己添加认为合理的栏目
3670
```
@@ -45,7 +79,7 @@ course
4579
└ README.md
4680
```
4781
# 课程关系
48-
![](https://user-images.githubusercontent.com/29198767/53245024-851b1280-36e7-11e9-9d22-7ee65446c68a.png)
82+
![](images/course.png)
4983

5084
更多信息可以下载[官网的培养方案](https://www.teach.ustc.edu.cn/education/241.html/attachment/14-215%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AD%A6%E9%99%A2-2013)
5185

@@ -58,6 +92,7 @@ course
5892
* [c程序设计](./c程序设计)
5993
* [代数结构](./代数结构)
6094
* [光学与原子物理](./光学与原子物理)
95+
* [images](./images)
6196
* [计算机网络](./计算机网络)
6297
* [计算机系统详解](./计算机系统详解)
6398
* [计算机与信息类](./计算机与信息类)
@@ -93,3 +128,31 @@ course
93128
* github 上不能直接上传大于 100mb 的文件。对于超过 100 mb 的文件,可以存在网盘,然后在 README 文件中贴上链接
94129
* 文件内容的改动会使 git 重新上传, 在没有必要的情况下, 不要对二进制文件做任何更改.
95130

131+
<!--
132+
可以通过如下方式贡献
133+
- 帮忙上传: 可以发给仓库维护者帮忙上传,或者提 issue
134+
- 用网页操作或者[桌面版](https://desktop.github.com/) fork and pull request. 操作方式可以参考 [这里](https://blog.csdn.net/qq_29277155/article/details/51048990) 和[这里](https://blog.csdn.net/zhangw0_0/article/details/50667891),[PR](https://blog.csdn.net/huutu/article/details/51018317)
135+
136+
- 用命令行: 注意仓库较大,直接 clone 很慢. 可以使用 sparse-checkout, 只下载指定的目录
137+
执行
138+
```shell
139+
mkdir ustc-courses #文件夹名可以自己取
140+
cd ustc-courses
141+
git init
142+
git remote add -f origin git@github.com:mbinary/USTC-CS-Courses-Resource.git
143+
git config core.sparsecheckout true
144+
echo "计算机与信息类/软件工程" >> .git/info/sparse-checkout #这里工作目录就是在那个 repo 主页下
145+
146+
#如果还有其他目录,都像上面一样加入即可,如 `echo "计算机与信息类/图论/slides" >> .git/info/sparse-checkout`
147+
#只需记住的是 加入的目录应该在远程仓库存在,否则报错“error: Sparse checkout leaves no entry on the working directory”
148+
149+
git pull origin master
150+
git remote add upstream git@github.com:mbinary/USTC-CS-Courses-Resource.git
151+
```
152+
更新内容后
153+
```shell
154+
git fetch upstream/master
155+
git merge upstream/master
156+
```
157+
-->
158+

0 commit comments

Comments
 (0)