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 assert = require('assert') | |
, path = require('path') | |
function some_helper(foo) { | |
assert.equal(foo, 4) | |
} | |
module.exports = { | |
'test array length': function (test) { | |
some_helper([1,2,3,4].length) |
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
<html> | |
<head> | |
<title>blah</title> | |
<script src="../socket.io/socket.io.js"></script> | |
<script src="jquery-1.4.4rc2.js"></script> | |
<script src="main.js"></script> | |
<style> | |
canvas#canvas { | |
position: absolute; | |
left: 0; |
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 foo import * | |
initialise() | |
print my_var |
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 require = (function () { | |
var _required = {}; | |
return (function (url, callback) { | |
if (typeof url == 'object') { | |
// we've (hopefully) got an array: time to chain! | |
if (url.length > 1) { | |
// load the nth file as soon as everything up to the n-1th one is done. | |
require(url.slice(0,url.length-1), function () { | |
require(url[url.length-1], callback); | |
}); |
NewerOlder