Skip to content

Instantly share code, notes, and snippets.

View lamkent00's full-sized avatar

Lam Kent lamkent00

View GitHub Profile
@lamkent00
lamkent00 / README.md
Created January 13, 2022 13:34 — forked from richardblondet/README.md
Create a simple API backend with Google App Script and a Spreadsheet

Google App Script CRUD

Inspired by this gist.

Getting Started

  1. Create a new App Script project.
  2. Paste the content of the file google-app-script-crud.gs in the default Code.gs file.
  3. Create a new Spreadsheet.
  4. Copy the Spreadsheet ID found in the URL into the variable SHEET_ID located in line 1 of your file.
@lamkent00
lamkent00 / delay.js
Created December 5, 2018 12:55 — forked from eteeselink/delay.js
ES7 async/await version of setTimeout
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
async function something() {
console.log("this might take some time....");
await delay(5000);
console.log("done!")
}
something();