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
execute pathogen#infect() | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
filetype plugin on | |
filetype indent on | |
set nu |
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
W0F1dG9Qcm94eSAwLjIuOV0KISBDaGVja3N1bTogY3o2d2w4bVZyRGNYNkZUNW0w | |
TVdNdwohIEV4cGlyZXM6IDZoCiEgVGl0bGU6IEdGV0xpc3Q0TEwKISBHRldMaXN0 | |
IHdpdGggRVZFUllUSElORyBpbmNsdWRlZAohIExhc3QgTW9kaWZpZWQ6IFRodSwg | |
MTMgQXByIDIwMTcgMjM6NDk6MzYgLTA0MDAKIQohIEhvbWVQYWdlOiBodHRwczov | |
L2dpdGh1Yi5jb20vZ2Z3bGlzdC9nZndsaXN0CiEgTGljZW5zZTogaHR0cHM6Ly9y | |
YXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dmd2xpc3QvZ2Z3bGlzdC9tYXN0ZXIv | |
Q09QWUlORy50eHQKIQohIEdGV0xpc3QgaXMgdW5saWtlbHkgdG8gZnVsbHkgY29t | |
cHJpc2UgdGhlIHJlYWwKISBydWxlcyBiZWluZyBkZXBsb3llZCBpbnNpZGUgR0ZX | |
IHN5c3RlbS4gV2UgdHJ5CiEgb3VyIGJlc3QgdG8ga2VlcCB0aGUgbGlzdCB1cCB0 | |
byBkYXRlLiBQbGVhc2UKISBjb250YWN0IHVzIHJlZ2FyZGluZyBVUkwgc3VibWlz |
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
const ppi = function(height, width, inch) { | |
return Math.round(Math.sqrt(height*height + width*width) / inch); | |
} |
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
git log | grep -e 'commit [a-zA-Z0-9]*' | wc -l | |
# 不准确,如果提交信息里有commit ...字样也会计算进去 | |
# UPDATE: | |
git log --oneline | wc -l | |
# UPDATE 2: | |
# get the commit count for a revision (HEAD, master, a commit hash) | |
git rev-list --count <revision> | |
# get the commit count across all branches |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
// Goto Anything or Find in Files | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
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
! Put user rules line by line in this file. | |
! See https://adblockplus.org/en/filter-cheatsheet | |
||gist.github.com^ | |
||github.io^ | |
||githubusercontent.com^ | |
||s3.amazonaws.com^ | |
||postmates.com^ | |
||imgur.com^ | |
||quora.com^ | |
||quoracdn.net^ |
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
> @ test /Users/will/work/gitlab.-inc.com/new-live/pages/live | |
> npm run unit | |
> @ unit /Users/will/work/gitlab.-inc.com/new-live/pages/live | |
> ../../node_modules/.bin/cross-env BABEL_ENV=test ../../node_modules/.bin/karma start test/unit/karma.conf.js --single-run | |
19 05 2017 12:16:32.319:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/ | |
19 05 2017 12:16:32.323:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency | |
19 05 2017 12:16:32.336:INFO [launcher]: Starting browser PhantomJS |
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
sass_binary_site = https://npm.taobao.org/mirrors/node-sass/ | |
phantomjs_cdnurl = https://npm.taobao.org/mirrors/phantomjs/ | |
electron_mirror = https://npm.taobao.org/mirrors/electron/ | |
registry = https://registry.npm.taobao.org |
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
# You can try netstat | |
netstat -vanp tcp | grep 3000 | |
# For OSX El Capitan and newer (or if your netstat doesn't support -p), use lsof | |
lsof -i tcp:3000 |
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
defaults write com.apple.finder AppleShowAllFiles -bool true | |
killall Finder | |
# then restart finder |
OlderNewer