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
app.configure(function(){ | |
//[...] | |
app.use(express.static(__dirname + '/public')); | |
}); |
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 buf = require('buffer'); | |
/** | |
* Dynamic Parser Object borrowed to twitter-node | |
*/ | |
var Parser = function Parser() { | |
events.EventEmitter.call(this); | |
this.buffer = ''; | |
return this; | |
}; |
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 tl = require('teleportd-api').teleportd({ apikey: 'XXX' }); | |
tl.stream({ meta: true, | |
full: true }, function(pic) { | |
console.log(JSON.stringify(pic) + '\r\n'); | |
}); |
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 util = require('util'); | |
var exp = /lat=(\-{0,1}[0-9]+\.[0-9]+).long=(\-{0,1}[0-9]+\.[0-9]+)/; | |
var r = exp.exec(' <iframe width="270" height="165" frameborder="0"\nscrolling="no" marginheight="0" marginwidth="0"\nsrc="/google_map?lat=37.349001&long=-121.962850&show_controls=true"></iframe>'); | |
console.log(util.debug(r)); |
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
/** | |
* method(that, name, method, _super) | |
* Adds a method to the current object denoted by that and preserves | |
* _super implementation (see Crockford) | |
*/ | |
method = function(that, name, method, _super) { | |
if(_super) { | |
var m = that[name]; | |
_super[name] = function() { | |
return m.apply(that, arguments); |
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
#!/usr/local/bin/node | |
var http = require('http'); | |
var fwk = require('fwk'); | |
var infra = require('../lib/infra.js'); | |
/* | |
* bouncer.js | |
* | |
* Bouncer is a simple http proxy protected by api key access |
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 http = require('http'); | |
var buf1,buf2; | |
var pos1, pos2; | |
var dc = 0; | |
var done = function() { | |
if(dc === 0) { | |
dc++; |
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
<html> | |
<body style="width: 100%; height: 100%; margin: 0"> | |
<div style="position:absolute; width: 100%; background-color:grey;"> | |
<div style="position:absolute; top: 0px; left: 0px; width: 100px; background-color: black; height: 100px;"> | |
</div> | |
<div style="position:absolute; top: 0px; right: 0px; width: 100px; background-color: black; height: 20px;"> | |
</div> | |
<div style="position:absolute; top: 0px; right: 100px; left: 100px; background-color: red;"> | |
tata | |
TEST |
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
user: teleportd | |
app: teleportd-api | |
I don't see any error, but my app broadcast on redis status udpates and teleportd-api has two instances running one that is accessible and one I can't reach. Restarting the app has no effect on the zombie process. According to the status updates I receive from it, the zombie process was never exposed to any traffic. | |
Cheers |
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
Stanislas-Polus-MacBook-Pro:sets spolu$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: skipping require-analyzer because noanalyze option is set | |
info: skipping require-analyzer because noanalyze option is set | |
warn: Local version appears to be old. | |
warn: Your package.json version will be incremented for you automatically. | |
warn: About to write /Users/spolu/teleportd/src/sets/package.json | |
data: |