This file contains 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
// 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 |
This file contains 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
# | |
# 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 | |
This file contains 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
# 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 ) |
NewerOlder