A Pen by Matt Steele on CodePen.
Testing the DeviceOrientation API
Test case: http://jsfiddle.net/TPz2G/3/show/
- Alpha increases when rotating device clockwise
absolute
: true
- Framework comparisons http://www.netmagazine.com/features/essential-javascript-top-five-testing-libraries
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
require 'rspec' | |
class World | |
attr_accessor :cells | |
def initialize | |
@cells = [] | |
end | |
def tick |
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
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 |
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
#!/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" |
NewerOlder