Skip to content

Instantly share code, notes, and snippets.

@gabesmed
gabesmed / keybase.md
Created March 20, 2018 15:32
Keybase proof

Keybase proof

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:

@gabesmed
gabesmed / att.rb
Created May 1, 2012 00:08 — forked from levity/att.rb
scrape your calls and texts history from att.com
#!/usr/bin/ruby
LOGIN, PASSWORD = 'your_phone_number', 'your_password'
require 'rubygems'
require 'mechanize'
agent = Mechanize.new
FileUtils.rm_rf('results/')
FileUtils.mkdir('results')
@gabesmed
gabesmed / distance.py
Created February 14, 2012 11:43
great circle distance in python
"""Distance helpers."""
import math
EARTH_CIRCUMFERENCE = 6378137 # earth circumference in meters
def great_circle_distance(latlong_a, latlong_b):
"""
@gabesmed
gabesmed / python26.rb
Created May 20, 2011 03:59
Python 2.6.4 homebrew formula
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
@gabesmed
gabesmed / gist:956055
Created May 4, 2011 21:16
brew --config on Leopard (OS X 10.5)
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
@gabesmed
gabesmed / gist:376015
Created April 23, 2010 00:17
The routing algorithm from Scenic Route (http://scenicroute.info)
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,