上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 464 下一页
摘要: declare const tag: unique symbol; export type EmptyObject = { [tag]?: never }; // Record<PropertyKey, never> const acceptOnlyEmptyObject = (input: Emp 阅读全文
posted @ 2024-07-04 02:23 Zhentiw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: const acceptAnythingExceptNullOrUndefined = <T>(input: {}) => {}; acceptAnythingExceptNullOrUndefined('hello'); acceptAnythingExceptNullOrUndefined(42 阅读全文
posted @ 2024-07-04 02:14 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Any time when you have non-primitive type, it's going to be removed from memory anytime if it is no longer needed. class Test { constructor(name) { th 阅读全文
posted @ 2024-07-01 19:49 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Video: https://www.youtube.com/watch?v=PkFuytYVqI8&list=WL&index=67 body └─ article.feature ├─ section.article-hero │ ├─ h2 │ └─ img │ ├─ section.arti 阅读全文
posted @ 2024-07-01 19:10 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Video: https://www.youtube.com/watch?v=zqjKE_zcWzE&list=WL&index=68&t=14s code: https://github.com/Alliemack77/scroll-animations-with-css-only /* Cust 阅读全文
posted @ 2024-07-01 19:04 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Bash is built to handle multiple programs running in parallel. time cat Type time cat and then hit ctrl-c before one second, as close as possible with 阅读全文
posted @ 2024-06-26 17:54 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Subshell () You can wrap a cmd into () then it works a spreated command line. $ (if test -f cool.txt; then echo true; else echo false; fi); echo $? fa 阅读全文
posted @ 2024-06-26 17:38 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Exit code and Operators (&&, ||, 😉 When the previous command run successful, it returns 0, otherwise 1 $ date Wed Jun 26 12:17:17 EEST 2024 $ echo $? 阅读全文
posted @ 2024-06-26 17:31 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: button:focus-visible, input:focus-visible, a:focus-visible { border-color: #1e88e5; box-shadow: 0 0 3px 2px rgba(30, 135,229,0.5); } 阅读全文
posted @ 2024-06-24 18:23 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: .balanced-text h2 { color: yellow; text-wrap: balance; } .unbalanced-text h2 { color: rgb(252, 1, 218); } 阅读全文
posted @ 2024-06-24 18:21 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 464 下一页