Skip to content

Instantly share code, notes, and snippets.

View alexsoble's full-sized avatar

Alex Soble alexsoble

View GitHub Profile
@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
@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
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}'
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):