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 / pre-rebase
Created July 7, 2015 18:32
A git hook to help you make good decisions about rebasing
askAboutGitBranches() {
echo "Is the branch you want to rebase already pushed to GitHub? (y/n) "
read RESPONSE
if [ "$RESPONSE" = "n" ]; then
rebaseAway
elif [ "$RESPONSE" = "y" ]; then
echo "Are you the only one committing on this branch? (y/n)"
read RESPONSE_2
if [ "$RESPONSE_2" = "y" ]; then
rebaseAway
@alexsoble
alexsoble / Somerville X2 assessment names
Created February 16, 2016 04:19
List of assessment names from Somerville Aspen X2 instance
MEPA 2005 Fall
MCAS 2004 English Language Arts
MCAS 2004 Science & Technology
MCAS 2004 Mathematics
MCAS 2005 English Language Arts
MCAS 2005 Mathematics
MCAS 2005 Science & Technology
MCAS 2003 English Language Arts
MCAS 2003 Mathematics
MCAS 2003 Science & Technology
@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
"I feel like I belong on this team."
"On this team, I can voice a contrary opinion without fear of negative consequences."
"On this team, perspectives like mine are included in decision making."
"On this team, administrative or clerical tasks that don’t have a specific owner are fairly divided."
"People on this team accept others who are different."
"It is easy to ask other members of this team for help."
"On this team, messengers are not punished when they deliver news of failures or other bad news."
"On this team, responsibilities are shared."
"On this team, cross-functional collaboration is encouraged and rewarded."
"On this team, failure causes inquiry."