Skip to content

Instantly share code, notes, and snippets.

View stackdump's full-sized avatar

stackdump stackdump

View GitHub Profile
@stackdump
stackdump / gno-frame-guide.md
Created April 25, 2025 15:22
gno-frame sharing guidelines

📤 Best Practices for Building a Sharing Feature on Gno.land

  1. General Best Practices Trust and Transparency First Ensure users clearly understand what will be shared, where it will be stored, and how it can be accessed. Prefer linking to open content rather than hiding content behind server-side logic.

Link, Don’t Lock Use Gno's realm paths (e.g., /r/realm/) and content-addressed links (ipfs://, ipns://) when possible, to promote durable sharing over time.

Minimal, Human-Readable Metadata Add structured metadata to your realms or pages in simple ways — ideally using something like # Title, # Description, and an optional # Preview Image.

@stackdump
stackdump / game.ipynb
Created April 11, 2025 18:03
julia notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diagram(
Sequence(
Terminal('/?'),
Sequence(
Terminal('modelType='),
Terminal('petriNet')
),
Terminal('&'),
Sequence(
Terminal('version='),
@stackdump
stackdump / checksum_test.go
Created March 10, 2025 15:45
Use trailing digits as a checksum
package main
import (
"fmt"
)
func checksum3Digit(s string) int {
sum := 0
for _, c := range s {
sum += int(c) // Convert character to ASCII and sum it
@stackdump
stackdump / _vimrc_part
Created February 13, 2025 22:00
set syntax to go when opening a .gno file
augroup gno_syntax
autocmd!
autocmd BufRead,BufNewFile *.gno set filetype=go
augroup END
@stackdump
stackdump / knapsack_omition_count.ipynb
Last active January 9, 2025 17:34
compare knapsack value optimization first setting rates to ask questions, then changing initial states
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stackdump
stackdump / payment_ledger.md
Created January 9, 2025 15:36
Payment Ingestion

pflow

@stackdump
stackdump / knapsack2.ipynb
Created January 3, 2025 21:59
Analyzing Knapsack outcomes when suppressing 1 of the items
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stackdump
stackdump / knapsack.ipynb
Created January 3, 2025 21:57
A continuous version of knapsack problem using Petri-net derived ODEs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stackdump
stackdump / tic-tac-toe-expert-system.ipynb
Created December 31, 2024 13:44
use tic-tac-toe petri-net model to predict win probability
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.