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 | |
# Complete rake tasks script for bash | |
# Save it somewhere and then add | |
# complete -C path/to/script -o default rake | |
# to your ~/.bashrc | |
# Nicholas Seckar <[email protected]> | |
# Saimon Moore <[email protected]> | |
# http://www.webtypes.com/2006/03/31/rake-completion-script-that-handles-namespaces |
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 | |
HELP = <<EOS | |
git-wtf displays the state of your repository in a readable and easy-to-scan | |
format. It's useful for getting a summary of how a track branch relates to a | |
remote server, and for understanding how feature branches and relate to | |
integration branches. | |
git-wtf can show you: | |
- How a branch relates to the remote repo, if it's a tracking branch. |
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
respond_to do |format| | |
format.js {render :update do |page| | |
page.replace_html :deal_object_selector, :partial => "configure_"+@class_type.underscore, :locals => {:deal => deal, :f => nil} | |
page.hide :deal_object_selector | |
page.visual_effect :appear, :deal_object_selector, :duration => 0.5 | |
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
<style type="text/css" media="screen"> | |
#spotlight {zoom:1; z-index:1; | |
width:390px; | |
margin:5px 0 0 5px; | |
min-height:400px; | |
display: -moz-inline-stack; | |
display: inline-block; | |
vertical-align: top; | |
zoom: 1; | |
*display: inline; |
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 'colored' | |
def banner(title, pad = 85) | |
puts "\n#{title} ".ljust(pad, "*").yellow | |
end | |
def stripe | |
puts ("-" * 84 + "\n").yellow | |
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
require 'rubygems' | |
require 'cucumber/rake/task' | |
begin | |
task :features => 'db:test:prepare' | |
task :features => "features:all" | |
namespace :features do | |
desc 'Run All Features' | |
Cucumber::Rake::Task.new(:all) do |t| |
NewerOlder