Skip to content

Instantly share code, notes, and snippets.

# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
@hunterowens
hunterowens / speedtest.py
Last active August 29, 2015 13:55
speedtest.py
import timeit
import pandas as pd
import requests
S3_URL = "https://s3-us-west-2.amazonaws.com/dssgtest01/crimedata.csv"
S3_PATH = "s3://dssgtest01/crimedata.csv"
LOCAL_EBS_PATH = "/mnt/vol-2a96ab12/crimedata.csv"
NFS_PATH = "/mnt/data1/SpeedTest/crimedata.csv"
#S3 Testing. using HTML
@hunterowens
hunterowens / renmin.csv
Last active August 29, 2015 13:59
Chinese Internet Tests
type_of_connection ping download upload
CMCC Paid China Moible 0 26.35 32.36
Renmin WIFI 16 6.24 1.59
Personal WIFI 2 42.96 49.02
Personal WIFI+cVPN 453 1.01 0.007
Personal WIFI+OpenVPN/Digital Ocean 443 0.05 0.33
Personal WIFI+IP VanishVPN 437 0.59 0.08
@hunterowens
hunterowens / lunch.md
Last active August 29, 2015 14:03
JuliaConLunch
  1. Portillos - Classic Chicago - Italian Beef, Hot Dogs - Farther Walk- 100 W Ontario St
  2. Food Trucks - Right outside. Take a Look.
  3. Food For Thought - Food Court/Salad Bar - 401 North Michigan Ave - walk towards Michigan.
  4. Billy Goat Tavern - 430 N. Michigan Ave - LOWER LEVEL- The Classic Chicago Burger Place. Under Tribune Tower.
  5. Water Tower Place Food Court - It's a Mall with a food court. Walk up Michigan.
  6. Epic Burger - New Burger place - 227 E Ontario St
  7. Sayat Nova - Sit down Armenian food. 157 E. Ohio St.
  8. Chipotle - 291 E Ontario St
  9. Potbelly - Local sandwich chain- 277 E Ontario St
  10. Naf Naf Grill - Middle Eastern Chipotle - 326 N Michigan Ave
@hunterowens
hunterowens / wards2014.json
Created December 3, 2014 21:40
wards.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / list.md
Created December 18, 2014 19:01
SouthsideBestSide
  • Jackson Park
    • Make sure to see the japanese garden, and the columbia statue
    • Also the MSI
  • Smart is also good
  • go have breakfast at Daley's 2nd oldest resturant in the city
  • Calumet and the east side is cool - check out the state line power plant and have some Calumet Fisheries
@hunterowens
hunterowens / pandas.ipynb
Created February 10, 2015 21:29
IntroPandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / test.geojson
Created April 13, 2015 18:54
transit.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / will_extract_ca_sort.py
Created July 16, 2015 19:51
CA Pipeline Operators
# coding: utf-8
import pandas as pd
# Get the table by id, pick first item on the returned list
df = pd.read_html('http://primis.phmsa.dot.gov/comm/reports/operator/OperatorIM_opid_300.html?nocache=6511#_Incidents_tab_3', attrs={'id': '_4E112845Q'})[0]
# only in CA
df[df['State'] == 'CA'].keys()
# Sort by property damage