This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ReportUsageRequestBody": { | |
"TransactionId": "newscred-1493611203032-237061", | |
"AssetUsages": [ | |
[ | |
{ | |
"asset_id": "669336318", | |
"usage_date": "2017-04-29", | |
"quantity": 1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ReportUsageRequestBody": { | |
"TransactionId": "newscred-1493611203032-237061", | |
"AssetUsages": [ | |
[ | |
{ | |
"asset_id": "664122930", | |
"usage_date": "2017-04-14", | |
"quantity": 1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `publish_events` ADD `channel` VARCHAR(32) NULL DEFAULT NULL AFTER `created_at`; | |
ALTER TABLE `publish_events` CHANGE `organization` `organization` VARCHAR(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT 'Null'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | |
* | |
* Uses the built in easing capabilities added In jQuery 1.1 | |
* to offer multiple easing options | |
* | |
* TERMS OF USE - jQuery Easing | |
* | |
* Open source under the BSD License. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
GOOGLE_API = { | |
'distance': 'http://maps.googleapis.com/maps/api/directions/json' | |
} | |
def get(key, options): | |
if key not in GOOGLE_API: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
PER_DIEM_API = 'https://explore.data.gov/resource/perdiem.json' | |
def get(params): | |
r = requests.get(PER_DIEM_API, params=params) | |
return r.json() |