# 汇总
# 学习资料
//查看npm源
npm config get registry
// 或
npm config list
# 默认源
npm config set registry https://registry.npmjs.org
# https -> http,这样网速就会好很多
npm config set registry http://registry.npmjs.org
# 如果还不能下载,就切换成淘宝源
npm config set registry https://registry.npm.taobao.org
# yarn 获取默认安装源
yarn config get registry https://registry.yarnpkg.com
# yarn 设置新安装源
yarn config set registry https://registry.npm.taobao.org
# yarn 安装或升级最新版本
sudo apt-get update && sudo apt-get install yarn
# git 添加子仓库
//在主仓库执行如下命令
git submodule add 子仓库ssh地址
//添加成功后主仓库根目录增加了.gitmodule文件
# 添加完子仓库后
git submodule init // 初始化本地配置文件
git submodule update // 检出主仓库列出的commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# git回退版本
git reset --hard id //(例如commit id 为: 7222c8f6be2d663982faa98dffe2647966b438b1)
git push origin HEAD --force //推送到本地到远程仓库:让远程仓库代码和你本地一样,到当前你本地的版本。
1
2
3
4
2
3
4
# OpenLayers资源
Valine (opens new window) 一款快速、简洁且高效的无后端评论系统。
Vssue (opens new window) Vue 驱动的、基于 Issue 的评论插件
codepen (opens new window) 在线执行代码
leetcode (opens new window) 程序算法练习
# 粒子动画
- 按钮点击粒子动画 (opens new window)
- 基因螺旋粒子 (opens new window)
- threejs (opens new window)
- 银河系背景 (opens new window)
- SVG科幻动画圆圈旋转 (opens new window)
# SVG动画资源
# webpack
为处理资源管理和分割代码而生,可以包含任何类型的文件。灵活,插件多。
# rollup
用标准化的格式(es6)来写代码,通过减少死代码尽可能地缩小包体积。
# parcel
超快的打包速度,多线程在多核上并发编译,不用任何配置。、