Skip to content

Instantly share code, notes, and snippets.

View rottmanj's full-sized avatar

Jeremy Rottman rottmanj

  • Amazon
  • Seattle, WA
View GitHub Profile
@mlanett
mlanett / rails http status codes
Last active May 14, 2024 08:48
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@rottmanj
rottmanj / gist:8014603
Created December 17, 2013 23:23
letsrevolutionizetesting.com challenge script
require 'open-uri'
require 'JSON'
url = "http://www.letsrevolutionizetesting.com/challenge"
i_am_the_winner = false
until i_am_the_winner do
json = JSON.parse(open(url, "Accept" => "application/json").read)
if json.has_key?("follow")
url = json["follow"]