Download the following packages from Oracle Technology Network.
You have to sign up for an Oracle Technology Network account, which is lame, Oracle, c'mon.
- Instant Client Package - Basic or Basic Lite
- Instant Client Package - SDK
You have to sign up for an Oracle Technology Network account, which is lame, Oracle, c'mon.
# Ruby class to calculate English Gematria | |
class Gematria < Struct.new(:text) | |
CORRESPONDENCE_TABLE = { # applies `mispar hechrachi` method to English alphabet (http://www.inner.org/gematria/fourways.php) | |
a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9, | |
j: 10, k: 20, l: 30, m: 40, n: 50, o: 60, p: 70, q: 80, r: 90, | |
s: 100, t: 200, u: 300, v: 400, w: 500, x: 600, y: 700, z: 800 | |
} | |
def mapped | |
text.each_char.map { |c| lookup_char c } |
/** | |
* QuadEncoder.cpp - Library for reading moves from a quadrature rotary encoder | |
* Created by Pedro Rodrigues ([email protected]) 9, January of 2010 | |
* Released into the public domain. | |
*/ | |
#include "Arduino.h" | |
#include "QuadEncoder.h" | |
QuadEncoder::QuadEncoder(int pin1, int pin2) |
-- Recursive definition of factorial | |
fact :: (Num a, Ord a) => a -> a | |
fact n | |
| n == 0 = 1 | |
| otherwise = n * fact (n-1) | |
-- ---------------------------------------------------------------------- | |
-- Improver | |
fact_improver :: (Int -> Int) -> Int -> Int |
/* | |
This program just toggles an led when you press a button | |
*/ | |
// without interrupt | |
#define LED 13 | |
#define BUTTON 2 | |
boolean last = LOW; |
require 'mongoid' | |
Mongoid::Config.instance.from_hash({"database" => "oid"}) | |
class Tweeter | |
include Mongoid::Document | |
field :user | |
embeds_many :tweets | |
end |
# I only have recipes named Steak, Lobster | |
# I have a recipe named Pizza | |
Given /^I(\sonly)? have a?n?\s?(.+) named (.+)$/ do |only,table,names| | |
table.singularize.capitalize.constantize.destroy_all if only | |
names.split(', ').each do |name| | |
table.singularize.capitalize.constantize.create(:name => name) | |
end | |
end | |
# I have no recipes |