Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Keller chrislkeller

View GitHub Profile
View attorney_general_tenures.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
id,name,post,start_date,end_date,tenure_in_days,presidents_served_under,reason_tenure_ended,source,source_link
3, Jeff Sessions,attorney general,"February 9, 2017","November 7, 2018",637,Donald Trump,"In a letter delivered to the White House, Sessions wrote that he was submitting his resignation at the request of the president, who has been highly critical of his attorney general since he recused himself last year from overseeing the investigation into Russia's interference in the 2016 election and whether the president himself obstructed justice in the matter.",Los Angeles Times,http://www.latimes.com/politics/la-na-pol-sessions-resigns-20181107-story.html
34, Loretta E. Lynch,attorney general,"April 27, 2015","January 20, 2017",635,Barack Obama,,,
82, Eric H. Holder Jr.,attorney general,"February 3, 2009","April 27, 2015",2275,Barack Obama,,,
19, Michael B. Mukasey,attorney general,"November 9, 2007","January 20, 2009",439,George W. Bush,,,
48, Alberto R. Gonzales,attorney general,"February 3, 2005","Septem
@chrislkeller
chrislkeller / scotus_data.csv
Last active Oct 6, 2018
Data structured from U.S. Senate Supreme Court Nominations: present-1789 located at https://www.senate.gov/pagelayout/reference/nominations/Nominations.htm
View scotus_data.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 23 columns, instead of 3. in line 4.
index,nominee,nominated_by,to_replace,nomination_date,days_between,vote,votes_for,votes_against,pct_of_approval_vote,roll_call_vote_number,result,notes,vote_date,congressional_session,presidential_party,majority_party,majority_seats,minority_party,minority_seats,other,total,notes
1,Brett Kavanaugh,President Donald Trump,Kennedy,2018-07-10,88,null,null,null,,null,n/a,,2018-10-06,115,Republican,Republican,51,Democrat,47,2,100,"2 Independents
(both caucus with the Democrats)"
2,Neil M. Gorsuch,President Donald Trump,Scalia,2017-02-01,65,54-45,54,45,54.5%,https://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=115&session=1&vote=00111,Confirmed and served,,2017-04-07,115,Republican,Republican,51,Democrat,47,2,100,2 Independents (both caucus with the Democrats)
3,Merrick B. Garland,President Barack Obama,Scalia,2016-03-16,null,null,null,null,,null,No Action,,null,114,Democrat,Republican,54,Democrat,44,2,100,"2 Independents
(both caucus with the Democrats)"
4,Elena Kagan,President Bar
@chrislkeller
chrislkeller / senate_intelligence_commitee_members_2001_2018.csv
Last active Oct 5, 2018
A rundown of members of the U.S. Senate Intelligence Committee between 2001 and the current session though 2018. Data acquired from the Senate Intelligence Committee webpages. Includes member ID and link to bio page on ProPublica's Represent news app
View senate_intelligence_commitee_members_2001_2018.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 10 columns, instead of 9. in line 5.
order_id,congress,years,senator,member_id,party,state,notes,source,pro_publica_represent
51,115th Congress,2017-2018,Angus King,K000383,Democrat,Maine,,https://www.intelligence.senate.gov/about/committee-members-115th-congress-2017-2018,https://projects.propublica.org/represent/members/K000383
71,114th Congress,2015-2016,Angus King,K000383,Democrat,Maine,,https://www.intelligence.senate.gov/about/committee-members-114th-congress-2015-2029,https://projects.propublica.org/represent/members/K000383
91,113th Congress,2013-2014,Angus King,K000383,Democrat,Maine,,https://www.intelligence.senate.gov/about/committee-members-113th-congress-2013-2014,https://projects.propublica.org/represent/members/K000383
17,107th Congress,2001-2002,Barbara A. Mikulski,M000702,Democrat,Maryland,,https://www.intelligence.senate.gov/about/committee-members-107th-congress-2001-2002,https://projects.propublica.org/represent/members/M000702
36,108th Congress,2003-2004,Barbara A. Mikulski,M000702,Democrat,Maryland,,https://www.intelligence
@chrislkeller
chrislkeller / 2017_06_08_comey_transcript.csv
Last active Jun 10, 2017
2017_06_08_comey_transcript_structured_text
View 2017_06_08_comey_transcript.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
testimony_type,speaker,party,resp_text
opening-statement,burr,gop,"I'd like to call this hearing to order. Director Comey, I appreciate your willingness to appear before the committee today, and more importantly, I thank you for your dedicated service and leadership to the Federal Bureau of Investigation. Your appearance today speaks to the trust we have built over the years, and I'm looking forward to a very open and candid discussion today."
opening-statement,burr,gop,"I'd like to remind my colleagues that we will reconvene in closed session at 1 PM today and I ask that you reserve for that venue any questions that might get into classified information. The director has been very gracious with his time, but the vice chairman and I have worked out a very specific timeline for his commitment to be on the Hill, so we will do everything we can to meet that agreement."
opening-statement,burr,gop,"The Senate Select Committee on Intelligence exists to certify for the other 85 members of the United States Senate an
@chrislkeller
chrislkeller / halt_harassment.py
Last active Mar 6, 2017
Thinking through an Intent Schema and method to handle and process harassing language thrown at Amazon's Alexa service.
View halt_harassment.py
# random module required
import random
"""
plug_in method that responds
to "HaltHarassment" intent
"""
def halt_harassment():
list_of_responses = []
list_len = (len(list_of_responses) - 1)
@chrislkeller
chrislkeller / 2016_11_08_la_county_pres_by_precinct.csv
Created Nov 10, 2016
csv of precinct-by-precinct pre-certified results from Los Angeles County from the Nov. 8, 2016 presidential election
View 2016_11_08_la_county_pres_by_precinct.csv
We can't make this file beautiful and searchable because it's too large.
row_ids,ballot_type,precinct_id,registration,ballots cast,turnout,stein,clinton,la_riva,trump,johnson,orig_location,concatanated_location,
1,precinct ballots, 0050003A ,1084,456,0.42,9,116,0,287,16,ACTON , 0050003A - ACTON ,
2,vote by mail ballots, 0050003A ,0,154,NULL,3,40,0,105,5,VOTE BY MAIL, 0050003A - VOTE BY MAIL,
3,total ballots, 0050003A ,1084,610,0.56,12,156,0,392,21,TOTAL, 0050003A - TOTAL,
4,precinct ballots, 0050004B ,592,244,0.41,1,54,3,175,3,ACTON , 0050004B - ACTON ,
5,vote by mail ballots, 0050004B ,0,98,NULL,0,34,0,59,2,VOTE BY MAIL, 0050004B - VOTE BY MAIL,
6,total ballots, 0050004B ,592,342,0.58,1,88,3,234,5,TOTAL, 0050004B - TOTAL,
7,precinct ballots, 0050005A ,733,306,0.42,2,62,2,220,11,ACTON , 0050005A - ACTON ,
8,vote by mail ballots, 0050005A ,0,113,NULL,0,33,0,78,2,VOTE BY MAIL, 0050005A - VOTE BY MAIL,
View _init_user_search.py
"""
Requires twitter==1.14.3
You wil need to register a twitter application to acquire the proper authentication keys & tokens: https://apps.twitter.com/
* TWITTER_CONSUMER_KEY
* TWITTER_CONSUMER_SECRET
* TWITTER_ACCESS_TOKEN
* TWITTER_ACCESS_TOKEN_SECRET
"""
@chrislkeller
chrislkeller / script.py
Created Jul 7, 2015
Beginning of a class to work through the rap collaboration data...
View script.py
import logging
import json
logger = logging.getLogger("root")
logging.basicConfig(
format = "\033[1;36m%(levelname)s: %(filename)s (def %(funcName)s %(lineno)s): \033[1;37m %(message)s",
level=logging.DEBUG
)
class SearchJsonFile(object):
@chrislkeller
chrislkeller / supplies.md
Last active Aug 29, 2015
Some hints as to what supplies new parents could use as the journey begins...
View supplies.md

Friend No. 1

  • STROLLER/CARSEAT

    • Baby Jogger City Mini (We picked this over the Britax B-Agile. The Baby Jogger handle height was a little more comfortable for me, but they are essentially the same.)
    • Chicco KeyFit w/infant insert
    • Adapter to use the infant carseat with the stroller
    • Stroller console (useful for neighborhood walks, to hold a coffee mug, keys, burp cloth)
  • CRIB:

    • Ikea Sundvik (The reviews are mixed, because previous versions had a recall. But for us, it does the job, feels sturdy for the right price. We have friends who spent a lot more and are also happy, so to each their own.)
You can’t perform that action at this time.