Skip to content

Instantly share code, notes, and snippets.

class CreditCard < ActiveRecord::Base
attr_accessible :bank, :benefit_earn_rate, :benefit_type, :benefit_value, :interest, :name, :brand,
:goal_name, :goal_cost, :goal_value
def goal
self.goal_cost.to_f / self.goal_value.to_f
end
end
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
@andyh
andyh / caprc.rb
Created December 7, 2008 22:31 — forked from topfunky/caprc.rb
# DESCRIPTION: Cap task to setup the current directory as git repository and then create and push to a remote repository via ssh.
#
# INSTALL: Copy to home directory as ~/.caprc
# RUN: cap git:setup scm=t
# If it's a Rails app run
# RUN: cap git:setup scm=t railsapp=t
#
# AUTHOR: Andy Henson (http://www.elaptics.co.uk) based on code by Geoffrey Grosenbach http://peepcode.com
#