Skip to content

Instantly share code, notes, and snippets.

View jonkeegan's full-sized avatar

Jon Keegan jonkeegan

View GitHub Profile
@jonkeegan
jonkeegan / whitehouse.json
Last active November 9, 2022 16:49
Twitter API results for @WhiteHouse account as of 2022-11-09
{'id': 1323730225067339784,
'id_str': '1323730225067339784',
'name': 'The White House',
'screen_name': 'WhiteHouse',
'location': 'United States of America',
'profile_location': None,
'description': 'Welcome to the Biden-Harris White House! Tweets may be archived: https://t.co/UbZQo0KxMN',
'url': 'https://t.co/121St5NWKx',
'entities': {'url': {'urls': [{'url': 'https://t.co/121St5NWKx',
'expanded_url': 'http://WhiteHouse.gov',
@jonkeegan
jonkeegan / sample.json
Last active February 9, 2021 23:32
sample.json
[
{
"timestamp_EST": "2021-01-07 00:00:36",
"n_users": 4,
"url_domain": "washingtontimes.com",
"url": "https://www.washingtontimes.com/news/2021/jan/6/xrvision-firm-claims-antifa-infiltrated-protesters/",
"description": "washingtontimes.com Facial recognition firm claims antifa infiltrated Trump protesters who stormed Capitol Trump supporters say that antifa members disguised as one of them infiltrated the protesters who stormed the U.S. Capitol on Wednesday."
},
{
"timestamp_EST": "2021-01-07 00:04:15",
@jonkeegan
jonkeegan / mueller_quilt.md
Last active July 23, 2019 22:16
Make a Mueller Report quilt from the original PDF using Imagemagick

Make a Mueller Report quilt from the original PDF using Imagemagick

These commands will let you make a thumbnail quilt of all 448 pages of the Mueller Report PDF.

Make a new directory...

mkdir mueller_quilt

...then cd into it.

@jonkeegan
jonkeegan / trump_cinco_tweet.json
Created November 19, 2018 04:52
The full metadata of a single tweet from Twitter's API
{
"created_at": "Thu May 05 18:57:30 +0000 2016",
"id": 728297587418247168,
"id_str": "728297587418247168",
"text": "Happy #CincoDeMayo! The best taco bowls are made in Trump Tower Grill. I love Hispanics! https:\/\/t.co\/ufoTeQd8yA https:\/\/t.co\/k01Mc6CuDI",
"truncated": false,
"entities": {
"hashtags": [{
"text": "CincoDeMayo",
"indices": [6, 18]
@jonkeegan
jonkeegan / gist:9689ba5893b3d7ed3e3b162afa3418db
Last active November 7, 2018 16:39
@kairyssdal + @mollywood topline info
+---------------------+------------------------------+--------------------------+
| | @kairyssdal | @mollywood |
+---------------------+------------------------------+--------------------------+
| Joined | April 9, 2009 | May 31, 2007 |
| Time elapsed | 9 years 6 months and 29 days | 11 years 5 months 7 days |
| Days elapsed | 3,499 days | 4,178 days |
| Followers | 157,270 | 123,399 |
| Following | 373 | 1,188 |
| Included on lists | 2,888 | 6,989 |
| Likes / faves | 124 | 7,825 |
@jonkeegan
jonkeegan / hardrockintlent_tweets.csv
Created October 26, 2018 21:15
Here's the 3000 most recent tweets (as of 10/26/18) from the @hardrockintlent account, which was owned by Cesar Altieri Sayoc Jr.. Sayoc was arrested and charged by the FBI on 10/26/18 for sending bombs through the mail to major figures in the Democratic party.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1. in line 1.
1054856272170938370 Oct 23 18:05 @hardrockintlent Undercover FBI agent got Gillum ‘Hamilton’ tickets, texts show https://t.co/9pHihlhfbV
1054519269919281152 Oct 22 19:46 @hardrockintlent https://t.co/9XHR453Gux
1054519255423688704 Oct 22 19:45 @hardrockintlent https://t.co/Y6Kuub9GF1
1054519181385887745 Oct 22 19:45 @hardrockintlent https://t.co/I6Syw3bnIL
1054519009536827398 Oct 22 19:44 @hardrockintlent https://t.co/bdIDycZ03x
1054518985180483584 Oct 22 19:44 @hardrockintlent https://t.co/JUVDd77VEc
1054518949226917888 Oct 22 19:44 @hardrockintlent https://t.co/X5ezOSjKk9
1054518848010010624 Oct 22 19:44 @hardrockintlent https://t.co/cNRUVe249q
1054518802971590656 Oct 22 19:44 @hardrockintlent https://t.co/WzL1aWhD4U
1054518786177544192 Oct 22 19:44 @hardrockintlent https://t.co/vmzmv58v4e
@jonkeegan
jonkeegan / keybase.md
Last active July 11, 2018 15:57
keybase.md

Keybase proof

I hereby claim:

  • I am jonkeegan on github.
  • I am jonkeegan (https://keybase.io/jonkeegan) on keybase.
  • I have a public key ASCecMp5Yuh7tphQhRBtlLA_6xKJpQom1O582ffX7dindQo

To claim this, I am signing this object:

@jonkeegan
jonkeegan / gist:f394e9f633c5625b9a8f
Last active July 11, 2018 16:03
This is a snippet of code to render histograms from a bitmap to json. I used this technique in this project: http://graphics.wsj.com/avengers/
// requires ImageMagick (http://www.imagemagick.org/) and csvkit (https://github.com/onyxfish/csvkit)
// You need to have a schmea csv file like this in the same directory:histogram_schema.csv
column,start,length
count,0,10
color,26,7
// This takes a color bitmap, turns it to 64 colors (to keep it a resonable size), generates a histogram, exports the colors and counts to a json object
convert my_bitmap.png -dither Riemersma -colors 64 -format %c histogram:info:- | in2csv -f fixed -s histogram_schema.csv | csvjson > 397.json
@jonkeegan
jonkeegan / Configuration.h
Last active August 29, 2015 14:14
Configuration.h - 2.3.15
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
@jonkeegan
jonkeegan / gist:fd70ae686449ef6b9607
Created June 4, 2014 02:31
Marlin - Configuration.h file
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================