Skip to content

Instantly share code, notes, and snippets.

View MylesBorins's full-sized avatar

Myles Borins MylesBorins

View GitHub Profile
echo I PASS
exit 0
const common = require('../common');
const assert = require('assert');
const http = require('http');
process.on('uncaughtException', function(error) {
assert.ok(error);
server.close();
});
'use strict';
var test = require('tap').test;
var rewire = require('rewire');
var npmTest = rewire('../lib/npm/test');
var authorName = npmTest.__get__('authorName');
test('npm.test() authorName:', function (t) {
var fs = require('fs');
function readSomething(path, cb) {
if (typeof path !== 'string') {
return process.nextTick(function () {
return cb('I should be second');
});
}
fs.readFile(path, cb);
}
var http = require("https");
http.get("https://www.juvalis.de/", (res) => {
res.pipe(process.stdout);
});

Keybase proof

I hereby claim:

  • I am thealphanerd on github.
  • I am thealphanerd (https://keybase.io/thealphanerd) on keybase.
  • I have a public key whose fingerprint is C4F0 DFFF 4E8C 1A82 3640 9D08 E73B C641 CC11 F4C8

To claim this, I am signing this object:

From b716088dbc674ef205d68b90fd5b33266892974c Mon Sep 17 00:00:00 2001
From: Myles Borins <[email protected]>
Date: Sat, 28 Nov 2015 14:27:17 -0800
Subject: [PATCH] Smell Ya Later Anti-Feature
---
src/message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/message.c b/src/message.c
@MylesBorins
MylesBorins / index.js
Created December 30, 2014 12:08
Ruhroh Closure
var stub = require('./stub');
stub.home().woops().maybe();
@MylesBorins
MylesBorins / test-example.js
Last active March 15, 2016 21:10
Tap setup / teardown example
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict';
var test = require('tap').test;
var path = require('path');
var os = require('os');
var fs = require('fs');
@MylesBorins
MylesBorins / example-path-reduce.js
Created September 29, 2014 23:15
Examples Path Reduce
var output = _.groupBy(examples, function (file) {
return file.split('/')[0];
});
output = _.reduce(output, function (result, folder, key) {
result[key] = _.groupBy(folder, function (file) {
return path.dirname(file);
});
return result;
}, {});