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 gems | |
gem 'webrat' | |
gem 'capybara' | |
gem 'database_cleaner' | |
gem 'cucumber-rails' | |
gem 'cucumber', '0.7.2' | |
gem 'rspec-rails', '2.0.0.beta.8' | |
gem 'spork' | |
gem 'launchy' # So you can do Then show me the page |
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 | |
$:.unshift(File.dirname(__FILE__) + "/../lib") | |
require "gist" | |
Gist.clear | |
Gist.process_selection | |
Gist.write(ARGV[0] == "private") |
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
[2009-11-25 15:14:27] ./configure | |
-bash: ./configure: No such file or directory | |
[2009-11-25 15:14:27] ./configure | |
[2009-11-25 15:14:27] /Users/macarthy/.rvm/rbx-head/bin/gem install rake --no-rdoc --no-ri -q | |
-bash: /Users/macarthy/.rvm/rbx-head/bin/gem: No such file or directory | |
[2009-11-25 15:14:27] /Users/macarthy/.rvm/rbx-head/bin/gem install rake --no-rdoc --no-ri -q | |
[2009-11-25 15:14:27] $(rvm 1.8.7 ; rake) | |
rake aborted! | |
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) | |
/Users/macarthy/.rvm/gems/ruby/1.8.7/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile' |
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/bash | |
# Inspired by http://blog.fiveruns.com/2008/9/24/rails-automation-at-slicehost | |
yum install -y l gcc-c++ zlib-devel openssl-devel | |
yum install -y mysql-server mysql-devel | |
/etc/init.d/mysqld start | |
yum install -y ruby rdoc ruby-devel | |
RUBYGEMS="rubygems-1.3.1" | |
wget http://rubyforge.org/frs/download.php/45905/$RUBYGEMS.tgz |
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
$('#brightness_slider').slider( { | |
min: 0, | |
max: 24, | |
value: 5, | |
slide: function(event, ui) { | |
$("#brightness_current_value").text(ui.value); | |
UpdateThing(); | |
}, | |
stop: function(event, ui) { | |
$("#brightness_current_value").text($('#brightness_slider').slider('value')); |
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
for (var i=1; i < data.page_count; i++) { | |
$('#pageNav').append('<a href="#">'+ i + '</a>'); | |
console.info(i); | |
$('#pageNav a:last').bind("click", function(){ alert( i }); | |
if (i == 9) { if (data.page_count > 12) { $('#pageNav').append('...'); i = data.page_count - 3; } } | |
}; |
NewerOlder