This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build-css": "node-sass --include-path scss scss/main.scss public/css/main.css", | |
"watch-css": "nodemon -e scss -x \"npm run build-css\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Materialize/schemes/Material One Dark.tmTheme", | |
"theme": "Material One Dark.sublime-theme", | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"overlay_scroll_bars": "enabled", | |
"line_padding_top": 3, | |
"line_padding_bottom": 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C-v 向前翻页 | |
M(meta/alt)-v 向后翻页 | |
C-l 让光标位置居中 | |
C-p/n-b/f 方向 | |
M-p/n 按单词移动 | |
C/M-a/e 行(句)开头和行尾 | |
C-<> 文本开头和结尾 | |
C-u 8 C-f 向前移动8位(C-v 则按行数移动) | |
C-u 8 * 输入8个* | |
C-g 停止命令 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ImportError: cannot import name inputstream | |
pip install html5lib==1.0b8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
B085E65E 2F5F5360 8489D422 FB8FC1AA | |
93F6323C FD7F7544 3F39C318 D95E6480 | |
FCCC7561 8A4A1741 68FA4223 ADCEDE07 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = .... | |
email = ... | |
[push] | |
default = simple | |
[core] | |
editor = vim | |
git config --global user.name "x" | |
git config --global user.email "x@gmail.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装pip | |
python get-pip.py | |
# where is site package | |
# sudo apt-get install 安装的package存放在 /usr/lib/python2.7/dist-packages目录中 | |
# pip 或者 easy_install安装的package存放在/usr/local/lib/python2.7/dist-packages目录中 | |
import site; site.getsitepackages() | |
# virtualenv | |
virtualenv ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.ssh | |
# 生成 | |
ssh-keygen -t rsa -C “x@gmail.com” #三下回车,密码为空 | |
# 添加 | |
ssh-add 文件名 | |
# 复制到远程 | |
ssh-copy-id -i user@host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uname -a | |
Linux link-lxub1604 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:08:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux | |
$ lsb_release -r | |
Release: 16.04 | |
sudo apt-get install openssh-server | |
sudo /etc/init.d/ssh restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function invert(tree) { | |
if (!tree instanceof Array || tree.length === 1) return tree; | |
var ret = []; | |
var inverted = tree.reverse(); | |
for(var cur in inverted) { | |
if(!inverted.hasOwnProperty(cur)) continue; | |
ret.push(inverted[cur] instanceof Array ? invert(inverted[cur]) : inverted[cur]); | |
} |
OlderNewer