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
{% comment %} assign initial variables {% endcomment %} | |
{% comment %} nowts = now timestamp / nowd = day of the month / nowm = number of the month / sd = seconds of a single day {% endcomment %} | |
{% assign nowts = 'now' | date: '%s' %} | |
{% assign nowd = 'now' | date: '%e' %} | |
{% assign nowm = 'now' | date: '%m' %} | |
{% assign nowy = 'now' | date: '%Y' %} | |
{% assign sd = 86400 %} | |
{% comment %} finding out how many days left in the month {% endcomment %} | |
{% comment %} dim = days in month / drm = days remaining in month {% endcomment %} |
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
//Customer.io Collections Sync w/ Automated Sync | |
function updateCollection() { | |
var api_key = "[YOUR_APP_API_KEY]"; | |
var collection_id = "[THE_COLLECTION_ID]"; | |
var url = "https://beta-api.customer.io/v1/api/collections/" + collection_id; | |
var data = { | |
name: SpreadsheetApp.getActiveSheet().getName(), | |
url: SpreadsheetApp.getActiveSpreadsheet().getUrl(), |
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
// path /api/folder/incoming.js | |
export default async function handler(req, res) { | |
let message = `hi from /api/folder/incoming`; | |
console.log(message); | |
console.log(req.body) | |
res.status(200).send(message); | |
return; | |
} |
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
name | offset | |
---|---|---|
Etc/GMT+12 | −12:00 | |
Pacific/Niue | −11:00 | |
Etc/GMT+11 | −11:00 | |
Pacific/Tahiti | −10:00 | |
Etc/GMT+10 | −10:00 | |
Pacific/Honolulu | −10:00 | |
Pacific/Marquesas | −09:30 | |
Etc/GMT+9 | −09:00 | |
America/Anchorage | −09:00 |