save_and_open_page
have_button(locator)| source :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 4.0" | |
| gem "railties", "~> 4.0" | |
| gem "tzinfo" | |
| # Let's use thin |
| .search { | |
| /* Roundness */ | |
| border: 1px solid #BABABA; | |
| border-radius: 20px; | |
| height: 35px; | |
| width: 300px; | |
| padding: 8px; | |
| background: white; |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
| #!/usr/bin/env ruby | |
| # giftube – Generates an animated gif from a YouTube url. | |
| # | |
| # Usage: | |
| # | |
| # giftube [youtube url] [minute:second] [duration] | |
| # | |
| # ex. | |
| # |
| Dear soon-to-be-former user, | |
| We've got some fantastic news! Well, it's great news for us anyway. You, on | |
| the other hand, are fucked. | |
| We've just been acquired by: | |
| class Cow | |
| @@num_legs_butchered = 0 | |
| def initialize(num_legs = 4) | |
| @num_legs = num_legs | |
| end | |
| def legs | |
| return @num_legs | |
| end |
| /* | |
| jquery.aggregate.js by Greg Brown 2011. See | |
| http://gregbrown.co.nz/code/jquery-aggregate/ for details. | |
| License information: http://gregbrown.co.nz/code/license/ | |
| */ | |
| /* |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| apt-get -y install curl | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv |