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
global.config = require('./lib/config').load("config/app.json"); | |
var cluster = require('cluster'); | |
var fs = require('fs'); | |
var app = require('./app'); | |
// Logging | |
var log = require('./lib/winston'); | |
global.log = log; | |
// Write out pidfile |
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 express = require('express') | |
, cookieSessions = require('./cookie-sessions'); | |
var app = express(); | |
app.use(express.cookieParser('manny is cool')); | |
app.use(cookieSessions('sid')); | |
app.get('/', function(req, res){ | |
req.session.count = req.session.count || 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
// DNode Session | |
// ============= | |
var connect = require('connect') | |
module.exports = function(opt) { | |
var key = opt.key || 'connect.sid' | |
, store = opt.store | |
, interval = opt.interval || 120000 |
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
// Here is a proposal for minimalist JavaScript classes, humbly offered. | |
// There are (at least) two different directions in which classes can be steered. | |
// If we go for a wholly new semantics and implementation, then fancier classical | |
// inheritance can be supported with parallel prototype chains for true inheritance | |
// of properties at both the class and instance level. | |
// If however, we keep current JavaScript prototype semantics, and add a form that | |
// can desugar to ES3, things must necessarily stay simpler. This is the direction | |
// I'm assuming here. |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include "uv.h" | |
#include "http_parser.h" | |
static uv_stream_t server; | |
static http_parser_settings settings; | |
static uv_buf_t refbuf; |
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 User = { | |
toString: function(){ | |
return '<User ' + this.name + '>' | |
} | |
}; | |
var Admin = { __proto__: User, isAdmin: true }; | |
var tj = { __proto__: Admin }; |
- 2011.06.03 Isaac Z. Schlueter (next2011) Node.js Digs Dirt - about Data-Intensive Real-Time Applications
- 2011.02.22 Ryan Dahl (sfphp) an introduction to node.js
- 2010.12.28 Felix Geisendörfer (27c3) Node.js as a networking tool
- 2010.11.30 Ryan Dahl (yuiconf2010) nodejs Roadmap
- 2010.11.14 Jed Schmidt (jsconfeu2010) getting functional with (fab)
- 2010.08.10 Isaac Z. Schlueter (sencha meetup) npm
- 2010.08.10 Jed Schmidt (sencha meetup) (fab) v0.5 - A Preview
- 2010.08.10 Ryan Dahl (sencha meetup) data throttling in node.js
- 2010.07.28 Ryan Dahl (google tech talk) [node.js: Javascript on the Se