Skip to content

Instantly share code, notes, and snippets.

View holdenhinkle's full-sized avatar

Holden Hinkle holdenhinkle

View GitHub Profile
@holdenhinkle
holdenhinkle / power_ball_picker.rb
Last active January 14, 2016 00:49
PowerBall Picker
require 'pry'
WHITE_BALLS = [*1..69]
POWERBALL = [*1..26]
NUM_WHITE_BALLS_NEEDED = 5
FIRST_WHITE_BALL = WHITE_BALLS.first
LAST_WHITE_BALL = WHITE_BALLS.last
FIRST_POWERBALL = POWERBALL.first
LAST_POWERBALL = POWERBALL.last
@holdenhinkle
holdenhinkle / triplet.rb
Last active March 12, 2016 16:25
pythagorean_triplet
require 'pry'
class Triplet
attr_reader :a, :b, :c
def initialize(a, b, c)
@a = a
@b = b
@c = c
end
@holdenhinkle
holdenhinkle / ocr.rb
Last active October 3, 2015 14:59
ocr_v2
require 'pry'
class OCR
attr_reader :text
def initialize(text)
@text = text
end
def convert