git branch --merged master | grep -v 'master$' | xargs git branch -d
- GitHub Staff
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
trie-based siwtch: | |
match(arg)({ | |
'this': () => console.log('this'), | |
'that': () => console.log('this'), | |
})(default) | |
match(arg)( |
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
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
unstage = reset HEAD -- | |
last = log -1 HEAD | |
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d" |
- juqery plugin: https://github.com/ubilabs/geocomplete
- google places: https://developers.google.com/maps/documentation/javascript/examples/place-search
- node-googlemaps: https://github.com/moshen/node-googlemaps
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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
"use strict"; | |
var gulp = require('gulp'); | |
// plugins | |
var plumber = require('gulp-plumber'); | |
var uglify = require('gulp-uglify'); | |
var notify = require('gulp-notify'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
// deps | |
var source = require('vinyl-source-stream'); |
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
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl |
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
watch = require('watch'); | |
fs = require('fs'); | |
var cmd = require('child_process').spawn('cmd'), myArgs; | |
console.log('watcher started'); | |
myArgs = process.argv.slice(2); | |
myDir = myArgs[0]; | |
outDir = myArgs[1] || ''; | |
outDir = stripTrailingSlash(outDir); |
NewerOlder