Skip to content

Instantly share code, notes, and snippets.

View kieranajp's full-sized avatar
🎧

Kieran kieranajp

🎧
View GitHub Profile
@kieranajp
kieranajp / taxCalc.rb
Created September 6, 2012 23:09
Employment Income Tax Calculator in Ruby
class Tax
attr_accessor :threshold
def initialize(threshold)
# There's probably a better way of doing default values
@threshold = threshold.to_i || 7592
end
def parseTaxCode(taxCode)
# Try this bit in ruby 1.9
@kieranajp
kieranajp / hack.sh
Created March 31, 2012 17:13 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl https://raw.github.com/gist/2266840/9a55fa74b72089ac8654a48e5988652cfc9f664c/hack.sh | sh
#