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
| // Make a bookmark with this in it: | |
| javascript:(function(){$("#button-chat-expand").click(function() {$("#chat").animate({top:0})}); $("#button-chat-collapse").click(function() {$("#chat").animate({top:285})});$("#chat").css($("#playback").position()).width(842);$("#chat-messages").width(823); $.each(document.styleSheets, function(i, styleSheet) { $.each(styleSheet.cssRules, function(j, rule) { if (rule.selectorText == '.chat-message, .chat-mention, .chat-emote, .chat-skip, .chat-moderation, .chat-system, .chat-update' || rule.selectorText == '.chat-superuser' || rule.selectorText == '.chat-moderator') rule.style.width = '788px'; })});})(); |
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
| park_trip_button_bind: function(park_id){ | |
| if (typeOf(park_id) == 'array'){ | |
| for (var i in park_id) (function(i) { | |
| $("#tripadd_"+park_id[i]).bind('click',function(){ | |
| bp.add_remove_park_trip(park_id[i]); | |
| }); | |
| })(i); | |
| } else { | |
| $("#tripadd_"+park_id).bind('click',function(){ | |
| bp.add_remove_park_trip(park_id); |
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
| // initialize string override sequence | |
| var j,sp = { | |
| s: String.prototype.toString, | |
| l: function(){console.log(this.s());} | |
| }, d=['F','B'], fd=function(l) {sp[l]=function(){return l+this;};}; | |
| // splines.reticulate | |
| fd(d[0]); | |
| fd(d[1]); | |
| for(j in sp) | |
| String.prototype[j] = sp[j]; |
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
| app = express.createServer() | |
| viewdir = __dirname + '/views' | |
| staticdir = __dirname + '/static' | |
| app.configure -> | |
| app.use express.errorHandler({ dumpExceptions: true, showStack: true }) | |
| app.use express.logger() | |
| app.use express.bodyParser() |
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
| var doStuff = function(val, cb) { | |
| // Call the callback later! | |
| setTimeout(function() { cb(val); }, 1); | |
| } | |
| var total = 5; | |
| for (var i = 0, c = 0; i < total; ++i) { | |
| doStuff(i, function(val) { | |
| console.log('Got a return value! ' + 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
| app.get('/canvas', function(req,res) { | |
| database.activegalleries(function(results){ | |
| for (gallery in results){ | |
| var name = results[gallery]['gallery_name']; | |
| database.viewgallery(name, function(imgs){ | |
| results[gallery]['imgs']=imgs; | |
| console.log(results[gallery]) | |
| }); |
This file has been truncated, but you can view the full file.
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 () { | |
| var v = 0, | |
| q = [], | |
| o = {}, | |
| s = {}, | |
| A = { | |
| "<": "lt", | |
| ">": "gt", | |
| "&": "amp", |
NewerOlder