Skip to content

Instantly share code, notes, and snippets.

module FFI
module Library
TYPE_MAP = {
:string => DL::TYPE_VOIDP,
:pointer => DL::TYPE_VOIDP,
}
DL.constants.each do |const|
next unless const.to_s =~ /^TYPE_/
@jeffkreeftmeijer
jeffkreeftmeijer / README.textile
Created November 14, 2010 23:25
A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.

FffuuuFormatter

A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.

Installation

Throw it in a file and run your specs like this:

$ rspec -r path/to/fffuuu_formatter.rb -f FffuuuFormatter spec/
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl http://npmjs.org/install.sh | sh