I hereby claim:
- I am apechimp on github.
- I am apechimp (https://keybase.io/apechimp) on keybase.
- I have a public key ASCUfOB9Wnj2gX7kUJQPUWgsmiLXGXSKe6dy2tZ0Bu12cwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
p = require('bluebird') | |
p.resolve() | |
.then(function () { | |
return p.reject('lol'); | |
}) | |
.catch(p.OperationalError, console.log.bind(console, 'lies')) | |
.catch(console.log.bind(console, 'truth')) |
'use strict' | |
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var request = require('http-as-promised') | |
request.get({url: 'http://localhost:5030', headers: {'Access-Control-Allow-Origin': 'http://requirebin.com'}}) | |
.then( | |
console.log.bind(console, 'ok'), | |
console.log.bind(console, 'err') | |
) |
'use strict' | |
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var httpb = require('http-browserify') | |
var shttp = require('stream-http') | |
var xtend = require('xtend') | |
var url = require('url') | |
function test (http, name) { | |
http.get(xtend(url.parse('http://localhost:5030'),{ headers: {'Access-Control-Allow-Origin': 'http://requirebin.com'}}), function (res) { |