I hereby claim:
- I am bengl on github.
- I am bengl (https://keybase.io/bengl) on keybase.
- I have a public key whose fingerprint is 12DA A122 E4B0 3089 0F5D A100 02E1 DF2D F935 CE6D
To claim this, I am signing this object:
| // non-`Promise.defer()` version of https://github.com/petkaantonov/bluebird/issues/159#issuecomment-38348877 | |
| var Promise = require('bluebird'); | |
| function maybePromisify(fn, ctx){ | |
| return function() { | |
| var args = Array.prototype.slice.call(arguments); | |
| return new Promise(function(fulfill, reject){ | |
| args.push(function(err, result){ | |
| if (err) |
| [alias] | |
| lasttag = describe --abbrev=0 --tags | |
| releasenotes = !bash -c 'git shortlog --no-merges HEAD --not $(git lasttag)' | |
| release = !bash -c 'echo \"%s\n\n$(git releasenotes)\" | xargs -0 npm version $0 -m' |
| $ mocha test.js | |
| ․ | |
| 0 passing (4ms) | |
| 1 failing | |
| 1) RandomStuff should work for all of mockData: | |
| Error: 2/6 failed | |
| at Context.<anonymous> (/Users/benglish/testcrap.js:26:19) |
I hereby claim:
To claim this, I am signing this object:
| require 'formula' | |
| class Redis < Formula | |
| homepage 'http://redis.io/' | |
| url 'http://download.redis.io/releases/redis-2.8.5.tar.gz' | |
| sha1 'f0eb48609ff66ead3c7f06bbe8a8dd1aa7341b73' | |
| bottle do | |
| sha1 "3670032929123972994cdc29374628311e5fb874" => :mavericks | |
| sha1 "9240b55f06576409d8f9e9f6f4d00d67a6861da0" => :mountain_lion |
It turns out that the node REPL doesn't seem to behave as expected inside a domain. (I'm using node v0.10.22)
Try running repltest.js, which is narrowed down from a much larger REPL-thing I'm working on. You'll get your REPL, but there is some weirdness. If you give it an empty line (i.e. just press Enter/Return), you'll get a syntax error, captured by the domain and ouput via line 6:
>
SyntaxError: Unexpected token )
at REPLServer.self.eval (repl.js:112:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
| ################################# | |
| ################################### | |
| #################################### | |
| ##### #### #### | |
| ##### #### #### | |
| #### #### | |
| #### #### | |
| #### #### #### | |
| ##### #### #### |
| var app = express(); | |
| app.get('/', function(req, res){ | |
| try{ | |
| if (someBoolean) { | |
| res.send("all good!") | |
| } else { | |
| throw Error("shit's fucked, yo"); | |
| } | |
| } catch (e){ | |
| res.send(e.toString(), 500); |
| // node >= 0.8.* | |
| var domain = require('domain'); | |
| process.on('uncaughtException', function(error){ | |
| console.error('UNCAUGHT!', error); | |
| }); | |
| var d = domain.create(); | |
| d.on('error', function(error) { |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |