2026-05-31
2026-05-29
mac按下cmd+c时,松开c,不会触发keyup事件
MacOs sucks, Tim Apple is trolling and keyup events for alphanumeric and symbol keys will not fire whilst command is being pressed.
https://ethana.dev/blog/macoswhy/
2026-05-28
互联网上中文的文章质量真的还不如ai生成的
1. 等价类
依据需求将输⼊(特殊情况下会考虑输出)划分为若⼲个等价类,从等价类中选出⼀个测试⽤例,如果 这个测试⽤例测试通过,则认为所代表的等价类测试通过,这样就可以⽤较少的测试⽤例达到尽量多的功能覆盖,解决了不能穷举测试的问题。
https://cloud.tencent.com/developer/article/2465808
2026-05-27
谁有 AZERTY 键盘吗,借我摸摸
The QWERTY layout is, by far, the most widespread layout in use, and the only one that is not confined to a particular geographical area.[39] In some territories, keys like ↵ Enter and ⇪ Caps Lock are not translated to the language of the territory in question. In other varieties, such keys have been translated, like ↵ Intro and ⇪ Bloq Mayús, on Spanish computer keyboards, respectively, for the example above. On Macintosh computers, these keys are usually just represented by symbols without the word “Enter”, “Shift”, “Command”, “Option/Alt” or “Control”, with the exception of keyboards distributed in the US and East Asia.
https://en.wikipedia.org/wiki/Keyboard_layout#AZERTY
2026-05-25
自己懒得写figma插件看看视频顺带学习英语
2026-05-24
QuickJS is a small and embeddable Javascript engine. It supports the ES2023 specification including modules, asynchronous generators, proxies and BigInt.
Small and easily embeddable: just a few C files, no external dependency, 367 KiB of x86 code for a simple hello world program.
Fast interpreter with very low startup time: runs the 78000 tests of the ECMAScript Test Suite in about 2 minutes on a single core of a desktop PC. The complete life cycle of a runtime instance completes in less than 300 microseconds.
Almost complete ES2023 support including modules, asynchronous generators and full Annex B support (legacy web compatibility).
Passes nearly 100% of the ECMAScript Test Suite tests when selecting the ES2023 features (see test262.fyi).
Can compile Javascript sources to executables with no external dependency.
Garbage collection using reference counting (to reduce memory usage and have deterministic behavior) with cycle removal.
Command line interpreter with contextual colorization implemented in Javascript.
Small built-in standard library with C library wrappers.
2026-05-23
似乎在深圳路边捡到一只受伤的乌鸫,怎么救
乌鸫(英文名:Chinese Blackbird,学名:Turdus mandarinus),是雀形目鸫科鸫属的鸟类。俗名: 百舌、反舌、黑鸫、黑鸟、黑山雀、牛屎、八日雀、中国黑鸫、乌𪂹,大型黑色鸫类,分布于中国中东部及周边地区,为城市常见鸟类。其最显著特征为全身黑色,喙橙黄至鲜黄,雄鸟全身漆黑,雌鸟深褐。乌鸫鸣声清脆悦耳,变化多端,被誉为‘百舌’。
https://dongniao.net/nd/8758/%E4%B9%8C%E9%B8%AB/Chinese+Blackbird/Chinese+Blackbird
2026-05-22
1. 目标必须是具体的(Specific)
2. 目标必须是可以衡量的(Measurable)
3. 目标必须是可以达到的(Attainable)
4. 目标必须和其他目标具有相关性(Relevant)
5. 目标必须具有明确的截止期限(Time-based)
什么是smart原则,有什么好的例子? – 用时间酿酒的回答 – 知乎
https://www.zhihu.com/question/29546501/answer/464600168
2026-05-21
2026-05-19
太好哭,要娶潮汕女人做老婆,女性的妆真实
我是土生土长的汕头人,《给阿嬷的情书》是我的第三部电影了,还是在用素人做主角,还是在讲这个地方的故事,还是以至亲作为原型创作,但也有蛮多不同的变化,想给大家做一些分享。
从2017年拍第一部潮汕方言电影,到现在,快十年了。我们总算攒了三部片子,凑成了大家说的“潮汕家庭三部曲”。其实,一开始真没想着做什么三部曲,那时候拍《爸,我一定行的》,因为没有专业基础,只是抱着“试试看”的心态去拍。没想到,有观众喜欢,还有人等着看下一部,这才有了后面的事。
第二部是《带你去见我妈》,写的是妈妈。因为非专业出身,专业储备不够,怕搞砸,所以我一直坚持要我手写我心,优先选择亲身感受过的故事。真看真感受,大概不会搞太砸,这也一直是我选题材的原则。最亲的爸爸、妈妈都讲了,那第三部该拍谁?
https://movie.douban.com/review/17577409/
2026-05-17
2026-05-14
2026-05-13
js对象的key只能是字符串或者symbol无数字
In JavaScript, objects can be seen as a collection of properties. With the object literal syntax, a limited set of properties are initialized; then properties can be added and removed. Object properties are equivalent to key-value pairs. Property keys are either strings or symbols. When other types (such as numbers) are used to index objects, the values are implicitly converted to strings. Property values can be values of any type, including other objects, which enables building complex data structures.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Data_structures#properties
2026-05-10
网页上搞一个 manifest 文件,就能被安装了
A web application manifest, defined in the Web Application Manifest specification, is a JSON text file that provides information about a web application.
The most common use for a web application manifest is to provide information that the browser needs to install a progressive web app (PWA) on a device, such as the app’s name and icon.
A web application manifest contains a single JSON object where the top-level keys are called members.
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest
2026-05-09
Husky 工作原理及源码解析
这个哈士奇用起来似乎也不错,好用得像狗叫。
什么是Husky?
根据官方的介绍:Husky支持监听所有的git hooks,可以在这些hooks被触发的时候,执行一些操作。
https://juejin.cn/post/7119428188991651848
2026-05-06
currentColor 的用处
The currentColor keyword represents the value of an element’s color property. This lets you use the color value on properties that do not receive it by default.
If currentColor is used as the value of the color property, it instead takes its value from the inherited value of the color property.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value
2026-05-05
2026-05-04
2026-05-03
电脑手机汽车摩托车单车长时间不用都坏掉了
电脑一年不用会坏掉吗? – ideaee的回答 – 知乎
https://www.zhihu.com/question/387569724/answer/1166221077
2026-05-02
双相情感障碍是一种精神健康疾患,其特征是情绪从一个极端波动到另一个极端。
在躁狂发作期间,患者情绪极度亢奋,精力充沛(感觉非常快乐、兴奋、过度活跃)。可能会有欣快感、情绪突然变化或情绪反应过度(无法控制地大笑或感觉比平时更加烦躁、焦躁或不安)。
躁狂发作时,情绪和活动的变化伴有其他典型症状,其中可能包括:
自我价值感或自尊心高度膨胀;
说话速度快,并迅速从一个想法跳到另一个想法;
注意力难以集中,容易分心;
睡眠需求减少;
有鲁莽或冒险行为,例如过度消费、危险性行为、酗酒或伤害自己或他人;以及对不真实的事物抱有固定和错误的夸大或迫害性信念(例如,“我是一个很有名的人”、“我的邻居在监视我”)。
https://www.who.int/zh/news-room/fact-sheets/detail/bipolar-disorder
2026-05-01
一斤石斑鱼要 138 元吗,太贵了吧
【这可能是您吃过最多的石斑鱼,但您知道它是科学人为创造的吗】
https://www.bilibili.com/video/BV1aK411J7e8/?share_source=copy_web&vd_source=a6b620917b053db9586b3ee8d0f54ca6
