Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Chong patrickxchong

View GitHub Profile
@patrickxchong
patrickxchong / asana-ical.js
Created Feb 5, 2022
Asana Tasks to ICal Feed
View asana-ical.js
const axios = require("axios");
const ics = require('ics');
const fs = require('fs');
const asanaClient = axios.create({
baseURL: 'https://app.asana.com/api/1.0/',
headers: { "Authorization": "Bearer <Get personal ACCESS_TOKEN from Asana>" }
});
async function getMe() {
@patrickxchong
patrickxchong / sendSkimmToPocket.gs
Last active Aug 7, 2021
Google Apps Script to send an article to Pocket once a day (useful for news websites that update daily) @patrickxchong
View sendSkimmToPocket.gs
// Additional configuration required. In the script editor, go to Edit -> Current Project Triggers and set the following settings:
// Time Driven, Day Timer, 7-8am (or any other time of your preference)
function sendSkimmtoPocket() {
var today = new Date();
var date = Utilities.formatDate(today, "EST", "YYYY-MM-dd");
// Mail contents
var mailtitle = "Pocket "+ date;