Skip to content

Instantly share code, notes, and snippets.

@thantos
thantos / README.md
Last active April 21, 2023 19:29
Fantom Bundle v0

Within the xeto release, allows bunlding js scripts.

Prereq

  1. npm is installed
  2. esbuild is installed with npm npm -g install esbuild

From within the bin directory, run NODE_PATH=$(npm root --quiet -g) ./bin/bundle.js <pod>[::<type>[.<slot>]]

Type and main are optional, when or are left off the resulting bundle will require the Type and Slot to be provided, but the same bundle can access any type or slot in the pod.

@thantos
thantos / number-asl.json
Created September 10, 2022 18:43
Functionless (0.22.13): StepFunctions Number()
{
"StartAt": "Initialize Functionless Context",
"States": {
"Initialize Functionless Context": {
"Type": "Pass",
"Parameters": {
"fnl_context": {
"null": null
},
"event.$": "$$.Execution.Input"
@thantos
thantos / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console