Skip to content

Instantly share code, notes, and snippets.

@dorkrawk
dorkrawk / fitocracy_run_total.rb
Created September 16, 2012 01:56
This script takes in a Fitocracy username and uses my unofficial Fitocracy Runs API to return the total miles run for the user.
require 'rubygems'
require 'net/http'
require 'json'
require 'date'
if ARGV[0]
username = ARGV[0]
else
abort("You must supply a Fitocracy username.")
end