Scott Williams 🐧 on Nostr: Want to print a random #unicode codepoint in a shell for some reason? #Python to the ...
Want to print a random #unicode codepoint in a shell for some reason? #Python to the rescue!
python -c 'import random; print(chr(random.choice(range(0,int(0x10FFFF + 1)))))'
Published at
2023-11-13 20:24:37Event JSON
{
"id": "d4df66a3ae51ccf45f4135ac6af470ac4514a9d15897ca35ec23d04c877b3f33",
"pubkey": "beee28c6450eb5d21bf94279d1f3f41e524c87abf86393835b45e6a1e98390e7",
"created_at": 1699907077,
"kind": 1,
"tags": [
[
"t",
"unicode"
],
[
"t",
"python"
],
[
"proxy",
"https://mastodon.online/users/vwbusguy/statuses/111405110224442508",
"activitypub"
]
],
"content": "Want to print a random #unicode codepoint in a shell for some reason? #Python to the rescue!\n\npython -c 'import random; print(chr(random.choice(range(0,int(0x10FFFF + 1)))))'",
"sig": "2b0a116eaea8f041d66fd7e20a129f1db877527919ca31c3cd220d6f3b61b814b1875b1d92c3693b0dba968c7f3e21560049c87607eb6187dbf6f97d26bef490"
}