Skip to content

Instantly share code, notes, and snippets.

View tokumine's full-sized avatar

tokumine

  • London, UK
View GitHub Profile
@tokumine
tokumine / load2.patch
Created June 21, 2011 13:55 — forked from taf2/load2.patch
Apply patch directly to ruby source via. patch -p0 < load.patch
--- load.c 2010-10-23 05:36:38.000000000 -0400
+++ patchload.c 2011-06-05 08:58:00.000000000 -0400
@@ -40,14 +40,6 @@
VALUE ary;
long i;
- for (i = 0; i < RARRAY_LEN(load_path); ++i) {
- VALUE str = rb_check_string_type(RARRAY_PTR(load_path)[i]);
- if (NIL_P(str) || !rb_is_absolute_path(RSTRING_PTR(str)))
- goto relative_path_found;
module VersioningMethods
def self.included(klass)
klass.instance_eval <<-EOF
def deleted_list
deleted_item_list = []
Version.all.sort_by{ |version| version[:created_at] }.reverse!.each do |version|
if version.item_type == "#{klass.name}" && version.event == 'destroy'
deleted_item_list << version.reify
module VersioningMethods
def self.included(klass)
klass.instance_eval <<-EOF
def deleted_list
deleted_item_list = []
Version.all.sort_by{ |version| version[:created_at] }.reverse!.each do |version|
if version.item_type == "#{klass.name}" && version.event == 'destroy'
deleted_item_list << version.reify
@tokumine
tokumine / gist:9193
Created September 6, 2008 20:34 — forked from svenfuchs/gist:9186
Who's up to a post-railsconfeu08-coolest-quotes-tshirt-site?
Rails doesn't scale! (Oscar Wilde)
Look at all the things I'm not doing! (DHH)
Most people don't need Zulu on your website. (Josh Harvey)
That is sooo "Linux"! (Jeremy Kemper)
Fork this + add your favorite quotes!