Skip to content

Instantly share code, notes, and snippets.

@richardblondet
richardblondet / README.md
Last active July 5, 2024 11:50
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.
// https://yoursunny.com/t/2018/PacketDump/
#include <cassert>
#include <ESP8266WiFi.h>
#include <lwip/netif.h>
// #include <user_interface.h>
#include "PacketParser.hpp"
const char* WIFI_SSID = "my-ssid";
const char* WIFI_PASS = "my-pass";
@sixman9
sixman9 / groovyMap2List.txt
Created July 25, 2012 10:54
Turn/convert a map into a list in Groovy
def m = [a:b, c:d]
def l = []
m.each() { k, v -> l << k }
Alternatively:
def m = new TreeMap([a:b, c:d])
then use m.keySet().each() ...
@tugberkugurlu
tugberkugurlu / DbGeographyTryOut.cs
Created June 4, 2012 19:51
System.Data.Spatial.DbGeography sample (Latitude and Longitude).
class Program {
public class Db {
public static Dictionary<string, DbGeography> Locations = new Dictionary<string, DbGeography>() {
//instert the place locations here...
};
}