this is a test. i am writing. how cool
here is a list
- omg
here is some code
let a = b;
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
this is a test. i am writing. how cool
here is a list
here is some code
let a = b;
function inherits(ctor, superCtor) { | |
ctor.super_ = superCtor; | |
ctor.prototype = Object.create(superCtor.prototype, { | |
constructor: { | |
value: ctor, | |
enumerable: false, | |
writable: true, | |
configurable: true | |
} | |
}); |
Array.prototype.sliceAfter = function(expr) { | |
var index = 0; | |
var found = this.some(function(v, i, a) { | |
if(v > expr) { | |
index = i; | |
return true; | |
} | |
}); | |
if(!found) return []; | |
return this.slice(index); |
diff --git a/src/oracle_bindings.cpp b/src/oracle_bindings.cpp | |
old mode 100644 | |
new mode 100755 | |
index bbcf611..1ea38a2 | |
--- a/src/oracle_bindings.cpp | |
+++ b/src/oracle_bindings.cpp | |
@@ -84,6 +84,7 @@ void OracleClient::EIO_Connect(uv_work_t* req) { | |
std::ostringstream connectionStr; | |
connectionStr << "//" << baton->hostname << ":" << baton->port << "/" << baton->database; | |
baton->connection = baton->environment->createConnection(baton->user, baton->password, connectionStr.str()); |
"use strict"; | |
var fs = require('fs'); | |
var cache = {}, hit = 0, missed = 0; | |
var count = parseInt(process.argv[2]) || 1000000; | |
var fname = __dirname + "/benchCallbacks.js"; | |
function bench(cb) { | |
var total = 0; | |
var current = 0; | |
function handleResult(err, data) { |
test.js: | |
29,222,676 calls per second | |
test-named: | |
50,505,050 calls per second | |
test-streamline.js: | |
332,557 calls per second |
var http = require("http"); | |
http.createServer(function (req, res) { | |
console.log(require("url").parse(req.url, true)); | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(80, '0.0.0.0'); |
res.writeHead(200); | |
throw(new Error("poof!")); | |
res.end(); |