TONG-H
Timeline
202501 & before

2023/7/19 CSS filter can form stacking context input‘s’ property hidden does not work in Safari 2024/11/15 Vertical or horizontal lines with gradient strokes in SVG won’t display. Keyword objectBoundingBox should not be used when the geometry of the applicable element has no width or no height, such as the case of a horizontal or vertical line, even when the line has actual thickness when vie...

34852025-01-112025-03-23
janpan words

名前 vs 名字名字 pecifically refer to a person’s family name or surname 人 vs 人間人間 is used when discussing the human race, human nature, or humans as a collective.あの人は医者です人間は感情を持っている動物です 表情 vs 顔色表情 focuses on expression (emotional display).顔色 focuses on color/complexion (physical appearance)(类似脸色、面色). 今まで vs これまでこれまで refer to a particular point in time or a certain period up to the present, slightly ...

1962024-11-172025-02-23
japanese

quick-reviewnasty words ない形」=>なければなりません polite form, abbr 「ない形」なければ, something is necessary or required. “must,” “have to,” or “should” なくてもいいです 分, かきくけこ [わ]かります [わ]ける [ぶん]類 入, らりるれろ [はい]ります, intransitive, to enter [い]れます, transitive, to make sth enter [にゅう]学 見 [み]ます, to see, or to try(writting in みる) [み]られる, able to see via some actions [み]えます, intransitive, to be visible, to be displ...

397.1k2023-11-172025-06-11
three.js

PBRanti-aliasing 反锯齿multi-sample anti-aliasing 多重采样, this is a build-in WebGL method, depending on GPU render1234const renderer = new WebGLRenderer({ antialias: true, // turn on anti-aliasing, to blur the edges of square pixels. }); renderer.physicallyCorrectLights = true; // camera two types of camera perspective projection 透视投影, the area in between the Near Clipping Plane and...

35542023-09-082025-02-16
i18n-plan 前端多语言方案

想要给大家介绍一个 i18n 插件,写这个插件的起源也是因为项目中对 i18n 的需求,这个插件覆盖了我们项目中遇到的大部分 i18n 需求,说不定也能覆盖你的,try 一 try 不后悔 集成 ChatGPT 和 YouDao,自动翻译功能开箱即用 如果对你有用,可以给个 star 吗 i18n-plan i18n-plan中文/English i18n-plan 是一个简单的 i18n Javascript 插件,支持基于 Node.js 和浏览器的 App,并且应该适用于所有 Javascript 框架。 i18n-plan 能做什么 生成和更新本地语言资源,只需执行一个命令即可 提供导出和导入功能以便高效地管理本地语言资源。可以将本地语言资源导出为 .xls 文件,也可以通过导入 .xls 文件对本地语言资源进行更新。此功能可以让团队协作管理本地语言资源 目前已...

92.3k2023-06-062025-02-16
mac_shortcuts

shortcuts des control-space switch between input source Cmd-space Search Control-Command-Q lock screen Shift-Command-5 screen shot command-tab, press option after chosen Switch between the minimized windows move Dock from one srceen to another Move cursor to the bottom of the screen and keep it for about 3 seconds Drag or Command-click edit the icons on Dock Press Space Widen t...

12592023-05-112025-07-06
(译)使用 GPT 基于个人文档建立聊天机器人的逐步教程

原文地址:A step-by-step guide to building a chatbot based on your own documents with GPT 原文作者:Guodong (Troy) Zhao 译文出自:掘金翻译计划 本文永久链接:https://github.com/itcodes/gold-miner/blob/master/article/2023/A-step-by-step-guide-to-building-a-chatbot-based-on-your-own-documents-with-GPT.md 译者:tong-h 校对者: 与 ChatGPT 聊天是有趣且丰富的,过去一段时间我一直在与它闲聊并探索新的想法。但这些都是比较随机的用例,新奇感很快就减弱,尤其是当你意识到它可以产生幻觉的时候。 我们如何以更高效的方式使用它?随着 Ope...

72.2k2023-03-272025-02-16
(译) 全面刨析 CSS-in-JS

原文地址:A Thorough Analysis of CSS-in-JS 原文作者:Andrei Pfeiffer 译文出自:掘金翻译计划 本文永久链接:https://github.com/xitu/gold-miner/blob/master/article/2022/a-thorough-analysis-of-css-in-js.md 译者:tong-h 校对者: 全面刨析 CSS-in-JS比选择一个 JavaScript 框架更有挑战的是什么呢?你猜对了:选择一个 CSS-in-JS 方案。为什么?因为现在已经有 50 个以上的库,而且每个库都有独一无二的特色。 我们测试了 10 个不同的库(排列没有特定的顺序):Styled JSX,styled-components,Emotion,Treat,TypeStyle,Fela,Stitches,JSS,Goober...

174.8k2022-11-272025-02-16
Service Worker 缓存静态资源

最近有用到 Service Worker 和 CacheStorage 做离线缓存, 一方面是因为项目资源包着实大, 另一方面也是因为之前没有用缓存, 这也是需要的优化。相比起 Http 缓存或者 manifest 文件管理缓存(如果还有其他缓存方法, 欢迎提出来讨论!), Service Worker 完全由前端维护, 让前端对资源拥有了更大的控制权, 能自由的对资源进行增删改, 另一方面也是因为自己没用过。也碰到了一些问题, 查阅了一些资料, 希望对你有帮助。 Service Worker附上 MDN 文档 ,还有一个 Demo 除了 MDN, Google 的文档也是很有帮助的 Service Worker 的特点 是一个浏览器与网络之间的拦截器, 通过 Service Worker 你可以拦截任何网络请求 必须在 Https 下运行, 但 localhost 作为开发...

71.7k2022-07-092025-02-16
(译)使用 Stream 构建高性能的 Node.js 应用

原文地址:Use Streams to Build High-Performing Node.js Applications 原文作者:Deepal Jayasekara 译文出自:掘金翻译计划 本文永久链接:https://github.com/xitu/gold-miner/blob/master/article/2022/use-streams-to-build-high-performing-nodejs-applications.md 译者:tong-h 校对者:CarlosChen zaviertang 使用 Stream 构建高性能的 Node.js 应用当你在键盘上输入字符,从磁盘读取文件或在网上下载文件时,一股信息流(bits)在流经不同的设备和应用。 如果你学会处理这些字节流,你将能构建高性能且有价值的应用。例如,试想一下当你在 YouTube 观看视频时,你...

123.1k2022-03-252025-02-16