Skip to content

Instantly share code, notes, and snippets.

View alexsoble's full-sized avatar

Alex Soble alexsoble

View GitHub Profile
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):
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}'
@alexsoble
alexsoble / gifmaker.rb
Last active August 29, 2015 14:07 — forked from grough/00-100-colours.gif
Make beautiful gifs out of your pictures, using the magick of Ruby
require "rubygems"
require "rmagick"
require "fileutils"
include Magick
jpgs = Dir["*.jpg"]
gif = ImageList.new
@alexsoble
alexsoble / unfave.rb
Created December 4, 2017 21:25 — forked from robinsloan/unfave.rb
Unfave script, because why not??
#!/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