This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 = |
This file contains hidden or 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
from random import * | |
def die_on_first_jump(): | |
lives = 0 | |
while True: | |
lives += 1 | |
if lives % 100 is 0: | |
print "Life #%d..." % lives |