Skip to content

Instantly share code, notes, and snippets.

View brobertsaz's full-sized avatar

Bob Roberts brobertsaz

  • Self
  • Madison, WI
  • 10:38 (UTC -05:00)
View GitHub Profile
@m3talsmith
m3talsmith / single-line-replacement.rb
Created June 18, 2013 20:55
A simple single line replacement example
puts 'Counting up to 100'
100.times do |i|
print "\rcurrent number: #{i + 1}"
sleep 0.1
end
puts ''
puts 'Done'
@mhayes
mhayes / deploy.rb
Created September 30, 2011 21:16
Capistrano for Rails 3.1
require 'capistrano/ext/multistage'
require "bundler/capistrano"
#use local key for authentication
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
set :application, 'awesome'
set :repository, "git@github.com:zurb/awesome.git"