Skip to content

Instantly share code, notes, and snippets.

View pius's full-sized avatar

Pius Uzamere pius

View GitHub Profile
require 'pp'
require 'rubygems'
require 'mongo_mapper'
MongoMapper.database = 'testing'
class Site
include MongoMapper::Document
key :domain, String
key :authorizations, Array
@pius
pius / db_eval.rb
Created November 10, 2009 15:15 — forked from jnunemaker/db_eval.rb
require 'pp'
require 'rubygems'
require 'mongo_mapper'
require 'benchmark'
MongoMapper.database = 'testing'
class Foo
include MongoMapper::Document
@pius
pius / rlsp.rb
Created November 8, 2009 21:31 — forked from h0rs3r4dish/rlsp.rb
#!/usr/bin/ruby
RLSP_VERSION = "1.4.1"
class Lambda
attr_accessor :args, :body
def initialize(args=[],body="")
@args = (args.class == Array) ? args : [args]
@body = body
end