Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Илья Pupko ILAsoft

🎯
Focusing
View GitHub Profile
@ILAsoft
ILAsoft / CalendarCleanup.gs
Created Apr 20, 2019
Iterates through all Google Calendar events for the main calendar and deletes them (moves to trash)
View CalendarCleanup.gs
function doGet() { /* Get your default calendar */
var cal = CalendarApp.getDefaultCalendar();
var yest = new Date().getTime() - 604800000; //milliseconds in a day -- go back one week
var start = new Date(0);
var end = new Date(yest);
/* Get all events from start date upto time */
var events = cal.getEvents(start, end);
View keybase.md

Keybase proof

I hereby claim:

  • I am ilasoft on github.
  • I am ilasoft (https://keybase.io/ilasoft) on keybase.
  • I have a public key ASAD-TXSQuVqGxbsgzWScSoBWbZsr0zMNbZdhyJgNlYw6wo

To claim this, I am signing this object:

You can’t perform that action at this time.