UnluckyNinja
banner
unlucky.ninja
UnluckyNinja
@unlucky.ninja
Made a small tool to explore how to stringify a date object date-format.unlucky.ninja
July 31, 2025 at 2:51 PM
TIL in HTML, child element of `<pre>` element will only apply its padding to the first line of its children. If there are linebreaks in its children, the other lines will just ignore the padding, causing a weird first-line padding.
July 23, 2025 at 12:44 PM
Spent hours trying to achieve refering to emit paramenter types inside a vue component from another component in an elegant way, only to find out that Typescript currently just doesn't support extracting arbitrary paramenters from intersection of functions / overloads.
June 30, 2025 at 5:17 PM
#typescript When I want to implements a plugin system by leveraging TypeScript's interface merging, I failed to find a way to properly refactor it. I guess in some situation you just can't have the best of both worlds.
May 21, 2025 at 5:24 AM
Just some random pcg stuff: delete longest edge of every triangle in a delaunay graph, then you will get an organic city road network.
January 5, 2025 at 8:45 AM
The clear button of the search bar in bluesky's app is so hard to be activated. I guess you have to exactly hit that "x" instead of the white circle to trigger it, not a good UX. 🤕
October 24, 2024 at 7:02 AM