Skip to content

Instantly share code, notes, and snippets.

View cmhedrick's full-sized avatar
💻
Working on projects!

Christopher Hedrick cmhedrick

💻
Working on projects!
View GitHub Profile
@cmhedrick
cmhedrick / metaagg.py
Created July 13, 2019 19:15
example of calling an api and getting back json, followed by aggregating the data through a mapping to help create objs that can be passed to different databases with varying key names/headers
import requests
# Example of Json
# {
# 'Type':'pollen',
# 'ForecastDate':'2019-07-13T00:00:00-04:00',
# 'Location':{
# 'ZIP':'22201',
# 'City':'ARLINGTON',
@cmhedrick
cmhedrick / pollen_req.json
Last active May 5, 2019 17:37
Request to pollen.com to get json based on zip
{'Type': 'pollen', 'ForecastDate': '2019-05-05T00:00:00-04:00', 'Location': {'ZIP': '22201', 'City': 'ARLINGTON', 'State': 'VA', 'periods': [{'Triggers': [{'LGID': 186, 'Name': 'Oak', 'Genus': 'Quercus', 'PlantType': 'Tree'}, {'LGID': 103, 'Name': 'Ash', 'Genus': 'Fraxinus', 'PlantType': 'Tree'}, {'LGID': 207, 'Name': 'Sycamore', 'Genus': 'Platanus', 'PlantType': 'Tree'}], 'Period': '0001-01-01T00:00:00', 'Type': 'Yesterday', 'Index': 7.6}, {'Triggers': [{'LGID': 186, 'Name': 'Oak', 'Genus': 'Quercus', 'PlantType': 'Tree'}, {'LGID': 103, 'Name': 'Ash', 'Genus': 'Fraxinus', 'PlantType': 'Tree'}, {'LGID': 207, 'Name': 'Sycamore', 'Genus': 'Platanus', 'PlantType': 'Tree'}], 'Period': '0001-01-01T00:00:00', 'Type': 'Today', 'Index': 2.9}, {'Triggers': [{'LGID': 186, 'Name': 'Oak', 'Genus': 'Quercus', 'PlantType': 'Tree'}, {'LGID': 103, 'Name': 'Ash', 'Genus': 'Fraxinus', 'PlantType': 'Tree'}, {'LGID': 207, 'Name': 'Sycamore', 'Genus': 'Platanus', 'PlantType': 'Tree'}], 'Period': '0001-01-01T00:00:00', 'Type': 'To
@cmhedrick
cmhedrick / media-queries.css
Last active May 21, 2018 21:39
Media Queries
/* ----------- iPhone X ----------- */
/* Portrait and Landscape */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 812px)
and (-webkit-min-device-pixel-ratio: 3) {
}
/* ----------- iPad Pro 10.5" ----------- */
/* Portrait and Landscape */
### Keybase proof
I hereby claim:
* I am cmhedrick on github.
* I am cmhedrick (https://keybase.io/cmhedrick) on keybase.
* I have a public key ASA48u_RESy5EBtqkSGgyzR2C_-QHMPH-oJwUF3Hvov9Iwo
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am cmhedrick on github.
* I am cmhedrick (https://keybase.io/cmhedrick) on keybase.
* I have a public key ASB89S8T_3-S8uTy67yLvfhX1QYXEukJ6zzncBFhcKzBiQo
To claim this, I am signing this object: