Skip to content

Instantly share code, notes, and snippets.

@brentajones
brentajones / doc-schema.txt
Created Oct 23, 2020
Working with Missouri Department of Corrections data
View doc-schema.txt
column,start,length
doc_id,1,8
last_name,9,18
first_name,27,12
middle_name,39,12
suffix_name,51,3
race,54,30
sex,84,30
birth_date,114,8
offender_assigned_place,122,8
View illinois_university_salaries_2018.csv
university total_salary
Chicago State University 26643267.07
Eastern Illinois University 39104962.4
Governors State University 27282001.7
Illinois State University 92108974.46
Northeastern Illinois University 38303671.72
Northern Illinois University 93582392.05
Southern Illinois University Carbondale 74338384.24
Southern Illinois University Edwardsville 64287003.19
Southern Illinois University School of Medicine 72072277.63
@brentajones
brentajones / blinkt-weather.py
Last active Feb 4, 2021
A weather status script for the Raspberry Pi and Blinkt module
View blinkt-weather.py
import json, time, os.path
import blinkt, requests
status_colors = {'current':[1,1,1],'high':[1,0,0],'low':[0,0,1],'precip':[0,1,0]}
blinkt.set_clear_on_exit()
blinkt.set_brightness(.1)
def getForecast(key,lat,lng):
url = 'https://api.darksky.net/forecast/' + key + '/' + str(lat) + ',' + str(lng)
@brentajones
brentajones / 2017-06-23-stl-breweries.csv
Last active Jun 26, 2017
St. Louis Breweries, retrieved from https://stlbeer.org/breweries/ on 23 June 2017, addresses geocoded with geocodio
View 2017-06-23-stl-breweries.csv
brewery street city state latitude longitude
2nd Shift Brewing 1601 Sublette Ave. St. Louis MO 38.621869 -90.280405
4 Hands Brewing Co. 1220 S 8th St. St. Louis MO 38.615315 -90.197549
4204 Main St. Brewing Co. 4204 W Main St Belleville IL 38.537825 -90.020468
Alpha Brewing Co. 1409 Washington Ave St. Louis MO 38.632528 -90.199615
Anheuser-Busch 12th and Lynch St St. Louis MO 38.631501 -90.19231
Augusta Brewing Co. 109 Main St Washington MO 38.560019 -91.011468
Bastard Brothers Brewing Company 2114 Penta Drive High Ridge MO 38.482386 -90.503135
Bat Creek Brewery 4 W Main St Bowling Green MO 39.341814 -91.193146
Big Muddy Brewing 1430 N 7th St Murphysboro IL 37.782423 -89.33199
@brentajones
brentajones / amtrak.csv
Created Sep 10, 2016
Amtrak stations, dumped from National Transportation Atlas Database (2015)
View amtrak.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 12 columns, instead of 2. in line 8.
X,Y,OBJECTID,STNCODE,STNNAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,STNTYPE,STFIPS
-82.44084200005824,38.415404999740986,1,HUN,"Huntington, West Virginia",1050 8th Avenue,,Huntington,WV,25701,RAIL,54
-97.930060999815225,38.055858999992893,2,HUT,"Hutchinson, Kansas",North Walnut St & East 3rd Ave,,Hutchinson,KS,67501,RAIL,20
-85.469924999738907,43.395728999693631,3,HWC,"Howard City, Michigan",130 North Ensley St.,Sunoco Station,Howard City,MI,49323,BUS,26
-116.233170000495079,33.714751999705072,4,IDO,"Indio, California",NE Corner Hywy-111 and Monroe Street,Sunline Bus Stop,Indio,CA,92201-3917,BUS,06
-94.429297999503035,39.086975000296093,5,IDP,"Independence, Missouri",600 South Grand Ave.,,Independence,MO,64050-3564,RAIL,29
-86.160309000060295,39.762154000007172,6,IND,"Indianapolis, Indiana",350 South Illinois Street,,Indianapolis,IN,46225-1198,RAIL,18
-117.759192999657159,33.674767000296868,7,IRV,"Irvine, California",15215 Barranca Parkway,Irvine Transportation Center,Irvine,CA,92618,RAIL,06
-90.190598000297427,32.
@brentajones
brentajones / dailygraphics.applescript
Created Jun 7, 2016
NPR Dailygraphics Launcher for iTerm 2 3.0
View dailygraphics.applescript
tell application "iTerm"
activate
tell current session of current tab of current window
set newSession to (split vertically with same profile)
write text "cd ~/dailygraphics"
write text "workon dailygraphics"
write text "git pull"
write text "fab -l"
end tell
View keybase.md

Keybase proof

I hereby claim:

  • I am brentajones on github.
  • I am brentajones (https://keybase.io/brentajones) on keybase.
  • I have a public key whose fingerprint is E19A 112C 46B6 753E 7AD6 30AE 731E E79C C630 A7B6

To claim this, I am signing this object:

View Safari log - auto-reload
[Error] XMLHttpRequest cannot load safari-extension://com.evernote.safari.clipper-Q79WDW8YH9/31c567e4/_locales/en_us/messages.json. Cross origin requests are only supported for HTTP.
a (port.js, line 2)
_getL10nData (port.js, line 2)
getMessage (port.js, line 2)
ContentVeil (ContentVeil.js, line 2)
(anonymous function)
execCb (require.js, line 6)
check (require.js, line 6)
(anonymous function) (require.js, line 6)
(anonymous function) (require.js, line 6)
View Safari Log
[Error] TypeError: undefined is not an object (evaluating 'Browser.extension.getURL')
global code (require-config.js, line 2)
appendChild ([native code], line 0)
Cj (pubads_impl_70r.js, line 156)
qk (pubads_impl_70r.js, line 176)
sk (pubads_impl_70r.js, line 177)
N (pubads_impl_70r.js, line 178)
fillSlot (pubads_impl_70r.js, line 196)
da (pubads_impl_70r.js, line 214)
Me (pubads_impl_70r.js, line 51)
View Chrome log
embed.js:1 Unsafe attempt to redefine existing module: apps
embed.js:1 Unsafe attempt to redefine existing module: get
embed.js:1 Unsafe attempt to redefine existing module: ensureHttpBasedProtocol
embed.js:1 Unsafe attempt to redefine existing module: log
embed.js:1 Unsafe attempt to redefine existing module: on
embed.js:1 Unsafe attempt to redefine existing module: once
embed.js:1 Unsafe attempt to redefine existing module: off
embed.js:1 Unsafe attempt to redefine existing module: trigger
embed.js:1 Unsafe attempt to redefine existing module: stopListening