Skip to content

Instantly share code, notes, and snippets.

@jisaacks
jisaacks / gulpfile.js
Created October 15, 2015 20:12 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@jisaacks
jisaacks / README.md
Last active December 15, 2015 13:59 — forked from mbostock/.block

This example demonstrates the use of setting the dragConstraints property for a brush.

# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
#!/usr/bin/env ruby
# Notifies you when certain files are changed which necessitate further action on your part.
#
# To enable:
# - copy this file to .git/hooks/post-merge
# - chmod +x .git/hooks/post-merge
commits = `git reflog -n 2`.lines.map { |l| l.split.first }
changed = `git diff --name-only #{commits.first} #{commits.last}`.lines.map &:strip