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 github://jquery/jquery/src/intro.js" | |
"require github://jquery/jquery/src/core.js" | |
"require github://jquery/jquery/src/callbacks.js" | |
"require github://jquery/jquery/src/deferred.js" | |
"require github://jquery/jquery/src/support.js" | |
"require github://jquery/jquery/src/data.js" | |
"require github://jquery/jquery/src/queue.js" | |
"require github://jquery/jquery/src/attributes.js" | |
"require github://jquery/jquery/src/event.js" |
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
(data "title" "My Story") | |
(data "author" "Mortchek") | |
(start-page "foo") | |
(page "foo" | |
(text "You are in a place.\n") | |
(choice (go "bar") "Do a thing!\n") | |
(choice (go "baz") "Do a different thing!\n") | |
(choice (give "sword") "Pick up a sword!\n") | |
(choice (give "shield") "Pick up a shield!\n") |
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
foo | |
( | |
function( ) { | |
return bar( | |
'foo' ) ; | |
}, | |
function | |
() | |
{ | |
return 'bar' |
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
// Cross-browser object.watch and object.unwatch | |
// object.watch | |
if (!Object.prototype.watch) { | |
Object.prototype.watch = function (prop, handler) { | |
var oldval = this[prop], newval = oldval, | |
getter = function () { | |
return newval; | |
}, | |
setter = function (val) { |
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
function inherits(ctor, base) { | |
ctor.prototype = Object.create(base); | |
ctor.prototype.constructor = ctor | |
return ctor | |
} | |
function extend(tgt) { var sources | |
sources = Array.prototype.slice.call(arguments, 1) | |
sources.forEach(function(source){ | |
Object.keys(source).forEach(function(key){ | |
tgt[key] = source[key] })}) |
NewerOlder