This file contains 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
0xfb27816c324bb208fe630f5272e95e2d7487e287 |
This file contains 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
CodaAPI.authenticate('abcd1234-efgh-5678-ijkl-1234mnop5678'); // Replace with your token. | |
SOURCE_TABLES = [ | |
{ | |
doc: 'TO UPDATE', | |
table: 'Source Table', | |
}, | |
// Add more as needed. | |
]; | |
TARGET_TABLE = { |
This file contains 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
// Setup and global variables | |
CodaAPI.authenticate('TO UPDATE'); | |
SOURCE_DOC_ID = 'TO UPDATE' | |
TARGET_DOC_ID = 'TO UPDATE' | |
TARGET_TABLE_SOURCE_ROW_COLUMN = 'Source Row URL'; | |
/////////////////////// Define tables to sync between source and target docs below ////////////////////////////////// | |
var TABLES = [ | |
This file contains 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
var sourceSpreadsheetID = "TO UPDATE"; | |
var sourceWorksheetName = "TO UPDATE"; | |
var targetSpreadsheetID = "TO UPDATE"; | |
var targetWorksheetName = "TO UPDATE"; | |
function importData() { | |
var thisSpreadsheet = SpreadsheetApp.openById(sourceSpreadsheetID); | |
var thisWorksheet = thisSpreadsheet.getSheetByName(sourceWorksheetName); | |
var thisData = thisWorksheet.getDataRange(); | |
//Uncomment line 11 below and comment out line 9 if you want to sync a named range. Replace "teamBugs" with your named range. |
This file contains 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 Coda to Google Sheets using Google Apps Script | |
// Author: Al Chen ([email protected]) | |
// Last Updated: July 16, 2020 | |
// 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 | |
//////////////// Setup and global variables //////////////////////////////// | |
CodaAPI.authenticate('YOUR_API_KEY') | |
SOURCE_DOC_ID = 'YOUR_SOURCE_DOC_ID' |
This file contains 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 Google Sheets to Coda using Google Apps Script | |
// Author: Al Chen ([email protected]) | |
// Last Updated: July 16, 2020 | |
// 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 | |
//////////////// Setup and global variables //////////////////////////////// | |
CodaAPI.authenticate('YOUR_API_KEY') |
This file contains 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
// Google Apps Script for one-way data sync from a table in a Google Doc to Coda table from multiple Google Docs in a Google Drive folder | |
// Author: Al Chen ([email protected]) | |
// Last Updated: August 6th, 2020 | |
// 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 | |
//////////////// Setup and global variables //////////////////////////////// | |
CodaAPI.authenticate('YOUR_API_KEY') |
This file contains 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
' VBA script to take a value in column A and fill it down until a new value shows up in a cell for Microsoft Excel | |
' Author: Al Chen ([email protected]) | |
' Last Updated: September 6th, 2020 | |
' Video tutorial: https://youtu.be/t-32QkyjKVE?t=1109 | |
Sub fillValuesDown() | |
Dim lastRow As Double | |
lastRow = ActiveSheet.Cells(Rows.Count, "B").End(xlUp).Row | |
Dim currentRange As Variant: Set currentRange = ActiveSheet.Range("A2:A" & lastRow) | |
ReDim newRange(1 To lastRow) |
This file contains 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
// Google Apps Script to take a value in column A and fill it down until a new value shows up in a cell for Google Sheets | |
// Author: Al Chen ([email protected]) | |
// Last Updated: September 6th, 2020 | |
// Video tutorial: https://youtu.be/t-32QkyjKVE?t=106 | |
function fillValuesDown() { | |
var spreadsheet = SpreadsheetApp.getActive() | |
var currentRange = spreadsheet.getRange("A2:A" + spreadsheet.getLastRow()) | |
var newRange = [] | |
var newFillValue |
This file contains 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 Python | |
# Author: Al Chen ([email protected]) | |
# Last Updated: January 21st, 2021 | |
# Writeup and copyable template here: https://coda.io/@atc/analyze-your-peloton-workout-stats-with-real-time-updates | |
################# Setup and global variables ########### | |
api_key = 'YOUR_CODA_API_KEY' | |
coda_doc_id = 'YOUR_CODA_DOC_ID' | |
peloton_username = 'YOUR_PELOTON_USERNAME' |
OlderNewer