Upload a GTFS file that contains shapes.txt
. Example GTFS files can be found at the GTFS Data Exchange.
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
#!/bin/bash | |
## | |
# AUTHOR: Andy Savage <[email protected]> | |
# GITHUB: www.github.com/hongkongkiwi | |
# DESCRIPTION: This script is for converting ISO files and burning them to a USB drive | |
## | |
HELP="USAGE: iso2usb blah.iso /dev/disk#" |
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 spreadsheetToPDF(key) { | |
var spreadsheet = SpreadsheetApp.openById(key); | |
var response = UrlFetchApp.fetch(spreadsheet.getUrl() + '/export?exportFormat=pdf&gid=1&gridlines=0&printtitle=0&size=7&fzr=true&portrait=1&fitw=1', { | |
muteHttpExceptions: true, | |
headers: { | |
Authorization: 'Bearer ' + ScriptApp.getOAuthToken(), | |
} | |
}); |
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 authorize_(method) { | |
var oauthConfig = UrlFetchApp.addOAuthService("twitter"); | |
oauthConfig.setAccessTokenUrl("https://api.twitter.com/oauth/access_token"); | |
oauthConfig.setRequestTokenUrl("https://api.twitter.com/oauth/request_token"); | |
oauthConfig.setAuthorizationUrl("https://api.twitter.com/oauth/authorize"); | |
oauthConfig.setConsumerKey(UserProperties.getProperty("CONSUMER_KEY")); | |
oauthConfig.setConsumerSecret(UserProperties.getProperty("CONSUMER_SECRET")); | |
return { | |
oAuthServiceName: "twitter", |