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
task :nietzsche, do | |
unless system("god status") | |
puts "God is dead" | |
system("god -c #{ god_config }") | |
puts "Long live God" | |
else | |
"God is alive" | |
end | |
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
Autotest.add_hook :initialize do |autotest| | |
autotest.add_mapping %r%^test/(helpers)/.*rb$% do |filename, _| | |
filename | |
end | |
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
ENV["RAILS_ENV"] = "test" | |
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
require 'shoulda' | |
require 'webrat' | |
require 'factory_girl' | |
require 'test/factories/clearance' | |
require 'clearance/../../shoulda_macros/clearance' | |
require 'cucumber/rails/world' | |
Cucumber::Rails.use_transactional_fixtures | |
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
source ~/.git-completion.sh | |
alias gco='git co' | |
alias gci='git ci' | |
alias grb='git rb' | |
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 | |
# | |
# Copy this file into .git/hooks and chmod +x | |
# Acceptable branch formats: | |
# ticket_1234 -> Refs #1234: your message | |
# ticket_1234_some_feature -> Refs #1234 - Some Feature: your message | |
# This should be easier for committing to TRAC against SVN | |
require 'rubygems' | |
require 'git' |
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
# use with .git-completion.sh | |
# this script will color the branch name RED if it is dirty | |
function parse_git_dirty { | |
if [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] | |
then | |
echo "\e[0;31m" | |
else | |
echo "\e[0;00m" | |
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
tell application "MacVim" | |
activate | |
set bounds of the first window to {0, 0, 950, 900} | |
end tell | |
tell application "Terminal" | |
activate | |
do script "cd ~/Development" | |
set bounds of the first window to {945, 0, 1440, 450} |
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/sh | |
mkdir -p /usr/local/src && cd /usr/local/src | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2 | |
tar -xjvf ruby-1.9.1-p0.tar.bz2 | |
cd ruby-1.9.1-p0 | |
./configure --prefix=/usr --program-suffix=19 --enable-shared | |
make && make install |
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
[*1..99].reverse.each do |i| | |
phrase = ["#{i} bottles of beer on the wall", | |
"#{i} bottles of beer", | |
"You take one down", | |
"You pass it around", | |
"#{i - 1} bottles of beer on the wall.."].join(".. ") | |
`say #{phrase}` | |
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
oading autotest/cucumber_rails | |
Warning: $KCODE is NONE. | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/ruby_extensions/string.rb:31: warning: method redefined; discarding old indent | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/compiler/node_classes/character_class.rb:13: warning: useless use of a literal in void context | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/compiler.rb:5: warning: global variable `$exclude_metagrammar' not initialized | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/compiler/metagrammar.rb:90: warning: method redefined; discarding old space | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/compiler/metagrammar.rb:246: warning: method redefined; discarding old space | |
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/treetop-1.2.5/lib/treetop/compiler/metagrammar.rb:629: warning: method redefin |
OlderNewer