Skip to content

Instantly share code, notes, and snippets.

View jlank's full-sized avatar

John Lancaster jlank

  • SADA Systems | OrgFunder
  • Washington DC
View GitHub Profile
var spawn = require('child_process').spawn,
temp = require('temp');
Audio.prototype.slowDown = function rb(options, input, cb) {
var speed = options.speed,
s = (this.isNumeric(speed) ? Math.pow(speed, -1) :
this.error('speed needs a number')),
slow = null;
console.log('if this prints it will work');
@jlank
jlank / gist:2607109
Created May 6, 2012 02:19
stdin issues
#!/usr/bin/env node
var Audio = require('./lib/audio'),
argv = require('optimist')
.options('i', { alias: 'input', })
.options('o', { alias: 'output', })
.argv
;
var a = new Audio();
@jlank
jlank / gist:2606760
Created May 6, 2012 01:11
Streaming to stdout
#!/usr/bin/env node
var Audio = require('./lib/audio'),
fs = require('fs'),
argv = require('optimist');
var a = new Audio();
var output = fs.createWriteStream('slow.wav');
var cb = function (err, res) {
@jlank
jlank / gist:2592160
Created May 4, 2012 05:03
Trying to list S2 objects with awssum
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var S3Service = awssum.load('amazon/s3');
var s3 = new S3Service(config.aws.accessKeyId,
config.aws.secretAccessKey, config.aws.awsAccountID, amazon.US_EAST_1);
var options1 = { BucketName: 'sdcdntest' };
s3.ListObjects(options1, function (err, data) {
console.dir(data);
@jlank
jlank / about.md
Created January 5, 2012 03:15 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer