This file contains hidden or 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
| // One-way data sync from Peloton API to Coda in Google Apps Script | |
| // Author: Al Chen ([email protected]) | |
| // Last Updated: December 11th, 2021 | |
| // Notes: Assumes you are using the V8 runtime (https://developers.google.com/apps-script/guides/v8-runtime) | |
| // Coda's library for Google Apps Script: 15IQuWOk8MqT50FDWomh57UqWGH23gjsWVWYFms3ton6L-UHmefYHS9Vl | |
| // Writeup and copyable template here: https://coda.io/@atc/analyze-your-peloton-workout-stats-with-real-time-updates | |
| //////////////// Setup and global variables //////////////////////////////// | |
| CodaAPI.authenticate('YOUR_CODA_API_KEY') |
This file contains hidden or 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
| // Create a loading bar in your Google Sheet using Google Apps Script | |
| // Author: Al Chen ([email protected]) | |
| // Last Updated: April 13th, 2021 | |
| // Notes: Assumes you are using the V8 runtime (https://developers.google.com/apps-script/guides/v8-runtime) | |
| // Example Google Sheet: https://docs.google.com/spreadsheets/d/1ngvYKEMunqCVufR10rlK42iENAERp-uyiPN_aiq-MKo/edit?usp=sharing | |
| SOURCE_SHEET_ID = 'YOUR_GOOGLE_SHEETS_ID' | |
| SOURCE_WORKSHEET_NAME = 'YOUR_WORKSHEET_NAME' | |
| function loop() { |
This file contains hidden or 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
| function CountFormattedCells() { | |
| // Output the number of formatted cells somewhere in your spreadsheet | |
| var outputNumberOfFormattedCells = 'C52' | |
| // Cell that contains the color you want to count. Default is blank. | |
| var cellWithFormatToCount = '' | |
| var spreadsheet = SpreadsheetApp.getActive(); | |
| var currentRangeColors = spreadsheet.getActiveRange().getBackgrounds(); |
OlderNewer