What is Nostr?
js /
npub1rva…fmpy
2024-12-19 00:19:44
in reply to nevent1q…3jf0

js on Nostr: ` #!/bin/ksh #there is no free will #money isn't real function coin_flip { ...

`
#!/bin/ksh
#there is no free will
#money isn't real

function coin_flip {
flip=$((RANDOM%2))
}

function purchase {
print "$1" >> ~/inventory.txt
}

function visit_fleamarket {
cd /usr/local/share/prague
for i in $(cat old_stuff.txt); do
coin_flip
if (( flip == 1 )); then
purchase "$i"
fi
done
}

function buy_stuff {
visit_fleamarket
}

buy_stuff

return 0
`
Author Public Key
npub1rvahemjuvehe6gl742ux4anev7j0au5n4m66xfe08lx3yn22m7rq0xfmpy