Skip to content

Instantly share code, notes, and snippets.

@mattdsteele
mattdsteele / Kycsz.markdown
Last active August 29, 2015 14:03
A Pen by Matt Steele.
@mattdsteele
mattdsteele / gist:5615925
Last active October 30, 2016 12:18
Quirks in DeviceOrientation API
@mattdsteele
mattdsteele / ojug-jasmine.md
Created October 6, 2012 23:06
JavaScript testing with Jasmine
@mattdsteele
mattdsteele / game_of_life.rb
Created February 12, 2012 05:36 — forked from steven-s/game_of_life.rb
Conway's Game of Life with Ruby and RSpec
require 'rspec'
class World
attr_accessor :cells
def initialize
@cells = []
end
def tick
@mattdsteele
mattdsteele / who_should_i_follow.rb
Created November 24, 2011 05:52
Of the people I follow, who do they follow that I don't follow? (sorted by count of people I follow)
require 'rubygems'
require 'json'
user = ARGV[0]
if user == nil
puts "usage: who-should-i-follow.rb screen_name"
exit 1
end
followers_to_check = 100
@mattdsteele
mattdsteele / scraper.rb
Created September 3, 2011 15:06
Triathlon scrapin'
#!/usr/bin/ruby
require 'net/http'
def get_url
page = 'http://www.backprint.com/view_user_event.asp?PID=bp%18yG&EVENTID=81207&PWD=&BIB='
bib_number = ARGV[0]
if bib_number.nil?
puts "usage: scraper.rb bib_number"