This file contains 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 godot = require('godot'); | |
var server = godot.createServer({ | |
type: 'tcp', | |
reactors: [ | |
godot.reactor() | |
.console() | |
.map(function (data, callback) { | |
callback(new Error('WHOOPS GAIZ')); | |
}, { passThrough: true }) |
This file contains 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 http = require('http'); | |
var Primus = require('primus'); | |
var server = http.createServer(function (req, res) { | |
res.writeHead(500); | |
res.end('Not implemented\n'); | |
}); | |
var primus = new Primus(server, {transform: 'websockets', parser: 'JSON'}); | |
var Socket = primus.Socket; |
This file contains 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 http = require('http'); | |
var ecstatic = require('ecstatic')(__dirname + '/public'); | |
var bunyan = require('bunyan'); | |
var log = bunyan.createLogger({ | |
name: 'myapp', | |
stream: process.stdout, | |
level: 'info' | |
}); | |
http.createServer(function (req, res) { |
This file contains 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 http = require('http'); | |
var ecstatic = require('ecstatic')(__dirname + '/public'); | |
var server = http.createServer(ecstatic); | |
server.listen(3000); |
This file contains 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 pkgcloud = require('pkgcloud'); | |
client = pkgcloud.storage.createClient({ | |
provider: 'rackspace', | |
username: 'nodejitsu', | |
apiKey: 'xxxxxxxxxxxxxxxxxxxxxxx' | |
}); | |
client.getContainers(function (err, container) { |
This file contains 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
for (var i = 0; i < 1024 * 1024; i++) { | |
process.nextTick(function () { Math.sqrt(i) } ) | |
} |
This file contains 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
nock('https://' + client.authUrl) | |
.post('/v1.1/auth', { "credentials": credentials }) | |
.reply(200, helpers.loadFixture('rackspace/token.json')) |
This file contains 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
♢ pkgcloud/rackspace/databases/users │ | |
│ | |
│ | |
│ | |
/Users/jcrugzz/node.js/nodejitsu/pkgcloud/node_modules/nock/lib/request_overrider.js:139 │ | |
│ | |
if (interceptors.length < 1) { throw new Error("Nock: No match for HTTP re │ | |
│ | |
│ | |
^ |
This file contains 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 hyperglue = require('hyperglue'); | |
var html = require('./html/listElement'); | |
module.exports = ChatList; | |
function ChatList (target) { | |
if(!(this instanceof ChatList)) return new ChatList(target); | |
this.target = target; | |
this.users = []; |
This file contains 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
An error has occurred: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"} |