Thom Lawrence

Entries from July 2008

Ode to a Karplusan Wolverine

July 18, 2008 · No Comments

How do I love thee? Let me count the ways.

  • Thou art a one-drop with first strike.
  • When blocked, thou hast double strike.
  • Thou mayst deal thine combat damage as if thou wert not blocked.
  • There are some who call thee… ‘Tim’.

And, if God choose, I shall but love thee better after 20 damage.

With apologies to Elizabeth Barrett Browning. :)

Categories: Gaming · Magic: the Gathering
Tagged: , ,

TELL WORDPRESS “IMPORT FROM DASBLOG”

July 11, 2008 · No Comments

You have been killed by a grue.

Update: donning my anti-grue kit (XSLT and Emacs), I have managed to resurrect the old posts. Much rejoicing and broken HTML.

Categories: Blogging
Tagged: , , ,

Can haz pluginz?

July 11, 2008 · No Comments

require 'rubygems'
require 'active_record'

class ActiveRecord::Base
  class << self
   def method_missing_with_lol(sym)
     if sym.to_s =~ /^can_haz_(\w+)?/
       send "acts_as_#{$1}"
     else
       method_missing_without_lol sym
     end
   end
   alias_method_chain :method_missing, :lol
 end
end

class Lulz < ActiveRecord::Base
  can_haz_state_machine?
end

Temporary solution for Aaron’s problem, anyway. ;)

Categories: Code · Ruby
Tagged: , , ,