- GitHub Staff
This file contains hidden or 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
var domready = require('domready') | |
, bean = require('bean') // events | |
, bonzo = require('bonzo') // DOM wrapper/manipulation | |
, request = require('superagent/superagent') | |
, qwery = require('qwery') // css selectors | |
, slice = Array.prototype.slice; | |
// Attach events API to the prototype of DOM wrapper: | |
var aug = {}; | |
['on', 'off', 'one', 'add', 'fire', 'clone'].forEach(function (k) { |
This file contains hidden or 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); |
This file contains hidden or 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 hidden or 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 hidden or 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 |
- 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
git branch --merged master | grep -v 'master$' | xargs git branch -d
This file contains hidden or 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" |