Using Blink(1) as RSpec Formatter

I created Ruby library for blink(1) that wraps official blink1-lib C interface.

This video shows runnning RSpec using blink(1) as formatter, shows current status with LED color.

Both are available on RubyGems

$ gem install rb-blink1
$ gem install blink1-formatter

GitHub: rb-blink1, blink1-formatter

Released EverDesktop

screen1

I’ve just released EverDesktop.

EverDesktop is a small Mac application for clipping files on your Desktop to Evernote, allows you to make tidy your Mac from status bar icon.

Generating Objective-C Literals From JSON

The modern syntaxes for NSDictionary, NSArray, NSNumber are supported from Xcode 4.4. To use this easily for testing, I customized JSON#stringify method ported from JSON2.js.

With node.js, the script can convert JSON from STDIN.

1
2
3
$ node Dictionary.js < test.js
# with cURL
$ curl 'http://itunes.apple.com/search?term=Path&entity=software' | node Dictionary.js

Also in browser, this works with stripping lines under if(process) scope.

1
Dictionary.stringify({ a:1, b:"Hello", c:[1,2,3] }, null, "  ");