Skip to content

Instantly share code, notes, and snippets.

View bryanwoods's full-sized avatar
💭
Replacing Security Deposits

Bryan Woods bryanwoods

💭
Replacing Security Deposits
View GitHub Profile
if (document.images) {
var button1_up = new Image();
button1_up.src = "collapse.gif";
var button1_down = new Image();
button1_down.src = "expand.gif";
}
function switchButton1() {
if (document["button1"].src == button1_down.src) {
document["button1"].src = button1_up.src
class Event
include MongoMapper::Document
include MultiParameterAttributes
key :name, String, :required => true
key :start_date, Date, :required => true
key :start_time, Time, :required => true
end
require 'autotest/fsevent'
require 'autotest/growl'
require 'redgreen/autotest'
require 'autotest/restart'
require 'autotest/timestamp'
# require 'autotest/autoupdate'
# ===================================================
# = Monkey patch to make autotest not use unit diff =
@bryanwoods
bryanwoods / howmanylives.py
Created August 6, 2011 16:28 — forked from jameynakama/howmanylives.py
How many lives does it take for a skydiver to die on the first leap?
from random import *
def die_on_first_jump():
lives = 0
while True:
lives += 1
if lives % 100 is 0:
print "Life #%d..." % lives