Skip to content

Instantly share code, notes, and snippets.

View jergason's full-sized avatar
🦢
theft puts a parade in my walk

Jamison Dance jergason

🦢
theft puts a parade in my walk
View GitHub Profile
@jergason
jergason / gist:1742478
Created February 5, 2012 03:44 — forked from anonymous/gist:1742436
MrShake - pastebin.com/qSTY96AP
window.addEvent('domready', function() {
$('fullconfreg').addEvent('click', calculate);
$('fullconfspouse').addEvent('click', calculate);
$('fullconfregfirsttime').addEvent('click', calculate);
$('intspeechticket').addEvent('click', calculate);
$('evalticket').addEvent('click', calculate);
$('fridinnerham').addEvent('click', calculate);
$('fridinnerroastbeef').addEvent('click', calculate);
$('fridinnerturkey').addEvent('click', calculate);
$('satlunch').addEvent('click', calculate);
@jergason
jergason / vows-example.js
Created January 17, 2012 18:43 — forked from coolaj86/vows-example.js
Asynchronous Vows
(function () {
"use strict";
var vows = require('vows')
, suite
, batch
, helloWorld = require('./index')
, assert = require('assert')
, request = require('ahr2')
, createJoin = require('join')
@jergason
jergason / response_size.rb
Created August 10, 2011 14:38 — forked from rkh/response_size.rb
Checking size of each request
require 'rack'
##
# Tries to calculate size of the complete response.
# This middleware should be chained in front of everything else.
# Middleware taking care of compression, etag handling etc could
# produce wrong results.
#
# Leaves streaming intact and does work file bodies from sockets
# and files.