Skip to content

Instantly share code, notes, and snippets.

View abourget's full-sized avatar

Alexandre Bourget abourget

View GitHub Profile
@abourget
abourget / dust_lib_server.js
Created March 30, 2012 04:00
A quick and dirty dust.js command line compiler (written in NodeJS, for use elsewhere)
// you need to take out this line for it to work with node 0.6+:
// comment out this line in the dust/lib/server.js file after "npm install dust":
require.paths.unshift(path.join(__dirname, '..'));
// otherwise, you'll get:
/*
node test/server.js
@abourget
abourget / webrtcstuff.js
Created March 13, 2012 05:26
Simple WebRTC initiation code
if(window.Audio) {
var audio = new Audio("notification.ogg")
}
var name = ""
var name_el = <input maxlength=18 placeholder=_Name>
var name_error_el
var name_form_el
var message_list_el
var message_form_el
var message_ids = {}