Skip to content

Instantly share code, notes, and snippets.

View inkdeep's full-sized avatar

Jeremy Kleindl inkdeep

View GitHub Profile
#!/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 <nseckar@gmail.com>
# Saimon Moore <saimon@webtypes.com>
# http://www.webtypes.com/2006/03/31/rake-completion-script-that-handles-namespaces
#!/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.
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
<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;
require 'colored'
def banner(title, pad = 85)
puts "\n#{title} ".ljust(pad, "*").yellow
end
def stripe
puts ("-" * 84 + "\n").yellow
end
@inkdeep
inkdeep / custom cucumber rake tasks
Created March 12, 2009 17:39
custom rake tasks for cucumber - made running single feature(s) easier
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|