This file contains hidden or 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
- title: Places API | |
to: /api/ | |
items: | |
- title: Overview | |
to: /api/ | |
- title: Getting Started | |
to: /api/getting-started/ | |
- title: Versioning | |
to: /api/versioning/ | |
- title: Authentication |
This file contains hidden or 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
<style> | |
.DexterWidget--3Gs4e .WebWidget-toggle--3orU9 { | |
background-color: #2c2c2c !important; | |
} | |
.DexterWidget--3Gs4e { | |
font-family: 'TheSans-OT', arial, sans-serif !important; | |
} | |
.DexterWidget--3Gs4e .MessagePanel-header--3At-q { | |
background-color: #2c2c2c !important; | |
} |
This file contains hidden or 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
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<style> | |
.DexterWebWidget span, .DexterWebWidget input, .DexterWebWidget a { | |
font-family: 'TheSans-OT', arial, sans-serif !important; | |
-webkit-font-smoothing: auto !important; | |
letter-spacing: 0rem !important; | |
} | |
.WebWidget-open .DexterWebWidget .DexterWebWidget-toggle { | |
background-color: black !important; | |
} |
This file contains hidden or 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
function getWeather(zip, additionalText) { | |
var response = UrlFetchApp.fetch("http://api.poncho.is/weather/forecast/"+zip) | |
, obj = JSON.parse(response.getContentText()) | |
; | |
return [ [obj.data.body+additionalText, obj.data.media] ] | |
} | |
/* | |
* Retrieves the URL to the active spreadsheet |
This file contains hidden or 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
/* | |
* Handle a GET request | |
* | |
* @param { Object } e - The request object https://developers.google.com/apps-script/guides/web#url_parameters | |
*/ | |
function doGet(e) { | |
return ContentService.createTextOutput( | |
JSON.stringify(lookupAndCompute(null, e.parameter.text)) | |
).setMimeType(ContentService.MimeType.JSON); | |
} |
This file contains hidden or 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
/* | |
* Handle a GET request | |
* | |
* @param { Object } e - The request object https://developers.google.com/apps-script/guides/web#url_parameters | |
*/ | |
function doGet(e) { | |
return ContentService.createTextOutput( | |
JSON.stringify(lookupAndCompute(null, e.parameter.text)) | |
).setMimeType(ContentService.MimeType.JSON); | |
} |
This file contains hidden or 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 pandas as pd | |
import os | |
import json | |
import glob | |
import string | |
# create data frame to capture top venues for each location | |
df_ = pd.DataFrame() | |
This file contains hidden or 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 pandas as pd | |
from urllib2 import Request, urlopen, URLError | |
import json | |
import config | |
import os | |
# imports csv to dataframe | |
csv = pd.read_csv('noisy_top.csv') | |
#converts latitude/longitude into url for api endpoint | |
lat_long = [str(csv['Latitude'][i]) + "," + str(csv['Longitude'][i]) for i in range(csv['Latitude'].count())] |