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
sskirby@Resartus:[system]:~/src/hydra$ rake test TEST=test/ssh_test.rb | |
(in /home/sskirby/src/hydra) | |
[WARNING] The git gem requires git 1.6.0.0 or later, but only found 1.5.4.3. You should probably upgrade. | |
All dependencies seem to be installed. | |
/usr/bin/ruby1.8 -I"lib:lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/ssh_test.rb" | |
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
/home/sskirby/src/hydra/test | |
establishing connection | |
connection established |
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
actionmailer (2.3.4) | |
actionpack (2.3.4) | |
activerecord (2.3.4) | |
activeresource (2.3.4) | |
activesupport (2.3.4) | |
authlogic (2.0.11) | |
autocomplete_for (0.1.0) | |
aws-s3 (0.4.0) | |
barby (0.4.0) | |
bcrypt-ruby (2.1.2) |
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 ruby | |
if ARGV.size < 2 | |
puts 'grepfactor <search string> <location1>[ <location2> <location3>...]' | |
exit | |
end | |
lines = [] | |
puts 'grepping....' | |
`grep -rn --color #{ARGV[0]} #{ARGV[1..-1].join(" ")}|grep -v swp`.each do |l| |
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/zsh | |
# Outputs a github link that you can click on to see the diff | |
if [[ -n $1 ]]; then | |
git log --pretty=oneline | egrep "Merge branch '${1}.*'.*" | awk '{print "https://github.com/nulogy/cpi/commit/" $1}' | |
fi |
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 'spec_helper' | |
describe EventTypesController do | |
login_user | |
let(:m) {mock_model(EventType)} | |
describe "GET index" do | |
it "assigns all event_types as @event_types" do | |
EventType.should_receive(:all).and_return m |
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
filetype off | |
call pathogen#runtime_append_all_bundles() | |
filetype plugin indent on | |
set nocompatible | |
set hlsearch | |
set number | |
set tabstop=2 | |
set shiftwidth=2 |
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
vnoremap <leader>re :call ExtractVariable()<cr> | |
function! ExtractVariable() | |
let name = input("Variable name: ") | |
if name == '' | |
return | |
endif | |
normal! gv | |
exec "normal c" . name | |
exec "normal! O" . name . " = " | |
normal! $p |
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
# Path to your oh-my-zsh configuration. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="bira" | |
# Set to this to use case-sensitive completion |
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
class GearTest < MiniTest::Unit:TestCase | |
def test_calculates_gear_inches | |
gear = Gear.new( | |
chainring: 52, | |
cog: 11, | |
wheel: Wheel.new(26, 1.5)) | |
assert_in_delta(137.1, | |
gear.gear_inches, | |
0.01) | |
end |
OlderNewer