Skip to content

Instantly share code, notes, and snippets.

View MylesBorins's full-sized avatar

Myles Borins MylesBorins

View GitHub Profile
@MylesBorins
MylesBorins / child.js
Last active May 20, 2016 19:07
Child process argv
const http = require('http');
const server = http.createServer((req, res) => {
res.end();
});
server.on('clientError', (err, socket) => {
socket.end('HTTP/1.1 400 Bad Request\r\n\r\n');
});
server.listen(process.argv[2]);
make[1]: Leaving directory `/home/thealphanerd/code/node'
/usr/bin/python tools/test.py --mode=release -J \
addon doctool known_issues message pseudo-tty parallel sequential
=== release no_dropped_stdio ===
Path: pseudo-tty/no_dropped_stdio
oooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooooooo
  • [f0a07d956e] - test: test cluster worker disconnection on error (Santiago Gimeno) #6909
  • [aadfe6c249] - cluster: close ownerless handles on disconnect() (cjihrig) #6909
  • [dd21bd9f01] - test: verify IPC messages are emitted on next tick (Santiago Gimeno) #6909
  • [d59917b2a3] - child_process: emit IPC messages on next tick (cjihrig) #6909
  • [dab09877b0] - module: don't cache uninitialized builtins (Anna Henningsen) #6907
  • [4bd410bbbe] - vm: don't ab
@MylesBorins
MylesBorins / after.sh
Last active June 7, 2016 17:46
Update linter
NODE_VERSION=$(python tools/getnodeversion.py)
if [[ $NODE_VERSION =~ ^[0] ]]; then
gmake lint
else
gmake lint-ci
fi
@MylesBorins
MylesBorins / define.js
Created June 8, 2016 18:28
Getter / Setter
var obj = {
_a: 0
};
Object.defineProperty(obj, 'a', {
get: function () {
return this._a;
},
set: function (val) {
this._a = val;
  • [87cdb83a96] - benchmark: merge url.js with url-resolve.js (Andreas Madsen) #5177
  • [921e8568d5] - benchmark: move misc to categorized directories (Andreas Madsen) #5177
  • [c189eec14e] - benchmark: fix configuation parameters (Andreas Madsen) #5177
  • [58ad451f0b] - benchmark: move string-decoder to its own category (Andreas Madsen) #5177
  • [a01caa3166] - build: don't compile with -B, redux (Ben Noordhuis) #6650
  • [37606caeaf] - build: don't compile w
function initLibraryFS() {
console.log('initESLibraryFS is started!');
}
@MylesBorins
MylesBorins / helper.js
Created July 25, 2016 23:32
With require and export
function init() {
console.log('initESLibraryFS is started!');
}
module.exports = {
init: init
}
@MylesBorins
MylesBorins / line-conf-2016.txt
Created August 4, 2016 19:17
Line Conf 2016
San Francisco has so many good lines. As connoisseurs of San Francisco's hidden treasures we, the organizers, have decided to curate a day of SF's best lines, along with talks on topics like: Queueing theory, Lines of Poetry, Flatland, Professional Line Waiting, Lines that Can Change Your Life, and more! Talks will last the duration of the line.
We'll kick off in the mission on the morning of Saturday, the 16th (feel free to take a Lyft Line to the starting location) where attendees will wait to register. Then we'll set out together. Participants are not required to purchase anything at any of the stops, and should consider bringing snacks and water. We'll also have folding stools available for purchase.
(Rough) Schedule:
10:00am Line-up for kick-off at Boogaloos at 22nd and Valencia – Receive your lanyard and optional folding chair.
10:30 Queue at Ritual Coffee on Valencia
11:15 Tartine! (voted #1 best line in SF 2014)
12:00pm Bi-Rite Ice Cream (voted #1 best line in SF 2015) / Dolores Park bathroom line
1