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
/*jslint white: true, onevar: true, undef: true, nomen: true, eqeqeq: true, | |
plusplus: true, bitwise: true, regexp: true, immed: true, maxlen: 78, | |
indent: 2 */ | |
// Does short term (100ms) in-memory caching and combines concurrent requests | |
// to the same resource into a single callback group. | |
var Safe = module.exports = function Safe(fn, expires) { | |
// return fn; | |
var cache = {}, | |
queues = {}; |
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
// All elements which match this will be syntax highlighted. | |
var selector = 'code'; | |
var keywords = ('var function if else for while break switch case do new ' | |
+'continue delete return this true false throw catch typeof').split(' '); | |
// Syntax definition | |
// The key becomes the class name of the <span> | |
// around the matched block of code. | |
var syntax = { |
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
formats = { | |
"fe-common/core" = { | |
own_msg = "{ownmsgnick $2 {ownnick $[-10]0}}$1"; | |
own_msg_channel = "{ownmsgnick $3 {ownnick $[-10]0}{msgchannel $1}}$2"; | |
pubmsg_me = "{pubmsgmenick $2 {menick $[-10]0}}$1"; | |
pubmsg_me_channel = "{pubmsgmenick $3 {menick $[-10]0}{msgchannel $1}}$2"; | |
pubmsg_hilight = "{pubmsghinick $0 $3 $[-10]1}$2"; | |
pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[-10]1{msgchannel $2}}$3"; | |
pubmsg = "{pubmsgnick $2 {pubnick $[-10]0}}$1"; | |
pubmsg_channel = "{pubmsgnick $3 {pubnick $[-10]0}{msgchannel $1}}$2"; |
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 sys = require('sys'), | |
path = require('path'), | |
spawn = require('child_process').spawn; | |
var arg = path.join(process.cwd(), '**/*.js'); | |
var glob = spawn('ls', [arg]); | |
var files = []; |
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
window.onload = function () { | |
if (! document.querySelectorAll) { // Quick & Dirty way to tell the good browsers from the bad ones. | |
alert("Please upgrade your browser to view this site."); | |
} | |
}; |
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
window.dom = {}; | |
dom.dragging = { | |
element: null, | |
offset: null, | |
index: null, | |
target: null | |
}; | |
dom.sorting = { |
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
Benchmarking 127.0.0.1 (be patient) | |
Server Software: node-static/0.2.0 | |
Server Hostname: 127.0.0.1 | |
Server Port: 8080 | |
Document Path: /lib/node-static.js | |
Document Length: 6038 bytes |
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
suite.export(module, { | |
reporter: { | |
report: function () { require('sys').print('blah') } | |
} | |
}); |
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 448750c6bb9c6dc872af6dfd5b2445466d8ffe2a Mon Sep 17 00:00:00 2001 | |
From: cloudhead <[email protected]> | |
Date: Thu, 5 Aug 2010 03:13:40 -0400 | |
Subject: [PATCH] querystring.parse: handle undefined value properly | |
--- | |
lib/querystring.js | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/lib/querystring.js b/lib/querystring.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
From 5adc9addcea62a86562696b783859e116e604b18 Mon Sep 17 00:00:00 2001 | |
From: cloudhead <[email protected]> | |
Date: Thu, 5 Aug 2010 13:43:10 -0400 | |
Subject: [PATCH] test querystring.parse with undefined value | |
--- | |
test/simple/test-querystring.js | 7 +++++++ | |
1 files changed, 7 insertions(+), 0 deletions(-) |