Skip to content

Instantly share code, notes, and snippets.

View 9oelM's full-sized avatar
🎯
Focusing

Joel Mun 9oelM

🎯
Focusing
View GitHub Profile
@9oelM
9oelM / search-binaryedge.sh
Created December 5, 2021 18:12
search-binaryedge.sh
#!/bin/bash
PAGE_SIZE="1"
ONLY_IPS="1"
usage="
A part of
___ ___ ___
/\ \ /\ \ /\__\
/::\ \ \:\ \ /::| |
/:/\:\ \ \:\ \ /:|:| |
@9oelM
9oelM / verses.sh
Last active January 7, 2022 11:05
Get bible verses from bash shell
#!/bin/bash
set -e # exit on first error
TRANSLATION="kjv"
all_books="
'GEN' => 'Genesis',
'EXO' => 'Exodus',
'LEV' => 'Leviticus',
'NUM' => 'Numbers',
@9oelM
9oelM / test.js
Last active August 29, 2022 03:22
notion-client debugging
import { NotionGraph } from "@graphcentral/notion-graph-scraper";
(async () => {
const notionGraph = new NotionGraph({
maxDiscoverableNodes: 2000,
maxDiscoverableNodesInOtherSpaces: 2000,
maxConcurrentRequest: 100,
verbose: true,
});
const graph = await notionGraph.buildGraphFromRootNode(
@9oelM
9oelM / Why.go
Created January 14, 2023 08:51
WHY
package main
import (
"log"
"time"
)
type Big struct {
test string
test1 string

Starter

Starter is the simplest possible hook: it just accepts all transactions and logs that it is running.

to test:

  • in the develop pane, compile starter.c
  • in the deploy pane, deploy it to Alice account
  • set up payment transaction from Alice to Bob
  • run it and see in the debug stream 'Accept.c: Called.'