I hereby claim:
- I am marsup on github.
- I am marsup (https://keybase.io/marsup) on keybase.
- I have a public key whose fingerprint is AE39 5623 0B81 1467 8430 95A6 968E 96C3 E7CE 51F4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const CustomError = function CustomError() { | |
if (Error.captureStackTrace) { // Chrome | |
Error.captureStackTrace(this, CustomError); | |
} else { | |
const err = new Error(); | |
let processedStack, fileName, lineNumber; | |
Object.defineProperties(this, { | |
stack: { | |
get: function() { |
it('fails', function (done) { | |
var script = Lab.script(); | |
script.experiment('test', function () { | |
script.test('1', function (finished) { | |
throw new Error('die'); | |
}); | |
}); |
var Hapi = require('hapi'); | |
var server = new Hapi.Server('0.0.0.0', 3000); | |
server.route({ | |
method: '*', | |
path: '/{path*}', | |
handler: { | |
proxy: { | |
host: 'amazon.com', |
var connect = require('connect') | |
, http = require('http') | |
, request = require('request').defaults({ json: true }) | |
var app = connect().use(connect.bodyParser()) | |
, server = http.createServer(app) | |
server.listen(7777, function() { | |
request('http://localhost:7777') | |
}) |
#!/usr/bin/env bash | |
src=$PWD | |
dirname=$(dirname $(readlink -f $0)) | |
# need help ? if no args and help flags | |
if [ "$1" == '-h' ] | |
then | |
cat <<EOF |
/* | |
* Simple example for basic Hook.emit syntax using group feature | |
*/ | |
var Hook = require('../../../lib/hookio').Hook; | |
var server = new Hook({ | |
name: "server-hook" | |
}); |