This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this writes out undefined step definitions, one per file, in the usual way that i do cucumber stuff. | |
# it saves a *lot* of copypaste from the terminal. still in progress as i refine the process. | |
# use it as a formatter: cucumber -f StepWriter --out features/step_definitions | |
# save it to support/env/step_writer.rb | |
require 'cucumber/formatter/io' | |
class StepWriter | |
include Cucumber::Formatter::Io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// npm install -g jsmeter | |
(function () { | |
var verbose = false; | |
var args = process.argv; | |
var fs = require("fs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guardfile | |
require 'guard/guard' | |
class ::Guard::JohnIsAwesome < ::Guard::Guard | |
def start | |
puts "Whoa a guard." | |
end | |
def run_all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// This fixes the most annoying thing I've ever seen on the ING DIRECT website. Sorry, ING DIRECT folks. | |
// @match https://secure.ingdirect.com/* | |
// ==/UserScript== | |
var waiter; | |
waiter = function() { | |
if (mask = document.getElementById('adWizardPopup_mask')) { | |
mask.parentNode.removeChild(mask); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# come here mr. ducky, i just want to punch you | |
module Capybara | |
class << self | |
def logger_target | |
@logger_target ||= StringIO.new | |
end | |
attr_writer :backtrace_clean_patterns | |
def backtrace_clean_patterns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ENV['COVERAGE'] | |
require 'cover_me' | |
class CoverMe::HtmlAndConsoleFormatter < CoverMe::HtmlFormatter | |
def format_index(index) | |
super | |
puts "\n\n[CoverMe] Current coverage: #{index.percent_tested}%" | |
end | |
end | |
CoverMe.config do |c| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -z $(which ruby | grep '.rvm') ]; then | |
echo "Switch to system ruby!" | |
exit 1 | |
fi | |
echo "Building latest MacVim..." | |
sudo port activate libiconv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
require 'hydra' | |
require 'hydra/tasks' | |
if ENV['RAILS_ENV'] == 'test' | |
Hydra::TestTask.new('hydra:spec') do |t| | |
t.add_files 'spec/**/*_spec.rb' | |
end | |
else | |
puts "No Hydra task unless you're running with RAILS_ENV=test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'guard' | |
require 'guard/guard' | |
require 'guard/rspec' | |
module ::Guard | |
class ::Guard::Hydra < ::Guard::RSpec | |
def start | |
UI.info "Guard::Hydra is giving Guard::RSpec super run_all powers. Whoa!" | |
super | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file="/tmp/ruby-1.9.2p290.patch" | |
curl https://raw.github.com/gist/1008945/4edd1e1dcc1f0db52d4816843a9d1e6b60661122/ruby-1.9.2p290.patch > $file | |
rvm install 1.9.2 --patch $file | |
rvm 1.9.2 | |
gem install bundler |