Skip to content

Instantly share code, notes, and snippets.

billing_info = n.billing_info
invoice = n.billing_info.invoices.where(version_type: :LastFull).last
z = Billing::ZuoraSync.new(billing_info, invoice)
uom = Billing::ZuoraSync::ZUORA_UNIT_OF_MEASURE_FIELDS[:zuora_phone_numbers]
uusage = z.send(:find_usage_or_new, uom)
usage_params = z.send(:usage_params, {uom:uom})
@sherriman
sherriman / embedly.rb
Created February 12, 2014 00:00
Test Embedly
# Embedly
# Not just for images
class Embedly
def initialize
end
end
@sherriman
sherriman / .emacs
Created July 25, 2011 22:44
Set Emacs Indent Mode
;; http://www.jwz.org/doc/tabs-vs-spaces.html
(setq c-basic-offset 2)
(setq indent-tabs-mode nil)
@sherriman
sherriman / install sequence (rough)
Created July 25, 2011 22:39 — forked from mag/.emacs
installing ruby-mode.el on mac osx leopard
this is based partly on http://blog.modp.com/2007/09/ruby-mode-for-emacs.html
first, download the ruby mode goodness:
cd /usr/share/emacs/site-lisp
svn co http://svn.ruby-lang.org/repos/ruby/trunk/misc ruby
cd ruby
emacs -batch -f batch-byte-compile *.el # do not forget the -f
then just update /usr/share/emacs/site-lisp/site-start.el or your .emacs file with site-start.el gist.