det.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon Server des Unterhaltungsfernsehen Ehrenfeld zum dezentralen Diskurs.

Administered by:

Server stats:

2K
active users

#pyscript

1 post1 participant0 posts today

File formats as Emoji: 0xffae


by @beet_keeper

tldr: emoji.exponentialdecay.co.uk

File Formats As Emoji (0xFFAE or 0xffae) might be my most random file format hack yet. Indeed, it is a random page generator! But it generates random pages of file formats represented as Emoji.

The idea came in 2016 with radare releasing a new version that supported an emoji hexdump. I wondered whether I could do something fun combining file formats and the radare output to create a web-page.

Along came a spare moment one weekend, some pyscript, and bit of sqlite, et voilà. File Formats as Emoji (0xFFAE) was made a reality.

#0xffae#Code#Coding

I took part in #PyWeek 39 over the weekend and made a game in #PyScript. It's a single-tap rhythm game. Should work on any desktop browser and most new phones. It was a fun challenge to make a game where the realtime music sync is so important. You want to let people tap a little too late and still have the game allow it. You want it to be playable with Bluetooth headphones and keyboards that add a lot of latency.

Play at ambv.pyscriptapps.com/streamli

#genuary26 prompt: symmetry.
#genuary27 prompt: something interesting with no randomness or noise.

If there's gotta be no randomness, you need to introduce control. I made this cute discontinued device called the #Monome Arc work with #PyScript. This is usually driven by a UDP server, but turns out browsers can't use UDP, so I wrote a WebSocket bridge. Looks like it works 😎

ambv.pyscriptapps.com/genuary-

#genuary17 prompt: What if pi=4?
#genuary19 prompt: Op art.

I couldn't come up with anything impressive for just pi=4 so I combined it with op art, then it came to life, especially if you have a comparison right away. This is why the video contains the Python prompt on the top and you can see the drastic change when pi becomes 4 for a while.

Made with #PyScript:
ambv.pyscriptapps.com/genuary-

#genuary11 prompt: Impossible day.
#genuary12 prompt: Subdivision.

I combined the prompts since what I wanted to do for ages now is frequency-aware realtime audio visualization. This is the result. Makes most sense with the volume up.

As you can confirm in the source code, the lighting action is all driven by the music.

Made with #PyScript:
ambv.pyscriptapps.com/genuary-

#genuary8 prompt: Draw one million of something.
#genuary9 prompt: The textile design patterns of public transport seating.

Not much time so combined two prompts. Efficiency! In Poznań 🇵🇱 my most memorable bus and tram upholstery had weird bright shapes on deep green. I made 1 mil spheres, added a halftone filter to the rendering pipeline so it looks more like fabric. Et voila.

Made with #PyScript:
pyscript.com/@ambv/genuary-pro