Skip to content

Instantly share code, notes, and snippets.

View moul's full-sized avatar
🌸
societal evolution engineer

Manfred Touron moul

🌸
societal evolution engineer
View GitHub Profile
@moul
moul / std.go
Last active November 7, 2024 17:25
std.gno
// just reorganizing the current `std` into "categories", not yet improving the API.
// chain
type AddressList []Address
func NewAddressList() *AddressList
type AddressSet interface{ ... }
type RawAddress [RawAddressSize]byte
const RawAddressSize = 20
func GetChainID() string
func GetHeight() int64
French (Phonétique) English (Phonetics) Serbian (Фонетика) German (Phonetik) Portuguese (Fonética) Hindi (ध्वन्यात्मक) Korean (발음) Spanish (Fonética) Lebanese Arabic (Phonetics) Romanian (Fonetică) Turkish (Fonetik) Greek (Φωνητικά)
Bonjour (matin) (bɔ̃ʒuʁ) Good morning (ɡʊd ˈmɔːrnɪŋ) Dobro jutro (dobro jutro) Guten Morgen (guten morgen) Bom dia (bom dia) सुप्रभात (suprabhaat) 좋은 아침입니다 (joeun achimimnida) Buenos días (bwenos días) صباح الخير (ṣabāḥ al-khair) Bună dimineața (bună dimineața) Günaydın (günaıdın) Καλημέρα (Kaliméra)
████ ██████████ ████████ ████████
░░███ ░███░░░░███ ███░░░░███ ███░░░░███
░███ ░░░ ███ ░███ ░███ ░███ ░███
░███ ███ ░░████████ ░░█████████
░███ ███ ███░░░░███ ░░░░░░░███
░███ ███ ░███ ░███ ███ ░███
> gno test .
panic("should not happen")
@moul
moul / 1.c
Last active October 20, 2023 16:18
txtar linguist mode comparison
# test for add package
## start a new node
gnoland start
# add registry
gnokey maketx addpkg -pkgdir $WORK/registry -pkgpath gno.land/r/registry -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
# we call Transfer with foo20, before it's registered
gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
@moul
moul / script.go
Last active January 23, 2024 13:23
gnokey maketx run
package main
import (
"std"
"gno.land/p/demo/bf"
"gno.land/p/demo/ufmt"
"gno.land/r/demo/tests"
"gno.land/r/demo/users"
)
// https://twitter.com/jaekwon/status/1713308824269144423
type Auth interface {
Owner() std.Address
Kind() string
Verify() bool
}
type origAuth struct{ addr std.Address }
@moul
moul / profiles.js
Last active September 9, 2023 17:24
Life in Weeks - Dev
processProfiles({
"Einstein": {
"birthDate": "1879-03-14",
"title": "Einstein’s Life in Weeks",
"yearsToShow": "76",
"eventsData": {
"events": [
{ "begin": "1895-10-03", "end": "1900-07-28", "description": "Studied at Zurich Polytechnic", "color": "#DEB887" },
{ "begin": "1902-06-01", "end": "1909-01-15", "description": "Worked at Swiss Patent Office in Bern", "color": "#8B4513" },
{ "begin": "1902-10-16", "end": "1909-07-15", "description": "Employed at Swiss Patent Office", "color": "#8B4513" },
@moul
moul / 100runs.svg
Last active July 4, 2023 10:42
perf gno cli
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.