Skip to content

Instantly share code, notes, and snippets.

View jvt's full-sized avatar

Joe Torraca jvt

View GitHub Profile
var http = require('http').Server(app);
if (clusterID === 1) {
var io = require('socket.io').listen(http);
io.on('connection', function()
{
console.log("Connection has been made");
});
}
➜ server git:(master) ✗ DEBUG='*' node server.js
express:application booting in development mode +0ms
connect:dispatcher use / query +21ms
connect:dispatcher use / expressInit +9ms
express:application booting in development mode +0ms
express:application booting in development mode +0ms
connect:dispatcher use / query +31ms
connect:dispatcher use / expressInit +11ms
connect:dispatcher use / query +66ms
connect:dispatcher use / expressInit +3ms
@jvt
jvt / 0_reuse_code.js
Created August 22, 2014 13:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jvt
jvt / keybase.md
Created April 12, 2014 11:38
kaybase.md

Keybase proof

I hereby claim:

  • I am jvt on github.
  • I am jt (https://keybase.io/jt) on keybase.
  • I have a public key whose fingerprint is A29E 2EBA ADA7 2563 74B4 B551 3C2A 5782 9984 1297

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jtorraca on github.
* I am jt (https://keybase.io/jt) on keybase.
* I have a public key whose fingerprint is A29E 2EBA ADA7 2563 74B4 B551 3C2A 5782 9984 1297
To claim this, I am signing this object: