Skip to content

Instantly share code, notes, and snippets.

Luke McKinstry lukemckinstry

View GitHub Profile
View may-upcomming-elections.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View recent-elections.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View covid-19-election-tracking.csv
election country state original date status rescheduled date
Clearwater City Council US FL 2020-03-17 held-as-planned
Gainesville City Commission US FL 2020-03-17 held-as-planned
Naples Mayor and City Council US FL 2020-03-17 held-as-planned
Pembroke Pines City Commission US FL 2020-03-17 held-as-planned
Pennsylvania House Special Election (D-8, 18 & 58) US PA 2020-03-17 held-as-planned
Cambridge City Council (D-7) Special Election CA ON 2020-03-23 postponed TBD
Massachusetts House Special Election US MA 2020-03-31 changed 2020-06-02
Massachusetts Senate Special Election US MA 2020-03-31 changed 2020-05-19
Columbia City Council US MO 2020-04-07 changed 2020-06-02
View ca-local-districts-status.csv
City Pop. Status
Los Angeles, CA 3,976,322 Already Districted
San Diego, CA 1,394,928 Already Districted
San Jose, CA 1,026,908 Already Districted
San Francisco, CA 864,816 Already Districted
Fresno, CA 520,052 Already Districted
Sacramento, CA 490,712 Already Districted
Long Beach, CA 474,140 Already Districted
Oakland, CA 419,267 Already Districted
Bakersfield, CA 373,640 Already Districted
@lukemckinstry
lukemckinstry / jitter-demo.py
Created Jul 17, 2019
Jitter overlapping points, plot in an evenly spaced circle around the original center
View jitter-demo.py
#jitter overlapping points, plot in an evenly spaced circle around the original center
import math
def geo_jitter(points_to_jitter):
for i in range(len(points_to_jitter)):
r = .01
angle = 0 + ((360/len(points_to_jitter)) * i)
View us-state-fips
AK,2,ALASKA
AL,1,ALABAMA
AR,5,ARKANSAS
AS,60,AMERICAN SAMOA
AZ,4,ARIZONA
CA,6,CALIFORNIA
CO,8,COLORADO
CT,9,CONNECTICUT
DC,11,DISTRICT OF COLUMBIA
DE,10,DELAWARE
View redistricting-morpher
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke-width: 1px;
stroke: #444;
}
text {
You can’t perform that action at this time.