Skip to content

Instantly share code, notes, and snippets.


Ed Summers edsu

View GitHub Profile

High wind damage, associated with Tropical Storm Frances, is listed below, in alphabetical order by county for those counties that "high wind" criteria was either met or assumed to be met.Baldwin: The Georgia Emergency Management Agency reported that extensive and widespread wind damage was observed. Many trees and power lines were down throughout the county and many parts of the county were expected to be without power for up to four days as a result. In addition, four homes suffered major damage and five suffered minor damage. One man was injured and taken to a local hospital when a tree fell on his mobile home. Four to five inches of rain was also reported throughout the county, but no significant flooding problems were reported. (Estimated Damage: $500,000)Barrow: The Barrow County News of Winder reported that many trees and power lines were down throughout the county. A funeral home was damaged when the relatively new roof was peeled back by the high winds and a large tree fell on the structure

#!/usr/bin/env python3
import re
import csv
import sys
import random
import collections
import requests_html
http = requests_html.HTMLSession()
#!/usr/bin/env python3
# For this to work you need to install requests_oauthlib and put your keys in
# ACCESS_TOKEN_SECRET. Also you will need to go into the new Twitter dashboard
# and put the identified app in a Project in order for it to use the new v2 API.
import os
import json
import requests
View 1297495295266357248-2.json
"data": [
"conversation_id": "1297495295266357248",
"lang": "en",
"source": "Twitter for iPhone",
"context_annotations": [
"domain": {
"id": "10",
View 1297495295266357248.json
"created_at": "Sun Aug 23 11:25:59 +0000 2020",
"id": 1297495295266357200,
"id_str": "1297495295266357248",
"full_text": "So now the Democrats are using Mail Drop Boxes, which are a voter security disaster. Among other things, they make it possible for a person to vote multiple times. Also, who controls them, are they placed in Republican or Democrat areas? They are not Covid sanitized. A big fraud!",
"truncated": false,
"display_text_range": [
edsu /
Last active Aug 28, 2020
Concat two mp4 files with different resolutions.
# concatenate two videos with different resolution
ffmpeg -i part1.mp4 -i part2.mp4 -filter_complex "[0]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v0];[1]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v1];[v0][0:a:0][v1][1:a:0]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" out.mp4
edsu / email.txt
Created Jun 30, 2020
received at
View email.txt
How have you been?
I hope you, your family, and friends stay safe by taking the proper precuations
as we enter in to confusing and troubling times as we watch a worldwide
pandemic unfold with this Coronavirus.
Could there be something more deeper going on with all of this? Could we be
seeing the signs of the times unfolding? Could this be a door of opportunity
for people to open their hearts to what God has to say?
View payload.json
"globalObjects": {
"broadcasts": {},
"cards": {},
"lists": {},
"media": {},
"moments": {},
"places": {},
"topics": {},
"tweets": {
edsu / top10-comparison.csv
Last active May 28, 2020
Comparing the top co-occurring tweets in two sets of #GeorgeFloyd tweets. A set of 100,000 tweets and a set of 1000 tweets.
View top10-comparison.csv
100k 1k
blacklivesmatter blacklivesmatter
justiceforgeorgefloyd justiceforgeorgefloyd
minneapolis minneapolis
minneapolisriots minneapolisriots
icantbreathe icantbreathe
blacklivesmatters georgefloydwasmurdered
georgefloydwasmurdered breonnataylor
racism ahmaudarbery
minneapolispd blacklivesmatters
edsu / georgefloyd-hashtags.csv
Last active May 28, 2020
Hashtags counts in the last 116,901 tweets that use the hashtag #GeorgeFloyd.
View georgefloyd-hashtags.csv
hashtag count
georgefloyd 116901
blacklivesmatter 28047
justiceforgeorgefloyd 11167
minneapolis 9190
minneapolisriots 6193
icantbreathe 5380
blacklivesmatters 2792
georgefloydwasmurdered 2667
racism 2387
You can’t perform that action at this time.