Skip to content

Instantly share code, notes, and snippets.

View DavidSouther's full-sized avatar

David Souther DavidSouther

View GitHub Profile
require("ncp").ncp("node_modules/docco/resources/parallel/", "parallel", function(err, res) { console.log("done:", arguments); });
# Sublime package NVM node path configuration
# Save this file in:
# ~/.config/sublime-text-2/Packages/node_env.py
import os
os.environ["PATH"] = "/home/joao/.nvm/v0.10.2/bin:/home/joao/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
print "PATH=" + os.environ["PATH"]
@DavidSouther
DavidSouther / canvas.js
Last active December 14, 2015 05:29 — forked from anonymous/canvas.js
(function(){
/*
Get a new SVG canvas, with margins and scales. Pass an object as `options` to
set values. Defaults:
{
size: # Size of SVG. Returned size will be smaller by the size of the margins.
width: 960
height: 500
margin: # Margins for the graphic.