Skip to content

Instantly share code, notes, and snippets.

View nickmartini's full-sized avatar

Nick Martini nickmartini

View GitHub Profile
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"},
require 'benchmark'
require 'rubygems'
require 'couchrest'
SERVER = CouchRest.new
SERVER.default_database = 'misanthropy'
class Twat < CouchRest::ExtendedDocument
use_database SERVER.default_database
#!/bin/sh
#OH GOD
# HOW DID THIS GET HERE
# I DONT EVEN
if [ "x$1" = "x" ]; then
echo "Usage: $0 <dbname>"
exit
fi
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
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'
herp derp dont require rubygems when you write libraries blah blah.
rofl dongs.