Skip to content

Instantly share code, notes, and snippets.

View MylesBorins's full-sized avatar

Myles Borins MylesBorins

View GitHub Profile
@MylesBorins
MylesBorins / process.md
Last active November 9, 2016 05:24
Node.js Process: Stability and Mad Science

The Node.js release process is designed to support both stability and experimentation. It allows us to both support our ecosystem with a stable platform while still inspiring a bit of mad science to move the platform forward.

TLDR;

  • Current is more experimental than LTS
  • Odd Numbered Current releases are treated as more experimental than Even Numbered releases
  • Any change in a Current release is subject to being reverted if it is disruptive
    • The reversion process can take a bit longer than desired due to the fact that quorum needs to be reached
  • We are working on improving this
@MylesBorins
MylesBorins / index.js
Created October 26, 2016 20:10
Get the body of a request
var server = http.createServer();
server.on('request', function(request, response) {
var body = [];
request.on('data', function(chunk) {
body.push(chunk);
}).on('end', function() {
body = Buffer.concat(body).toString();
// at this point, `body` has the entire request body stored in it as a string
});
});
// ADSR ~ Attack, Sustain, Decay, Release
var attackLevel = 1.0;
var releaseLevel = 0;
var attackTime = 0.001;
var decayTime = 0.2;
var susPercent = 0.2;
var releaseTime = 0.5;
var env, triOsc;
$ node -e 'require("./").pass("this is fine");throw new Error("pwn")'
TAP version 13
ok 1 - this is fine
not ok 2 - Error: pwn
---
at:
line: 1
column: 42
file: '[eval]'
stack: |
@MylesBorins
MylesBorins / audit.md
Last active October 11, 2016 00:19
branch-diff v4.x-staging v6.x --exclude-label semver-major,semver-minor,dont-land-on-v4.x --filter-release
  • [ed4cd2eebe] - deps: cherry-pick 34880eb3dc from V8 upstream (Myles Borins) #8673
  • [eff771f399] - tickprocessor: apply c++filt manually on mac (Fedor Indutny) #8480
  • [2ce364ad10] - test: modernize JS and tighten equality checking (Peter Ogilvie) #8476
  • [6e3db283ed] - buffer: fix ArrayBuffer checks (Brian White) #8453
  • [0d24247e50] - src: pull AfterConnect from pipe_wrap and tcp_wrap (Daniel Bevenius) #8448
  • [f346dee940] - win,build: forward rele
@MylesBorins
MylesBorins / audit.md
Last active October 7, 2016 00:00
branch-diff v4.x-staging master --exclude-label semver-major,semver-minor,lts-watch-v4.x,dont-land-on-v4.x --filter-release

ALL DONE FUCK YEAH

@MylesBorins
MylesBorins / audit.md
Last active December 12, 2019 18:19
UGHHHH
  • [a945244830] - doc: add 2016-08-10 CTC meeting minutes (Josh Gavant) #8229
  • [1ffdee7c86] - test: mark pseudo-tty/no_dropped_stdio as flaky (Michael Dawson) #8385
  • [ed640ae4cb] - crypto: make malloc failure check cross-platform (Rich Trott) #8352
  • [a00ccb0fb9] - src: normalize malloc, realloc (Michael Dawson) #7564
  • [a290ddfdc9] - src: unbreak build when compiling against uclibc (Ben Noordhuis) #8308
  • [a01e8bcf18] - src: moving f function call co
1..2
ok 1 parallel/test-arm-math-exp-regress-1376
---
duration_ms: 0.102
...
not ok 2 parallel/test-npm-install
---
duration_ms: 0.858
error:
message: Failure
______
.-" "-.
/ \
| |
|, .-. .-. ,|
| )(__/ \__)( |
|/ /\ \|
(_ ^^ _)
\__|IIIIII|__/
|-\IIIIII|-|
@MylesBorins
MylesBorins / $ npm test
Last active September 1, 2016 17:58
Broken test output from watchify
> [email protected] test /Users/thealphanerd/code/watchify
> tape test/*.js
TAP version 13
# api
ok 1 null
ok 2 should be equal
ok 3 null
ok 4 null