Douasa (@double_asa) header
Douasa (@double_asa) profile picture

Pro at fixing PCs, plumbing, electrics & carpentry. Dabbles in UI design. Promoted to AI dev, aka the guy approving agents' requests while cooking QuotaView.

Joined December 2019
Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)Photo by Douasa (@double_asa)
Douasa retweeted
아니 회사에서 이거보고 개터졌네 ㄹㅇ
386
11,967
1,262
69,890
5,050,819
Douasa retweeted
#UX 用户临时拉宽或缩窄侧栏后,往往想把它拖回自己习惯的宽度。但每次松手的位置可能差几像素,想回到同一个宽度,就得重新对齐。 为了解决这个问题,作者让侧栏从用户的拖拽记录里学习。每个落点形成一条钟形曲线,相近的落点叠成更高的峰。每新增 5 条记录,旧样本的权重减半,所以新的使用习惯能逐渐取代旧习惯。示例代码还会把间隔不到 2 秒的两次调整视为一次,以最后的宽度为准。 最高峰附近的样本权重合计达到 2.5,才会形成吸附点,大约相当于三次近期且位置相近的调整。建立吸附点后,只要新的最高峰仍在它前后 10 像素以内,且达到权重门槛,就沿用原位置,避免吸附点随每次拖拽来回偏移。 拖进吸附范围时,侧栏边缘会贴住吸附点。想选附近的其他宽度,可以让鼠标停约 300 毫秒,解除吸附后再接着拖动,边缘会从当前位置继续移动。方向键也可以直接微调。作者把这套逻辑封装成了 react-resizable-panels v4 的 useSnapPoint,跨访问保留偏好需要自行保存 samples,下次通过 initial 传回。 原文:imharsh.in/snappy-resizable-…
Resizable panels that learn your preferred width and snap to it when you resize. - weighted for recency - snap unlocks for precise resizing
4
70
5,416
非常开心地分享我与 @MeshyAI 团队合作的最新技术成果,兼容 three.js 的实时光追引擎 ThreeRT! 基于 ThreeRT,哪怕是非常简单的 three.js 场景代码,都能获得稳定的高质量 3A 级光追效果,而不必了解全局光照、阴影贴图、反射探针等传统 three.js 光栅化调教底层细节。
What if three.js could render beyond the limits of the browser? Meet ThreeRT: a native JS runtime and hardware-accelerated real-time path tracer, bringing lifelike lighting to Three.js scenes on macOS, Windows, iOS, Android, and Steam Deck. Fully open source 🧵
46
57
15
689
49,335
Douasa retweeted
嘿,Jensen! 此片献予你! 我是一名来自中国的 AI 开发者,你一定会回来的对吧。对吧 @JensenHuang
🤖 Made with AI
637
1,145
380
7,654
2,814,914
I asked Fable 5.2 to animate the history of computer graphics. I can't wait to see what next year looks like.
102
176
27
3,213
638,576
Douasa retweeted
UI Card Design.....
2
9
304
8,536
9
18
1
513
19,568
The Official Melania Meme is live! You can buy $MELANIA now.   melaniameme.com/ FUAfBo2jgks6gB4Z4LfZkqSZgzNucisEHqnNebaRxM1P
27,203
15,996
10,748
90,214
37,765,970
🔥 Big news! ABEx is launching on @SuiNetwork testnet May 8th! 🚀 Join the public testing, share your valuable feedback & score special rewards! 🎁 Don't miss out! 🌟 #Sui #DeFi $SUI
129
80
3
93
2,049