Skip to content

Instantly share code, notes, and snippets.

@brentajones
brentajones / blinkt-weather.py
Last active February 4, 2021 12:24
A weather status script for the Raspberry Pi and Blinkt module
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)
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 / doc-schema.txt
Created October 23, 2020 16:37
Working with Missouri Department of Corrections data
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
@brentajones
brentajones / US_State_Bounding_Boxes.csv
Created March 7, 2021 05:25 — forked from a8dx/US_State_Bounding_Boxes.csv
Bounding boxes for all US states and territories [NAD83]
STATEFP STUSPS NAME xmin ymin xmax ymax
1 01 AL Alabama -88.473227 30.223334 -84.88908 35.008028
2 02 AK Alaska -179.148909 51.214183 179.77847 71.365162
3 60 AS American Samoa -171.089874 -14.548699 -168.1433 -11.046934
4 04 AZ Arizona -114.81651 31.332177 -109.045223 37.00426
5 05 AR Arkansas -94.617919 33.004106 -89.644395 36.4996
6 06 CA California -124.409591 32.534156 -114.131211 42.009518
7 08 CO Colorado -109.060253 36.992426 -102.041524 41.003444
8 69 MP Commonwealth of the Northern Mariana Islands 144.886331 14.110472 146.064818 20.553802
9 09 CT Connecticut -73.727775 40.980144 -71.786994 42.050587