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
#Display Google Sheets data on a website using Google Apps Script and JQuery DataTables |
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
Creating Multi-Level Cascading Dropdowns in Google Apps Script Web Apps |
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
How to Create HTML Data Entry Forms in Google Sheets |
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 extractFirstRowCsvWithFilename() { | |
const folder = DriveApp.getFolderById("1MBaI_rGJ6t_loANMAvGpDbr2MeHZwxnn"); | |
const files = folder.getFilesByType(MimeType.CSV); | |
let combinedData = []; | |
while (files.hasNext()) { | |
let file = files.next(); | |
let filename = file.getName(); | |
let csvData = Utilities.parseCsv(file.getBlob().getDataAsString()); |
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 combineCSVWithoutRepeatedHeaders() { | |
const folder = DriveApp.getFolderById("1MBaI_rGJ6t_loANMAvGpDbr2MeHZwxnn"); | |
const files = folder.getFilesByType(MimeType.CSV); | |
let combinedData = []; | |
let firstFile = true; | |
while (files.hasNext()) { | |
let file = files.next(); | |
let csvData = Utilities.parseCsv(file.getBlob().getDataAsString()); |
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 combineCsv() { | |
const folder = DriveApp.getFolderById("1MBaI_rGJ6t_loANMAvGpDbr2MeHZwxnn"); | |
const files = folder.getFilesByType(MimeType.CSV); | |
let combinedData = []; | |
while(files.hasNext()){ | |
let file = files.next(); | |
let csvData = Utilities.parseCsv(file.getBlob().getDataAsString()); | |
combinedData = combinedData.concat(csvData); | |
} |
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 combineCsv() { | |
const folder = DriveApp.getFolderById("1mSJUg80NRhtorSBBOsJylbDYTDDmpHWY"); | |
const files = folder.getFilesByType(MimeType.CSV); | |
//Use the files variable | |
} |
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
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |
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
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> | |
<style> | |
//Your CSS goes here | |
</style> |
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 CALCULATE_DRIVING_DISTANCE(origin, destination) { | |
var directions = Maps.newDirectionFinder() | |
.setOrigin(origin) | |
.setDestination(destination) | |
.setMode(Maps.DirectionFinder.Mode.DRIVING) | |
.getDirections(); | |
var distance = directions.routes[0].legs[0].distance.value; | |
distance /= 1000; // Convert meters to kilometers |
NewerOlder