开发
FIFO on Single Port SRAM
FIFO on Single Port SRAM
The obvious way to implement a FIFO using SRAM is by using a dual-port SRAM — one port for reading, one for writing. Dual-port SRAMs are expensive (in...
2025年12月1日
Self-signed X.509 certificate chains w/ ECC
Self-signed X.509 certificate chains w/ ECC
Recently I need to generate a few X.509 certificates for connection authentication in QUIC. A custom root trust anchors is used to sign certificates for...
2025年7月8日
pause() is not enough for scroll-driven animations
pause() is not enough for scroll-driven animations
When doing navigation in SPA, the scroll position would often experience a sudden change, either done intentionally to return to the top of the newly accessed...
2025年6月30日
Determining the "direction" of a vector shape
Determining the "direction" of a vector shape
Edited 06-29: updated how to compute the length of the direction vector. See the end of this post. Intuitively, the Chinese stroke “㇐”U+31D0 has a horizontal...
2025年6月28日
扔番茄
扔番茄
TUNA April fools 写了一段小脚本来扔番茄。使用 Tempermonkey 或者类似的脚本注入插件应该可以让任何页面都可以扔番茄。Alternatively, 直接在 Devtools 里面执...
2025年4月3日
使用 JSX 直接创建 DOM 元素
使用 JSX 直接创建 DOM 元素
JSX 语法实在是太香了。不过常见的方式要用上的话,必须得有一个 MVVM 框架,或者至少得有一个 VDOM 库(e.g. snabbdom)。如果不想用这些库的话,Vanilla JS 对...
2025年3月18日
Sth. about JieLabs
Sth. about JieLabs
最近和川川杰哥一起写了 JieLabs,在线进行数电实验。板子上的川川写的,我完全看不懂,后端和前端算法部分全靠杰哥,喵喵就写了几千行 CSS,基本没干活。虽然只...
2020年3月12日
喵++
喵++
躺在床上忽然想做个作品页。于是做了。CSS 真好玩。 https://meow.plus 没有 JS 和 SVG Clip,应该是确保了没有任何动画导致的 DOM repaint,所以在各种机子上都...
2019年5月22日
在线听鸽,或者离线听鸽
在线听鸽,或者离线听鸽
https://playlist.meow.plus/meow 是一个从 B 站上扒歌然后提供各种播放器功能的东西。 Motivation 因为 B 站没有 mylist 类似物,虽然很久之前有过,但是就和我...
2019年1月2日