Skip to content

Instantly share code, notes, and snippets.

View jstreebin's full-sized avatar

Jarrett Streebin jstreebin

View GitHub Profile
@jstreebin
jstreebin / infb.py
Created July 17, 2012 17:39 — forked from ruel/infb.py
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py user@domain.tld password
http://ruel.me
Copyright (c) 2011, Ruel Pagayon
All rights reserved.
@jstreebin
jstreebin / gist:8260355
Created January 4, 2014 20:33
street2 example / response
require 'easypost'
EasyPost.api_key = 'API KEY'
to_address = EasyPost::Address.create(
:name => 'Nick Merwin',
:street1 => '131 E 69th St',
:street2 => 'Apt 10A',
:city => 'New York',
:state => 'NY',
:zip => '10021'
@jstreebin
jstreebin / gist:8699919
Created January 30, 2014 00:04
Batch script
require 'csv'
require 'easypost'
EasyPost.api_key = 'INSERT PROD KEY HERE'
from_address = EasyPost::Address.create(
:name => 'Dr. Steve Brule',
:street1 => '179 N Harbor Dr',
:city => 'Redondo Beach',
:state => 'CA',
require 'easypost'
EasyPost.api_key = 'API KEY GOES HERE'
to_address = EasyPost::Address.create(
:name => 'WHO PACKAGE GOES TO, IF NEEDED',
:company => 'COMPANY, IF NEEDED',
:street1 => 'WHERE PACKAGE GOES',
:street2 => 'SUITE OR APT, IF NEEDED',
:city => 'CITY PACKAGE GOES TO',
:state => 'STATE PACKAGE GOES TO',