I hereby claim:
- I am gabesmed on github.
- I am gabesmed (https://keybase.io/gabesmed) on keybase.
- I have a public key ASBS9679u1Wj_2RlKWz49CTk-OiynbqrQlt9Q52Lei17HAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/ruby | |
LOGIN, PASSWORD = 'your_phone_number', 'your_password' | |
require 'rubygems' | |
require 'mechanize' | |
agent = Mechanize.new | |
FileUtils.rm_rf('results/') | |
FileUtils.mkdir('results') |
"""Distance helpers.""" | |
import math | |
EARTH_CIRCUMFERENCE = 6378137 # earth circumference in meters | |
def great_circle_distance(latlong_a, latlong_b): | |
""" |
require 'formula' | |
# This formula for Python 2.6.4 | |
# Based on Python 2.7.1 formula at: | |
# https://github.com/mxcl/homebrew/blob/master/Library/Formula/python.rb | |
class Distribute < Formula | |
url 'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz' | |
md5 '17722b22141aba8235787f79800cc452' | |
end |
HOMEBREW_VERSION: 0.8 | |
HEAD: b729704b0d88721e7089768c8d76bdd5695b69e8 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
HOMEBREW_REPOSITORY: /usr/local | |
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
Hardware: dual-core 64-bit penryn | |
OS X: 10.5.8 | |
Kernel Architecture: i386 | |
Ruby: 1.8.6-369 |
import math | |
import random | |
import operator | |
from django.contrib.gis.geos import LineString, Point | |
from scenicroute.apps.hunts.routing.triangulation import ( | |
build_triangulation, START_INDEX, END_INDEX) | |
from scenicroute.apps.hunts.routing.culling import no_dupes | |
from scenicroute.apps.hunts.routing.estimation import (duration_for_distance, |