Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
librarian-pku committed Nov 22, 2018
1 parent 69365fe commit 2509acf
Show file tree
Hide file tree
Showing 238 changed files with 81,927 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@
*.exe
*.out
*.app

node_modules/
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: node_js
node_js:
- "10"
before_script:
- npm install directory-tree
script:
- echo 'XD'
after_deploy:
- git clone https://github.com/lib-pku/lib-pku.github.io.git
- node index.js > lib-pku.github.io/index.md
- cd lib-pku.github.io
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git add .
- git commit -m 'Add files via upload'
- git remote add origin https://${DEPLOY_TOKEN}@github.com/lib-pku/lib-pku.github.io.git
- git push origin master -f
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
这不是北京大学图书馆。
我们也不对项目中信息的准确性或真实性做任何承诺。


## License

资料来自网络,相关权利由原作者所有,这个 repo 仅用于收集现有资料。

我们尝试为后来的同学节省一些时间。
当然,我们不会为收集到的资料收费,或是尝试收取捐赠。

我们只是尝试为后来的同学节省一些时间。
25 changes: 25 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const dirTree = require("directory-tree");
const tree = dirTree(".", {
exclude: /node_modules|\.git/,
extensions: /^((?!js).)*$/
});

let prefix = `https://github.com/lib-pku/libpku/tree/master/`;
function solve(e, depth) {
let s = "";
let res = [];
if (e.type == "directory") {
for (let i = 0; i < depth; ++i) s += "#";
res.push(`${s} ${e.name}`);
} else if (e.type == "file") {
res.push(`[${e.name}](${prefix + encodeURIComponent(e.path)})`);
}
if (e.children) {
e.children.forEach(ww => {
res.push(solve(ww, depth + 1));
});
}
return res.join("\n");
}

console.log(solve(tree, 1));
Binary file added 专业课/web技术概论/web技术概论.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/力学B/2009信科力学期中.docx
Binary file not shown.
Binary file added 专业课/力学B/2009信科力学期中.pdf
Binary file not shown.
Binary file added 专业课/力学B/2012级力学期中 (1).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/力学B/2012级力学期中 (2).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/力学B/2017秋力学B期中题解.rar
Binary file not shown.
Binary file added 专业课/力学EX/力学2013免修1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/力学EX/力学2013免修2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/固体物理/2014吕劲期末.docx
Binary file not shown.
Binary file added 专业课/固体物理/2015吕劲期末.docx
Binary file not shown.
Binary file added 专业课/固体物理/2017吕劲期末.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/数学分析A/邵嗣烘期末 (1).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/数学分析A/邵嗣烘期末 (2).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/数据仓库与数据挖掘/提纲.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/数据结构与算法/提纲.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/概率统计A/2017章复熹期中.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added 专业课/生物信息处理/往年题整理.docx
Binary file not shown.
Binary file added 专业课/生物信息处理/期末重点1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/生物信息处理/期末重点2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/生物信息处理/期末重点3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 专业课/电磁学B/2012期中考试03.pdf
Binary file not shown.
Binary file not shown.
Binary file added 专业课/电磁学B/电磁学2011期中.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions 专业课/算法设计与分析/2011算分期末.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://www.docin.com/p-935242297.html
Loading

0 comments on commit 2509acf

Please sign in to comment.