Skip to content

Instantly share code, notes, and snippets.

View ice09's full-sized avatar

Alexander C. ice09

View GitHub Profile
// Ripple account to watch for payment
var acct = 'rDPe2PCQtxngg5euANuGiL9o9XEsNfim2g'
// API key for Mailgun
var api_key = 'key-';
// Subdomain for Mailgun
var domain = 'domain.mailgun.org';
// create Mailgun
var Mailgun = require('mailgun-js');
var mailgun = new Mailgun({apiKey: api_key, domain: domain});
// create Ribble lib
#
# Write a Fibonacci program...
#
Proto := Object clone
# ...recursive version
Proto fib := method(n, if (n<=2, return 1, return (fib(n-2)+fib(n-1))))
# ...iterative version
@ice09
ice09 / gist:5477959
Created April 28, 2013 18:48
7l7w ruby day3
# Modify the CSV application to support an each method to return a CsvRow object.
# Use method_missing on that CsvRow to return the value for the column of each heading.
#
# Kontonummer, Name
# 12144445678, ice09
class CsvRow
attr_accessor :values, :keys
def initialize( keys, values )