Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Keller chrislkeller

View GitHub Profile
@chrislkeller
chrislkeller / README.md
Last active Oct 23, 2020
U.S. Supreme Court nominations over the years.
View README.md

On Oct. 6, 2018, the U.S Senate on Saturday approved Brett Kavanaugh's nomination to the Supreme Court with a 50-48-1 vote, the narrowest margin for a confirmation vote in more than 130 years.

Kavanaugh's vote of 50-48-1 was 51.02%. Sen. Steve Daines (R-Mont.) was attending his daughter's wedding Saturday, and with Kavanaugh having enough other votes to win confirmation, Daines did not return to Washington for the vote. Sen. Lisa Murkowski (R-Alaska), who had planned to vote against Kavanaugh, instead voted “present” as a courtesy to Daines.

Kavanaugh Vote

This dataset was used as the basis for this piece in the L.A. Times:

I put this dataset together from a variety of sources, including:

View north_county_fires.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrislkeller
chrislkeller / state_voter_reg_totals.csv
Last active Sep 17, 2019
Attempt to compile California Statement of Registration as submitted to the secretary of state since October 2001.
View state_voter_reg_totals.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 19 columns, instead of 5. in line 8.
report_date,report_type,County,Eligible,Total Registered,Republican,Democratic,No Party Preference,American Independent,Americans Elect,Declined to State,Green,Libertarian,Miscellaneous,Natural Law,Other,Peace and Freedom,Reform,Unknown
2001-10-02,154 day,Alameda,944546.0,668305.0,133404.0,377745.0,,10902.0,,115770.0,14219.0,3458.0,8819.0,2325.0,,,1663.0,
2001-10-02,154 day,Alpine,939.0,777.0,312.0,271.0,,25.0,,146.0,5.0,7.0,4.0,1.0,,,6.0,
2001-10-02,154 day,Amador,24118.0,18615.0,8355.0,7352.0,,515.0,,1761.0,131.0,132.0,244.0,14.0,,,111.0,
2001-10-02,154 day,Butte,150308.0,112001.0,47518.0,41041.0,,3116.0,,15714.0,2217.0,802.0,1211.0,74.0,,,308.0,
2001-10-02,154 day,Calaveras,31480.0,24816.0,11029.0,9277.0,,646.0,,2960.0,239.0,375.0,120.0,43.0,,,127.0,
2001-10-02,154 day,Colusa,10756.0,7509.0,3347.0,3044.0,,200.0,,813.0,17.0,37.0,31.0,2.0,,,18.0,
2001-10-02,154 day,Contra Costa,651279.0,476935.0,154532.0,235612.0,,8349.0,,51760.0,4148.0,2282.0,17391.0,1064.0,,,1797.0,
2001-10-02,154 day,Del Norte,16754.0,126
View oc-voter-reg-bot-README.md

NOTE: I'll work at fleshing this out a bit better

GOAL: Retrieve, catalog and display a daily record of voter registration figures in Orange County because a spokesperson for the registrar's office said they are unable to provide the figures.

TO PULL THIS OFF:

  • Determine when the figures are updated each day
    • HOW: Phone conversation with registrar, reporter
  • Navigate to the O.C. URL that contains the daily figures
    • Create a scheduler
View gz_2010_us_500_11_5m.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View texas_congressional_districts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrislkeller
chrislkeller / README.md
Created Aug 2, 2019
Some Department of Homeland Security data and sources regarding immigration removals and returns
View README.md

Regarding the csv data:

  • 1 Removals are the compulsory and confirmed movement of an inadmissible or deportable alien out of the United States based on an order of removal. An alien who is removed has administrative or criminal consequences placed on subsequent reentry owing to the fact of the removal.
  • 2 Returns are the confirmed movement of an inadmissible or deportable alien out of the United States not based on an order of removal.
  • 3 Includes the 15 months from July 1, 1975
@chrislkeller
chrislkeller / _ridgecrest-earthquake-sequence-midi-file.ipynb
Created Jul 11, 2019
July 2019 Ridgecrest earthquakes plotted to midi file using Michael Corey's miditime library
View _ridgecrest-earthquake-sequence-midi-file.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View earthquake-aftershocks-timeline.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View setting-up-a-virtualenv.md

Setting up a virtualenv

You can’t perform that action at this time.