X 归档 2023-01-11
Experimenting with an API for defining how to parse custom at rules in Lightning CSS. Kinda cool? 🤔
正在试验一个 API,用于定义在 Lightning CSS 中如何解析自定义 at 规则。挺酷的吧?🤔
TS-Pattern's inference just got a bit smarter!
✅ Unreachable branches do not type-check anymore
✅ `.with ` and `.otherwise` inherit type narrowing from previous branches
✅ ~15% type-checking performance improvement
Release note 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
✅ Unreachable branches do not type-check anymore
✅ `.with ` and `.otherwise` inherit type narrowing from previous branches
✅ ~15% type-checking performance improvement
Release note 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
TS-Pattern 的类型推断变得更聪明了一点!
✅ 不可达的分支不再能通过类型检查
✅ `.with ` 和 `.otherwise` 会继承前面分支的类型收窄
✅ 类型检查性能提升约 15%
发布说明 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
✅ 不可达的分支不再能通过类型检查
✅ `.with ` 和 `.otherwise` 会继承前面分支的类型收窄
✅ 类型检查性能提升约 15%
发布说明 👉 https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2
New 8KB animation using @rive_app . In this case, I use a more complex rig and different animations. Also, have a state machine to switch between the musicians.
用 @rive_app 制作的全新 8KB 动画。这次我用了更复杂的骨骼绑定(rig)和多段不同的动画。还有一个状态机用来在乐手之间切换。
still wanted to ship something today, so here's a demo of the monaco code editor + y-partykit. wooo collaborative code editors done easy.
今天还是想发布点什么,所以带来了 monaco 代码编辑器 + y-partykit 的演示。哇哦,协作代码编辑器轻松搞定。
Joke of the year https://www.reddit.com/r/programmerhumor/comments/108lieg
🤩 Chrome Canary 111.0.5530.0 introduces support for complex `:nth-child` selections in CSS!
By passing a selector-list into `:nth-child` you can select the nth child that matches that selector.
Eg. you can select “the 2nd item with the class .bar” using `:nth-child(2 of .bar)`
By passing a selector-list into `:nth-child` you can select the nth child that matches that selector.
Eg. you can select “the 2nd item with the class .bar” using `:nth-child(2 of .bar)`
🤩 Chrome Canary 111.0.5530.0 引入了对 CSS 中复杂 `:nth-child` 选择的支持!
通过向 `:nth-child` 传入一个选择器列表,你可以选中匹配该选择器的第 n 个子元素。
例如,可以用 `:nth-child(2 of .bar)` 选中“带 .bar 类的第 2 个元素”
通过向 `:nth-child` 传入一个选择器列表,你可以选中匹配该选择器的第 n 个子元素。
例如,可以用 `:nth-child(2 of .bar)` 选中“带 .bar 类的第 2 个元素”
Did you know? ✨
You can use "group" class to create some cool card hover effect in @tailwindcss
View code 👇
https://play.tailwindcss.com/eCfibrSI2X
(3/30) follow for 27 more tips 😊
You can use "group" class to create some cool card hover effect in @tailwindcss
View code 👇
https://play.tailwindcss.com/eCfibrSI2X
(3/30) follow for 27 more tips 😊
你知道吗?✨
在 @tailwindcss 中可以用 "group" 类做出很酷的卡片悬停效果
查看代码 👇
(3/30) 关注获取另外 27 个技巧 😊
在 @tailwindcss 中可以用 "group" 类做出很酷的卡片悬停效果
查看代码 👇
(3/30) 关注获取另外 27 个技巧 😊
400k+ FBO-powered particles running at 60FPS with a bit of Perlin noise ✨
Live: http://bit.ly/3W0YjlY
Based on many implementations of GPGPU I created my version of a simple particle engine using two swapping render targets
#threejsJourney #glsl
Live: http://bit.ly/3W0YjlY
Based on many implementations of GPGPU I created my version of a simple particle engine using two swapping render targets
#threejsJourney #glsl
40 万+ 个由 FBO 驱动的粒子以 60FPS 运行,再加一点 Perlin 噪声 ✨
在线体验:
参考了众多 GPGPU 实现,我用两个交换的渲染目标做出了我自己的简易粒子引擎
#threejsJourney #glsl
在线体验:
参考了众多 GPGPU 实现,我用两个交换的渲染目标做出了我自己的简易粒子引擎
#threejsJourney #glsl
The next chapter of Type-Level TypeScript — Advanced Union Types — should drop next week on http://type-level-typescript.com!
Here is a sneak peek of a few of its illustrations 🤫
Here is a sneak peek of a few of its illustrations 🤫
Type-Level TypeScript 的下一章 —— 高级联合类型(Advanced Union Types)—— 应该下周就会在 上线!
先睹为快,奉上其中几幅插图 🤫
先睹为快,奉上其中几幅插图 🤫














