This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| import json | |
| import csv | |
| import re | |
| import requests | |
| from omgsecrets import SMART_CHICAGO_URL | |
| from omgsecrets import SMART_CHICAGO_KEY | |
| def distance(station1, station2): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| import json | |
| import csv | |
| import re | |
| import requests | |
| from omgsecrets import MAPQUEST_APP_KEY | |
| DIVVY_STATIONS_URL = 'http://divvybikes.com/stations/json' | |
| MAPQUEST_URL = 'http://open.mapquestapi.com/directions/v2/routematrix?key={appkey}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rubygems" | |
| require "rmagick" | |
| require "fileutils" | |
| include Magick | |
| jpgs = Dir["*.jpg"] | |
| gif = ImageList.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require "rubygems" | |
| require "twitter" | |
| require "json" | |
| require "faraday" | |
| # things you must configure | |
| TWITTER_USER = "your_username" | |
| # get these from dev.twitter.com |