- 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
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 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
"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
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 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" |
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
fs = require 'fs' # node file system module | |
path = require 'path' # node path module | |
# returns json tree representation of directory structure | |
tree = (root) -> | |
# clean trailing '/' | |
root = root.replace /\/+$/ , "" | |
# extract tree ring if root exists | |
if fs.existsSync root | |
ring = fs.lstatSync root |
OlderNewer