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
ERROR: null | |
RESPONSE: { socket: | |
{ pair: | |
{ _secureEstablished: true, | |
_isServer: false, | |
_encWriteState: true, | |
_clearWriteState: true, | |
_doneFlag: false, | |
credentials: [Object], | |
_rejectUnauthorized: false, |
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
name of display: :0.0 | |
display: :0 screen: 0 | |
direct rendering: Yes | |
server glx vendor string: SGI | |
server glx version string: 1.4 | |
server glx extensions: | |
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, | |
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, | |
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, | |
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, |
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 twitter = new require('twitter')({ | |
consumer_key: 'XXX', | |
consumer_secret: 'XXX', | |
access_token_key: 'XXX', | |
access_token_secret: 'XXX', | |
// sitestreams | |
site_stream_base: 'https://betastream.twitter.com/2b' | |
}), | |
params = { | |
follow: [ 4690301, 15352541 ], |
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'), cons = 0; | |
http.createServer(function(req, res) { | |
var mycon = ++cons; | |
res.writeHead(200, | |
{'Content-Type': 'text/plain'}); | |
res.write('Hello... '); | |
setTimeout(function() { | |
res.end('world! #' + mycon + '\n'); | |
}, 2000); | |
}).listen(8000); |
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'); | |
http.createServer(function(req, res) { | |
res.writeHead(200, | |
{'Content-Type': 'text/plain'}); | |
res.end('Hello world!\n'); | |
}).listen(8000); |
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
/home/jdub/.node_libraries/.npm/creationix/0.0.5/package/static.js:79 | |
stream.once('data', function (chunk) { | |
^ | |
TypeError: Object [object Object] has no method 'once' | |
at onStat (/home/jdub/.node_libraries/.npm/creationix/0.0.5/package/static.js:79:14) | |
at node.js:773:9 | |
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
/* | |
* CONNECT/STACK STYLE TWITTER "O"AUTHENTICATION MIDDLEWARE | |
*/ | |
// FIXME: options should include cookie lifetime | |
Twitter.prototype.auth = function(mount) { | |
var self = this, | |
cookie = require('cookie'), | |
url = require('url'), | |
mount = mount || '/twauth'; |
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
function JSONRPC(options) { | |
if (!(this instanceof JSONRPC)) return new JSONRPC(options); | |
this.socket = options.socket || null; | |
this.fallback = options.fallback || null; | |
this.callbacks = {}; | |
} | |
// FIXME: check for unloved callbacks at a user-defined interval |
NewerOlder