Skip to content

Instantly share code, notes, and snippets.

MBP:~ ed$ ruby -e 'while line = gets; puts line.split; end' <~/Desktop/generated_query.sql | grep JOIN | wc -l
15
MBP:~ ed$ gem install launchy
MBP:~ ed$ launchy http://www.amazon.com/Great-Gonzos-Best-Ted-Nugent/dp/B00001X599
@r10r
r10r / jhw-assets.md
Created May 16, 2012 17:40 — forked from lamikae/jhw-assets.md
Jasmine headless testing on Rails 3 asset pipeline

Jasmine headless testing on Rails 3 asset pipeline

  • assets and specs can be CoffeeScript
  • 3rd party JS can be placed to vendor/assets/javascripts or vendor gems
  • detects gem-vendored JS via application.js require
  • uses jasmine-headless-webkit to run the suite outside the browser
    • this requires Qt4.7 installation