Skip to content

Instantly share code, notes, and snippets.

View locatejp's full-sized avatar

Autom8Me locatejp

View GitHub Profile
@locatejp
locatejp / 0_reuse_code.js
Created January 24, 2014 18:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@locatejp
locatejp / Select All Calendars
Created January 24, 2014 16:42
Selects all Google Calendars
function selectAll() {
var cals = CalendarApp.getAllCalendars(); //Get all of the calendars
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.toast("This process takes about 2 minutes. Another notification will indicate when complete", "Process Started!", 20);
for ( var i = 0; i <= cals.length-1; i++ ) { //Create a loop and select each one individually
var tempName = cals[i];
if (tempName != "Tasks" && tempName != "Choose From Dropdown" ) // FILTER UNNEEDED CALENDARS
{
tempName.setSelected(true);
}