Skip to content

Instantly share code, notes, and snippets.

Ed Summers edsu

Block or report user

Report or block edsu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@edsu
edsu / congresseditors-top50.csv
Last active Sep 16, 2018
% jq -r .touser diffs.jsonl | sort | uniq -c | sort -rn | head -50 | csv > congresseditors-top50.csv
View congresseditors-top50.csv
Wikipedia User Edits
Therequiembellishere 1321
TiWash 1087
Muboshgu 728
Corkythehornetfan 717
Snooganssnoogans 658
Ser Amantio di Nicolao 614
null 596
ClueBot NG 585
Pvmoutside 555
@edsu
edsu / congresseditors-top50.txt
Last active Sep 16, 2018
jq -r .touser diffs.jsonl | sort | uniq -c | sort -rn | head -50 > congresseditors-top50.txt
View congresseditors-top50.txt
1321 Therequiembellishere
1087 TiWash
728 Muboshgu
717 Corkythehornetfan
658 Snooganssnoogans
614 Ser Amantio di Nicolao
596 null
585 ClueBot NG
555 Pvmoutside
522 Americus55
View diffengine-counts.txt
% wc -l */*.csv
48561 ap_diff/diffengine.csv
49933 bbc_diff/diffengine.csv
18030 calgaryherald/diffengine.csv
37 canadaland/diffengine.csv
305966 cbc/diffengine.csv
61528 cnn_diff/diffengine.csv
74006 dailymail_diff/diffengine.csv
37795 fox_diff/diffengine.csv
25943 globemail/diffengine.csv
View diffcsv.py
#!/usr/bin/env python3
"""
Ugly little program to turn a diffengine database into a csv. Maybe something
prettier should should be part of diffengine itself?
"""
import re
import csv
import sqlite3
View thanks.txt
_ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \
( T | h | a | n | k | s | ! )
\_/ \_/ \_/ \_/ \_/ \_/ \_/
+-+-+-+-+-+-+-+
|T|h|a|n|k|s|!|
+-+-+-+-+-+-+-+
_____ _ _ _
View x.txt
_ _ _ _
| |_| |__ __ _ _ __ | | _____| |
| __| '_ \ / _` | '_ \| |/ / __| |
| |_| | | | (_| | | | | <\__ \_|
\__|_| |_|\__,_|_| |_|_|\_\___(_)
View console.txt
% aria2c sintel.torrent -S https://webtorrent.io/torrents/sintel.torrent
>>> Printing the contents of file 'sintel.torrent'...
*** BitTorrent File Information ***
Comment: WebTorrent <https://webtorrent.io>
Creation Date: Thu, 30 Mar 2017 23:30:37 GMT
Created By: WebTorrent <https://webtorrent.io>
Mode: multi
Announce:
udp://tracker.leechers-paradise.org:6969
View people_who_match.csv
money (RUB) clicks impressions people_who_match
73529.37 63214 584264 People who like Black Matters
73529.37 63214 584264 Friends of connections: Friends of people who are connected to Black Matters
33613.65 105559 678859 People who like Don't Shoot
33613.65 105559 678859 Friends of connections: Friends of people who are connected to Don't Shoot
30368.65 22766 147459 People who like Being Patriotic
30368.65 22766 147459 Friends of connections: Friends of people who are connected to Being Patriotic
28239.93 4437 188417 Multicultural Affinity: African American (US)
18823.94 15060 119031 People who like LGBT United
18823.94 15060 119031 Friends of connections: Friends of people who are connected to LGBT United
@edsu
edsu / notebook.ipynb
Created Jul 20, 2018 — forked from trevormunoz/rekognition-labels-analysis.ipynb
Quick test of Amazon rekognition output
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pruitt.json
[
{"status": 200, "timestamp": 20170413112253, "collections": ["ArchiveIt-Collection-1632"], "url": "https://web.archive.org/web/20170413112253/https://twitter.com/EPAScottPruitt/status/832728630941749252"},
{"status": 301, "timestamp": 20170622235134, "collections": ["liveweb"], "url": "https://web.archive.org/web/20170622235134/https://twitter.com/EPAScottPruitt/status/832728630941749252"},
{"status": 200, "timestamp": 20170715070010, "collections": ["ArchiveIt-Collection-1657"], "url": "https://web.archive.org/web/20170715070010/https://twitter.com/EPAScottPruitt/status/832728630941749252"},
{"status": "-", "timestamp": 20171020113205, "collections": ["liveweb"], "url": "https://web.archive.org/web/20171020113205/https://twitter.com/EPAScottPruitt/status/832728630941749252"},
{"status": 200, "timestamp": 20170413112251, "collections": ["ArchiveIt-Collection-1632"], "url": "https://web.archive.org/web/20170413112251/https://twitter.com/EPAScottPruitt/status/832729697012240385"},
{"status": 301, "timestamp":
You can’t perform that action at this time.