- To build a community of music lovers, visual artists, and JavaScript hackers.
- To create shared spaces for community members to practice, collaborate, program, and perform.
- Build some cool open-source music software in Node.js.
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
var $ = window.jQuery = require('jquery'); | |
var typeahead = require('typeahead.js'), | |
npmUrl = 'https://www.npmjs.org'; | |
$(document).ready(function() { | |
// Create the engine, used to interact | |
// with our search backend. | |
var engine = new Bloodhound({ | |
name: 'packages', |
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
a(b, function(err, c) { | |
// wait for a to finish. | |
d(c, function(err, e) { | |
// wait for d to finish. | |
f(e, function(err, g) { | |
// do something with the result of f. | |
}) | |
}) | |
}) |
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
function a(b, cb) { | |
d(null, b * 2, cb); | |
} | |
function d(err, c, cb) { | |
if (err) cb(err); | |
else f(null, c * 2, cb); | |
} | |
function f(err, e, cb) { |
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
drop schema public cascade; | |
create schema public; |
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
// var packages = ['thumbd', 'underscore', 'request']; | |
var async = require('async'); | |
function IssuePopulator(packages) { | |
this.interval = 1000; // try to grab more packages every second. | |
this.workSize = 10; | |
this.packages = packages; | |
}; | |
IssuePopulator.prototype.doWork = function() { |
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
// Problem: there are a class of packages on npm that are best described as "services", e.g., statsd, thumbd. | |
// there is not a straight-forward, machine-readable, way to setup the necessary dependencies for these services. | |
// | |
// Solution: the various parties that are building tools for deploying these services (Heroku, Node OS, ndm) should agree | |
// on a standard for programatically describing environment dependencies in the package.json. | |
// | |
// What Jacob and I came up with: | |
{ | |
"name": "statsd", | |
"dependencies": { |
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
var _ = require('lodash'); | |
function Combiner(opts) { | |
_.extend(this, { | |
inputs: [], // generators providing audio. | |
weights: [], | |
binding: null, // binding to audio native or gyp. | |
}, opts); | |
this.v1 = this.binding.allocateVector(), |
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
npm info it worked if it ends with ok | |
npm verb cli [ 'node', | |
npm verb cli '/usr/local/bin/npm', | |
npm verb cli 'unpublish', | |
npm verb cli '@npm/apple@0.0.33', | |
npm verb cli '--verbose' ] | |
npm info using npm@1.5.0-alpha-4 | |
npm info using node@v0.10.26 | |
npm verb gentlyRm vacuuming /Users/benjamincoe/.npm/@npm/apple/0.0.33 | |
npm verb mapToRegistry name @npm%2fapple |
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
var connection = require('../../lib/connection')(), | |
Customer = require('../../lib/models/customer'), | |
helper = require('../test-helper'), | |
Lab = require('lab'), | |
lab = exports.lab = Lab.script(); | |
// See prepare-tests.js, for follower feed ordering. | |
lab.experiment('Customer', function() { | |
lab.before(function(done) { |