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> | |
<script src="socket.io.js"></script> | |
<script> | |
var logDiv; | |
function test() { | |
var socket = new io.Socket(null, { | |
rememberTransport : false, | |
transports : [ 'xhr-polling' ], |
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> | |
<script type="text/javascript" charset="utf-8"> | |
String.prototype.escapeHTML = function() { return this + ""; }; | |
console.log("OK", "<\\n>".toString()) | |
console.log("OK", new String("<\\n>").escapeHTML()) | |
console.log("fails", "<\\n>".escapeHTML()) | |
</script> |
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 (!module.constructor.prototype.declare) { | |
module.constructor.prototype.declare = function(deps, factory) { | |
if (!factory) | |
factory = deps; | |
var _self = this; | |
var req = function(id) { | |
if (id.indexOf("./") == 0) | |
id = _self.filename.match(/(.*\/)/)[1] + id.slice(2) | |
return require(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
var Script = process.binding('evals').Script; | |
require.registerExtension(".rjs", function(content) { | |
require.def = function(name, deps, callback) { | |
if (!callback) { | |
callback = deps; | |
deps = []; | |
} | |
var modules = deps.map(function(dep) { |
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 (!require.def) require.def = require("requireJS-node")(module); | |
require.def("project/foo", ["project/bar"], function(oop) { | |
// ... | |
}); |
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 rmTreeSync = exports.rmTreeSync = function(path) { | |
if (!existsSync(path)) return; | |
var files = fs.readdirSync(path); | |
if (!files.length) { | |
fs.rmdirSync(path); | |
return; | |
} else { | |
files.forEach(function(file) { | |
var fullName = p.join(path, 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Container</title> | |
<meta name="author" content="Fabian Jakobs"> | |
<!-- Date: 2008-12-18 --> | |
</head> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Array Performance</title> | |
<meta name="author" content="Martin Wittemann"> | |
<meta name="author" content="Fabian Jakobs"> | |
<!-- Date: 2010-03-09 --> |
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
<?php | |
header("Content-Type: text/javascript"); | |
header("Cache-Control: private, max-age=34560000", TRUE); | |
?> | |
window.SCRIPT_LOADED = true; | |
if (window.BREAK) debugger; |