Skip to content

Instantly share code, notes, and snippets.

View dthyresson's full-sized avatar

David Thyresson dthyresson

View GitHub Profile
@dthyresson
dthyresson / nba_team_game_log_retrieval.R
Created January 12, 2016 15:07 — forked from batpigandme/nba_team_game_log_retrieval.R
Get all of the game logs for the NBA teams without pre-loading team information.
#########################################################################
## Get NBA Team Game Logs From the Stattleship API
#########################################################################
## install and load the stattleshipR package
devtools::install_github("stattleship/stattleship-r")
library(stattleshipR)
## set API token
set_token('YOUR_ACCESS_TOKEN')
@dthyresson
dthyresson / csv_to_json.rb
Created December 14, 2016 17:26 — forked from enriclluelles/csv_to_json.rb
CSV to JSON
#!/usr/bin/env ruby
require 'csv'
require 'json'
if ARGV.size != 2
puts 'Usage: csv_to_json input_file.csv output_file.json'
puts 'This script uses the first line of the csv file as the keys for the JSON properties of the objects'
exit(1)
end
@dthyresson
dthyresson / US Zip Codes from 2013 Government Data
Created August 31, 2017 19:30 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696