This file contains 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
irb(main):009:0> a = RelaxDB.load "08ca2bae9630e997c1c8e3df11f29061" | |
=> #<Album:540155320, | |
_id: "08ca2bae9630e997c1c8e3df11f29061", | |
_rev: "18-3745543010", | |
created_at: Mon Jul 13 16:44:02 UTC 2009, | |
artist: "Lovage", | |
title: "Music to Make Love to Your Old Lady By", | |
released: 2001, | |
tracks: [ | |
{"title"=>"Ladies Love Chest Rockwell", "length"=>"1:19"}, |
This file contains 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 'benchmark' | |
require 'rubygems' | |
require 'couchrest' | |
SERVER = CouchRest.new | |
SERVER.default_database = 'misanthropy' | |
class Twat < CouchRest::ExtendedDocument | |
use_database SERVER.default_database |
This file contains 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/sh | |
#OH GOD | |
# HOW DID THIS GET HERE | |
# I DONT EVEN | |
if [ "x$1" = "x" ]; then | |
echo "Usage: $0 <dbname>" | |
exit | |
fi |
This file contains 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
run 'rm README' | |
run 'rm public/index.html' | |
run 'rm public/favicon.ico' | |
run 'rm public/images/rails.png' | |
plugin 'authlogic', :git => 'git://github.com/binarylogic/authlogic.git' | |
plugin 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git' | |
file '.gitignore', <<-FILE | |
.DS_Store |
This file contains 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 'pp' | |
require 'stuffin_dicks' | |
require 'hpricot' | |
require 'dhh_wang' | |
require 'activerecord' | |
require 'datamapper' | |
require 'ruby-debug' | |
require 'shoulda' | |
require 'shoulda/aborted_that_fetus' |
This file contains 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
herp derp dont require rubygems when you write libraries blah blah. | |
rofl dongs. |
NewerOlder