Vlad :: gwer

@webholt
12 Followers
13 Following
31 Posts

JavaScript, Leathercrafting, Bonsai, ¯\_(ツ)_/¯

Starting a new life here after 16 years on Twitter.

GitHubhttps://github.com/gwer
It's time for potting.

RE: https://mastodon.social/@webholt/115781212731423490

OctoDeck is offline-ready now.

Open it once, and you can open it again even without an internet connection.

https://gwer.github.io/octodeck/

As usual, trying to make a good tool compatible with a popular tool leads to awkward situations.

How do you subscribe to the input `change` event in React? As a reminder, onChange subscribes to the `input` event.

Needed to listen separately to the input and change events on the inputs in Preact. Everything worked perfectly.

Imported useSyncExternalStore from preact/compat. Now onChange subscribes to the input event.

Yes, it's described in the documentation. But how weird it is...

Made a tiny presentation engine with Bun and Preact.

It's absolutely secure. Your slides are not stored anywhere. Not on servers, not in files.

If you find any bugs (and there are some), send a PR.

https://gwer.github.io/octodeck/

OctoDeck - Presentations in URLs

Create and share presentations instantly with magic links. No files, no servers, just pure URL magic with markdown support.

Decided to try designing shoe patterns using the British method instead of the Italian one.

Damn imperial measurements! I fucking hate inches!

The CSS Anchor Positioning Module is exactly what we've been needing.

How long do you think we'll have to wait until we can use it widely?

And it's worth keeping in mind that it's quite useless without the support of the anchor-scope property, which for some reason almost no one talks about.

Cursor 2.0 is absolutely amazing. It's the best way I've seen to get people to spend more tokens and pay more money.

When I was making my previous sneakers, I experimented with a soft heel counter and found it incredibly convenient for quickly putting them on and taking them off.

I thought I'd invented something brilliant, but then I discovered Gucci uses this same solution in their loafers.

I don't understand how people change jobs every year or two. The best "I told you so" situations often take three to five years from the moment they were said.