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
Tue Apr 19 11:58:40 UTC 2016 |
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
GET /v1/orders?id_user=007 | |
OR | |
GET /v1/orders?idUser=007 | |
--------------------------------- | |
POST /v1/orders {"id_user":"007"} | |
OR | |
POST /v1/orders {"idUser":"007"} |
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 stream = require('stream'); | |
var Readable = stream.Readable; | |
var Writable = stream.Writable; | |
var map = require('through2-map'); | |
util.inherits(Producer, Readable); | |
function Producer () { | |
if(!(this instanceof Producer)) return new Producer; |
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/bin/env node | |
var fs = require('fs'); | |
var async = require('async'); | |
async.parallel([ | |
copyFile.bind(null, 'resources/file1.txt', 'resources/file1_copy.txt'), | |
copyFile.bind(null, 'resources/file2.txt', 'resources/file2_copy.txt'), | |
copyFile.bind(null, 'resources/file3.txt', 'resources/file3_copy.txt') | |
], function (err, results) { |
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
### Keybase proof | |
I hereby claim: | |
* I am floby on github. | |
* I am floby (https://keybase.io/floby) on keybase. | |
* I have a public key whose fingerprint is FDD2 33DF BC30 CED5 471A F992 41C2 B498 488A 51CF | |
To claim this, I am signing this object: |
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.Router.map(function() { | |
this.resource('post', { path: '/post/:post_id' }, function() { | |
this.route('edit'); | |
this.resource('comments', function() { | |
this.route('new'); | |
}); | |
}); | |
}); |
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 ws = require('ws'); | |
var DuplexStream = require('stream').Duplex; | |
var Stream = module.exports = function Stream(uri) { | |
if(!(this instanceof Stream)) return new Stream(uri); | |
DuplexStream.apply(this); | |
this.setEncoding('utf8'); | |
this._connected = false; | |
this._writeQueue = []; |
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] | |
name = Florent Jaby | |
email = [email protected] | |
[color] | |
ui = auto | |
[core] | |
whitespace = trailing-space,space-before-tab | |
[diff] | |
renames = copies | |
mnemonicsprefix = true |
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'grunt' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose read json /home/floby/octo/mission/corsair/visual/Visual/package.json | |
5 warn package.json [email protected] No repository field. | |
6 verbose from cache /home/floby/octo/mission/corsair/visual/Visual/package.json |
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
> tap test/*.js | |
not ok test/sh.js ....................................... 1/3 | |
Command: "node" "sh.js" | |
TAP version 13 | |
not ok 1 TypeError: Unsupported fd type: TTY | |
--- | |
type: TypeError | |
message: Unsupported fd type: TTY | |
code: ~ |
NewerOlder