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
function summarizeSheet() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
var sheetName = sheet.getName(); | |
var lastRow = sheet.getLastRow(); | |
var lastColumn = sheet.getLastColumn(); | |
var headers = sheet.getRange(1, 1, 1, lastColumn).getValues()[0]; | |
var allRowData = sheet.getRange(2, 1, lastRow - 1, lastColumn).getValues(); // Get all row data at once | |
for (var row = 0; row < allRowData.length; row++) { | |
var rowData = allRowData[row]; |
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
;(() => { | |
const input = document.createElement('input') | |
input.type = 'file' | |
input.addEventListener( | |
'change', | |
() => { | |
const [file] = input.files | |
const reader = new FileReader() | |
reader.readAsText(file) |
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
;(function openTransaction(databaseVersion) { | |
let request = indexedDB.open('main', databaseVersion) | |
request.onsuccess = async (event) => { | |
const db = event.target.result | |
const objectStoreNameList = [ | |
'commandList', | |
'commandHistoryEntryList', | |
'documentList', | |
'productList', |