Skip to content

Instantly share code, notes, and snippets.

View pjsier's full-sized avatar

Pat Sier pjsier

View GitHub Profile
@pjsier
pjsier / settings.json
Created November 19, 2021 02:27
VSCode configuration for formatting with standard, can go in .vscode/settings.json
{
"editor.formatOnSave": true,
"ruby.useBundler": true,
"ruby.format": "standard"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
import os
import boto3
# We don't need to manually specify the credentials if they have these names, but
# including for clarity
client = boto3.client(
"s3",
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pjsier
pjsier / zips-centroids.csv
Created June 25, 2020 15:35
ZIP Centroids
We can't make this file beautiful and searchable because it's too large.
lat,lon,zip
40.27794,-121.00042,00012
32.28632,-113.11597,00014
32.38239,-110.6671,00015
35.51737,-118.36611,00016
37.10494,-118.84675,00017
34.59578,-118.98752,00018
40.63259,-120.18884,00019
37.59397,-119.22124,00020
39.46131,-123.62041,00022
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.