Skip to content

Instantly share code, notes, and snippets.

require.paths.unshift("./deps");
require('proto');
var connect = require('connect'),
express = require('express'),
assetManager = require('connect-assetmanager'),
assetHandler = require('connect-assetmanager-handlers'),
log = require('./lib/util/log').from(__filename),
content = require('./lib/content'),
//changed by dylang to work in os x with newer versions of node.
var sys = require('sys'),
fs = require('fs'),
child_process = require('child_process'),
spawn = child_process.spawn,
exec = child_process.exec,
path = require('path'),
stdin = process.openStdin(),
args = parse(process.argv),
require.paths.unshift('./support');
require.paths.unshift('./support/connect/lib');
require('proto');
var log = require('./lib/util/log').from(__filename),
Connect = require('connect'),
Express = require('express'),
Assets = require('./lib/assets'),
/*
Node 0.2.3
Requesting the https url works most urls - including the following url with invalid username and password.
Normally if the username and password are correct this service forwards to another https page (the dashboard)
I cannot put my real username and password in this gist for obvious reasons.
*/
var request = require('request');
info: Creating snapshot 5.0.0-169
info: Updating app doodleordie
debug: { method: 'PUT',
debug: uri: 'http://api.nodejitsu.com/apps/doodleordie/doodleordie',
debug: headers:
debug: { Authorization: 'Basic ZG9vZGxlb3JkaWU6ZG9kISE=',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"doodleordie","description":"Doodle drawing game.","homepage":"http://doodleordie.com","author":"Dylan Greene <dylang@gmail.com>","contributors":["Dylan Greene <dylang@gmail.com>","Aaron Silverman <aaron@aaronplusplus.com >","Garrett Miller <heyitsgarrett@gmail.com>"],"dependencies":{"mongodb":"*","async":"*","express":"2.x","ejs":"*","logging":"*","longjohn":"*","cli-color":"*","knox":"*","uglify-js":"*","stylus":"*","nib":"*","everyauth":"0.2.x","useragent":"*","shortid":"*","moment":"*","ansi":"*","request":"*","canvas":"0.12.x","nodetime":"*"},"bundleDependencies":["async","express","ejs","logging","longjohn","cli-color","uglify-js","stylus","nib","eve
@dylang
dylang / gist:3694235
Created September 10, 2012 21:58
piehole
function testPie(element) {
// constants
var FONT = 'ProximaNova';
var WIDTH = 390,
HEIGHT = 390,
@dylang
dylang / spawn-as-promised.js
Created November 11, 2013 17:22
spawn as promised - use child_process.spawn as a q promise.
var cp = require('child_process');
var q = require('q');
function spawn(command, args, options) {
var process;
var stderr = '';
var stdout = '';
var deferred = q.defer();
process = cp.spawn(command, args, options);
@dylang
dylang / gulp.json
Created January 3, 2014 19:29
npm modules using gulp as of Jan 3, 2014
{"rows":[
{"key":["gulp","*","gulp-filesize"],"value":1},
{"key":["gulp","*","gulp-load"],"value":1},
{"key":["gulp","~0.0.5","gulp-license"],"value":1},
{"key":["gulp","~0.1.0","gulp-minify-css"],"value":1},
{"key":["gulp","~0.1.0","gulp-minify-html"],"value":1},
{"key":["gulp","~0.2.0","gulp-swig"],"value":1},
{"key":["gulp","~1.0.0","gulp-footer"],"value":1},
{"key":["gulp","~1.0.0","gulp-gzip"],"value":1},
{"key":["gulp","~1.0.0","gulp-header"],"value":1},
@dylang
dylang / keybase.md
Created May 20, 2014 12:55
Keybase

Keybase proof

I hereby claim:

  • I am dylang on github.
  • I am dylang (https://keybase.io/dylang) on keybase.
  • I have a public key whose fingerprint is 5E26 1B8B A201 550F 0490 C5DA 4F20 AAA2 4613 08CC

To claim this, I am signing this object:

@dylang
dylang / .gistup
Created September 29, 2014 21:26
gistup