This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Embedly | |
| # Not just for images | |
| class Embedly | |
| def initialize | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; http://www.jwz.org/doc/tabs-vs-spaces.html | |
| (setq c-basic-offset 2) | |
| (setq indent-tabs-mode nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |