Skip to content

Instantly share code, notes, and snippets.

View alassiter's full-sized avatar

Anthony Lassiter alassiter

View GitHub Profile
@bluefuton
bluefuton / gist:1468061
Created December 12, 2011 16:15
OS X: replace tabs with spaces in all files using expand
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
@alassiter
alassiter / WebratCucumber
Created September 20, 2011 16:28
Webrat support for Cucumber
require 'webrat'
require 'webrat/core/matchers'
Webrat.configure do |config|
config.mode = :rack
config.open_error_files = false # Set to true if you want error pages to pop up in the browser
end