Skip to content

Instantly share code, notes, and snippets.

// DOM Builder plugin for jQuery
// (c) Dan Webb (dan@massiverobot.co.uk)
//
// $.build(function() {
//
// div({ 'class': 'module' },
// h1('A list of stuff'),
// ul(
// li('item 1'),
// li('item 2'),
@danwrong
danwrong / 10
Created March 21, 2010 03:39
Twitter DJ Set Tracklist
Power Lunch - Har Mar Superstar
Chemical Beats (Dave Clarke Remix) - Chemical Brothers
When You Hear The Bassline - Major Lazer
Hey (Black Noise Remix) - Laidback Luke/Diplo
Chainsaw Calligraphy (Propatingz Crunk Massacre Remix) - 16 Bit
Breathe (Number9nine Remix) - The Prodigy
Alert - Liquid Stranger
Technophobe - N-Type & The Others
Explicit - Emalkay
Bow E3 - Wiley
require 'rubygems'
require 'twitter'
oauth = Twitter::OAuth.new('ctoken', 'csecret')
oauth.authorize_from_access('atoken', 'asecret')
twitter = Twitter::Base.new(oauth)
annotations = [
{:coffee => {:temperature => "hot", :effectiveness => "crack"}},
{:music => {
function DropDownMenu(element) {
element.addEventListener('mouseover mouseout', this, false);
}
DropDownMenu.prototype = {
handleEvent: function(e) {
switch(e.type) {
'mouseover': this.open(e); break;
'mouseout': this.close(e); break;
}
About to start a silent teatime demo. Follow @danwrong if you want to play along.
R E T W E E T if you've got a beer in hand!
"Extraordinary is taking a simple idea and revolutionizing it in a way that changes the world." http://twitpic.com/2rl85p
Surely that deserves a favorite!!
Have any questions? DM me.
var args= "";
for(var i=0;i<argument_pairs.length;i++) {
args+= argument_pairs[i][0];
args+= "="
args+= argument_pairs[i][1];
if( i < argument_pairs.length-1 ) args+= "&";
}
return args;
(function loadrunner(e){var w=e.document;var h=w.getElementsByTagName("script"),n,k;var B={},j={},v;for(var z=0,r;r=h[z];z++){if(r.src.match(/loadrunner\.js(\?|#|$)/)){n=r;break}}function c(i){if(i.length>0){return i.replace(/\/$/,"")+"/"}return""}function o(i){return Array.prototype.slice.call(i)}function b(s,E){for(var F=0,G;G=s[F];F++){if(E==G){return F}}return -1}function t(i){return !!i.match(/^(([a-zA-Z0-9\-_]+)\/)*[a-zA-Z0-9\-_]+$/)}function q(i){return[c(y.path),i,".js"].join("")}function d(i){if(i.match(/^(https?)?:?\/\//)){return i}if(i.match(/^\/[^\/]/)){return c(y.docRoot)+i}if(i.match(/^\$/)){return c(y.path)+i.replace(/^\$/,"")}return i}function p(s){var i;if(i=j[s]){return i}else{return s}}function f(){}f.prototype.addCallback=function(i){if(this.completed){i.apply(this,this.results)}else{this.callbacks=this.callbacks||[];this.callbacks.push(i)}};f.prototype.complete=function(){if(!this.completed){this.results=o(arguments);this.completed=true;if(this.callbacks){for(var E=0,s;s=this.callbacks[E]
provide('base', function(exports) {
using('jquery', underscore', 'mustache', function(jq, u, m) {
exports({
$: jquery,
u: u,
mustache: mustache
});
});
});
require 'akamai'
module Build
class Akamai
class << self
def configure(username, password)
::Akamai.configure do |c|
c.cachecontrol_username = username
c.cachecontrol_password = password
end
function Sequence(deps) {
this.deps = deps;
}
Sequence.prototype = new Dependency;
Sequence.prototype.start = function() {
var me = this, nextDep = 0, allResults = [];
(function next() {
var dep = me.deps[nextDep++];
if (dep) {