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
'use strict'; | |
var net = require('net'); | |
net.createServer(function (socket) { | |
socket.resume(); | |
socket.once('end', function () { | |
socket.removeAllListeners(); | |
}); | |
}).listen(3000); |
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
(defun lottery () | |
(flet ((shuffle (list) | |
(let ((len (length list))) | |
(loop repeat len | |
do | |
(rotatef | |
(nth (random len) list) | |
(nth (random len) list)) | |
finally | |
(return list))))) |
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
(defparameter *is-logged-in* nil) | |
(defparameter *users* '((golo secret) | |
(jones anothersecret))) | |
(defun user-by-login (login) | |
(assoc login *users*)) | |
(defun password-of (user) | |
(cadr user)) |
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
script(id='BoardListTemplate', type='text/x-jQuery-tmpl') | |
| <p>${Title}</p> | |
| <ul id="${Id}" class="IterationBoardList"> | |
| <li class="AddNewItem">Add new Item</li> | |
| {{tmpl(Items) "#BoardListItemTemplate"}} | |
| </ul> |
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 middleware = function() { | |
return function(req, res, next) { | |
console.log('pre'); | |
next(); | |
console.log('post'); | |
}; | |
}; | |
var connect = require('connect'); | |
var http = require('http'); |
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
{ | |
"name": "de.goloroden.www", | |
"version": "0.0.86", | |
"engines": { | |
"node": "0.6.x" | |
}, | |
"dependencies": { | |
"express": ">= 2.4.7", | |
"stylus": ">= 0.0.1", | |
"jade": ">= 0.0.1", |
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
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu logs | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command logs app | |
info: Authenticated as goloroden | |
data: 2012-01-15T01:29:59.202Z: drone:stderr:Warning: connection.session() MemoryStore is not | |
data: 2012-01-15T01:29:59.202Z: designed for a production environment, as it will leak | |
data: 2012-01-15T01:29:59.202Z: memory, and obviously only work within a single process. | |
data: 2012-01-15T01:29:59.281Z: drone:stderr: | |
data: 2012-01-15T01:29:59.306Z: drone:stderr:node.js:201 |
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
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as goloroden | |
info: Analyzing your application dependencies in app.js | |
warn: Creating new snapshot for version 0.0.82 | |
info: Done creating snapshot 0.0.82 | |
info: Updating application de.goloroden.www | |
info: Activating snapshot 0.0.82 for de.goloroden.www |
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
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as goloroden | |
info: Analyzing your application dependencies in app.js | |
warn: No application exists for de.goloroden.www | |
info: Checking app availability de.goloroden.www | |
info: Creating app de.goloroden.www | |
warn: Creating new snapshot for version 0.0.64 |
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
golo@Eisbaer:~/Projekte/de.goloroden.core/website$ nano package.json | |
golo@Eisbaer:~/Projekte/de.goloroden.core/website$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as goloroden | |
info: Analyzing your application dependencies in app.js | |
warn: Creating new snapshot for version 0.0.24 | |
info: Done creating snapshot 0.0.24 | |
info: Updating application de.goloroden.core |