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
| // | |
| // initial | |
| // | |
| function observable(){ | |
| var cur; | |
| var listeners = []; | |
| return function(val){ |
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 connect = require('multilevel-connect'); | |
| var db = connect('password@host:port'); | |
| db.createReadStream() | |
| .on('data', function(kv){ | |
| console.log(JSON.stringify(kv)); | |
| }) | |
| .on('end', function(){ | |
| process.exit(0) |
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
| description "nginx" | |
| author "Julian Gruber <julian@segment.io>" | |
| stop on shutdown | |
| env DAEMON=/usr/sbin/nginx | |
| env PID=/var/run/nginx.pid | |
| env NGINX_ENV=dev | |
| expect fork |
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 co = require('co'); | |
| var split = require('split'); | |
| var thunk = require('thunkify'); | |
| var pipe = thunk(require('multipipe')); | |
| var read = require('co-read'); | |
| var write = require('co-write'); | |
| var JSONStream = require('JSONStream'); | |
| co(function*(){ | |
| var headerData = {}; |
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
| foo bar | |
| neat, huh?... |
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
| foo bar | |
| neat, huh?... |
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
| foo bar | |
| neat, huh? |
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
| foo bar |
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
| foo bar |
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
| yield function(done){ | |
| console.log('in yield'); | |
| setTimeout(function(){ | |
| console.log('after timeout'); | |
| done(); | |
| }, 0); | |
| } | |
| console.log('waited') |