Skip to content

Instantly share code, notes, and snippets.

View patrickxchong's full-sized avatar

Patrick Chong patrickxchong

View GitHub Profile
patrickxchong / asana-ical.js
Created February 5, 2022 11:52
Asana Tasks to ICal Feed
const axios = require("axios");
const ics = require('ics');
const fs = require('fs');
const asanaClient = axios.create({
baseURL: '',
headers: { "Authorization": "Bearer <Get personal ACCESS_TOKEN from Asana>" }
async function getMe() {
patrickxchong /
Last active August 7, 2021 09:36
Google Apps Script to send an article to Pocket once a day (useful for news websites that update daily) @patrickxchong
// 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;