Skip to content

Instantly share code, notes, and snippets.

Gabe Smedresman gabesmed

Block or report user

Report or block gabesmed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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 — forked from levity/att.rb
scrape your calls and texts history from att.com
View att.rb
#!/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 Feb 14, 2012
great circle distance in python
View distance.py
"""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
Python 2.6.4 homebrew formula
View python26.rb
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
brew --config on Leopard (OS X 10.5)
View gist:956055
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 Apr 23, 2010
The routing algorithm from Scenic Route (http://scenicroute.info)
View gist:376015
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,
You can’t perform that action at this time.