Skip to content

Instantly share code, notes, and snippets.

View framlin's full-sized avatar

Wolfgang Egger framlin

View GitHub Profile
function step1(err, result) {
//do somethng
queryStep2(result, step2);
}
function step2(err, result) {
//do somethng
queryStep3(result, step3);
}
nstall -d /usr/local/bin
install bin/jsctags.js /usr/local/bin/jsctags
install -d /usr/local/lib/jsctags
install lib/jsctags/getopt.js lib/jsctags/log.js lib/jsctags/paperboy.js lib/jsctags/traits.js lib/jsctags/underscore.js /usr/local/lib/jsctags
install -d /usr/local/lib/jsctags/ctags
install lib/jsctags/ctags/index.js lib/jsctags/ctags/interp.js lib/jsctags/ctags/nativefn.js lib/jsctags/ctags/reader.js lib/jsctags/ctags/writer.js /usr/local/lib/jsctags/ctags
install -d /usr/local/lib/cfa2
install lib/cfa2/index.js lib/cfa2/jscfa.js /usr/local/lib/cfa2
install -d /usr/local/narcissus
install -d /usr/local/narcissus/lib
1 delimitMate Report
2 ==================
3
4 * Options: ( ) default, (g) global, (b) buffer
5
6 ( ) delimitMate_apostrophes = ''
7 ( ) delimitMate_autoclose = 1
8 ( ) delimitMate_balance_matchpairs = 0
9 ( ) delimitMate_eol_marker = ''
10 ( ) delimitMate_excluded_ft = ''
var frinerva = require('./frinerva');
// .....
} else if (nconf.get('i')) {
frinerva.inform(nconf.get('i'));
}
///.....
function display() {
console.log.apply(this, arguments);
@framlin
framlin / index.js
Created April 6, 2012 09:26 — forked from timoxley/index.js
flatiron ip address middleware
var union = require('union');
var flatiron = require('flatiron');
var ecstatic = require('ecstatic');
app = new flatiron.App();
app.use(flatiron.plugins.http);
app.http.before = [
function (req, res) {
var union = require('union');
var flatiron = require('flatiron');
var winston = require('winston');
var ecstatic = require('ecstatic');
var url = require('url');
var util = require('util');
app = new flatiron.App();
app.use(flatiron.plugins.http);
http://localhost:8080/action
Not found :(
Sorry, but the page you were trying to view does not exist.
It looks like this was the result of either:
a mistyped address
an out-of-date link
Weitere Möglichkeiten:
var union = require('union');
var flatiron = require('flatiron');
//var ecstatic = require('ecstatic');
app = new flatiron.App();
app.use(flatiron.plugins.http);
app.router.get('/action', function () {
this.res.writeHead(200, { 'Content-Type': 'text/plain' });
this.res.end('Hello world!\n');
@framlin
framlin / gist:1547307
Created January 1, 2012 13:16
error runnng make test
beuys@kandinsky:~/tmp/node$ make test
Waf: Entering directory `/home/beuys/tmp/node/out'
DEST_OS: linux
DEST_CPU: ia32
Parallel Jobs: 1
Product type: program
Waf: Leaving directory `/home/beuys/tmp/node/out'
'build' finished successfully (0.078s)
-rwxrwxr-x 1 beuys beuys 9,3M 2012-01-01 14:10 out/Release/node
python tools/test.py --mode=release simple message
var pcap = require('pcap'),
tcp_tracker = new pcap.TCP_tracker(),
pcap_session = pcap.createSession('eth0', '');
tcp_tracker.on('http_request', function (session, http) {
console.log("Start of HTTP session between " + session.src_name + " and " + session.dst_name);
});