Skip to content

Instantly share code, notes, and snippets.

View yogasw's full-sized avatar

Yoga Setiawan yogasw

View GitHub Profile
@yogasw
yogasw / ZigZagSequence.go
Created September 5, 2022 23:46
ZigZagSequence.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"sort"
"strconv"
"strings"
function doPost(e) {
// Daftar field yang ingin di-exclude (bisa ditaruh di atas sheet baris 1 kolom A misalnya "exclude: room_id, user id")
let excludes = [];
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
const data = JSON.parse(e.postData.contents);
const fields = data.fields;
const author = data.author || {};
const roomInfo = data.room_info || {};