Skip to content

Instantly share code, notes, and snippets.

View tonypiazza's full-sized avatar

Tony Piazza tonypiazza

View GitHub Profile
@tonypiazza
tonypiazza / sourcefiles.sh
Last active February 7, 2018 04:40
BASH script to download flight data from the U.S. Department of Transportation, decompress it and then upload to S3
#!/bin/bash
echo 'Creating a temporary directory...'
temp_dir=`mktemp -d -q`
if [[ ! "$temp_dir" || ! -d "$temp_dir" ]]; then
echo 'Could not create temp dir!'
exit 1
else
pushd "$temp_dir"
@tonypiazza
tonypiazza / reshape_jhu_data.py
Last active March 30, 2020 22:12
Reshape the JHU data files
import csv
import sys
import traceback
FIELD_NAMES = ['Province_State', 'Country_Region',
'Lat', 'Long', 'Date', 'Count']
if __name__ == '__main__':
count = 0

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: