Timeline
2023年06月

06-30

  1. radash (opens in a new tab): js 函数库,类似 lodash。GitHub starslast commitnpm downloads
  2. 发送给 gpt 的内容的构成就是 1. 系统预设 2. 历史记录 3. 最后一条是用户新提的问题
    Preview
  3. rodamap (opens in a new tab): 这个网站不错,会展示一门语言,需要的掌握的能力。点击每一个,里面还引用了相关的资源

06-29

  1. 刚知道 chatgpt 官方也有个 playground: https://platform.openai.com/playground/ (opens in a new tab)

06-27

  1. 十三年后,我终于知道,DOTA 是什么 (opens in a new tab): 大一接触的 Dota,如今也十年了。

  2. node 18 版本安装pinyin模块会报错

  3. pnpm也支持Overrides: 用来指定 sub-module 的依赖,类似 yarn 的 resolutions

{
  "pnpm": {
    "overrides": {
      "foo": "^1.0.0"
    }
  }
}

06-22

  1. 自驾日照 3 日游,往返 1400km。

06-21

  1. 芯片里面的 100 亿晶体管!到底是什么? (opens in a new tab)

06-20

  1. 开发油猴子脚本: 清洗 url (opens in a new tab): GitHub starslast commit

06-19

  1. 统计代码量:cloc ./ --exclude-dir=node_modules

06-15

  1. 输入法和 JS Enter 回车提交冲突 (opens in a new tab): 原来中文输入法的 enter,不仅可以用 compositionstart 事件可以解决,还有多种方法。

06-13

  1. RxDB (opens in a new tab): 可切换存储引擎的数据库,提升代码重用性。GitHub starslast commitnpm downloads
  2. 产品沉思录 | Product Thinking (opens in a new tab)

06-12

  1. https://file-examples.com/ (opens in a new tab): 可以下载音、视频、图片、文档等 demo 文件。
  2. 68 个不请自来的建议 (opens in a new tab)

06-10

  1. 自驾牵牛岗。

06-08

  1. 给 mermaid 提交 mr: Update docs: Added Nextra to Blogs category on integrations page #4463 (opens in a new tab)
  2. 给 Flowise 提交 mr: Add basePath configuration option to support OpenAI mirror #264 (opens in a new tab)
  3. React 踩坑总结:
    • ref.current 需要在使用的 useEffect 添加依赖项,不然 current 更新的时候,会导致索引错误的 ref
    • useEffect 需要在返回值函数中,及时清理第三方事件监听。不然引用的一直是之前更新函数的数据
    • eslint 还是非常有必要的,有时候感觉有了 ts,没有配置 eslint 导致依赖没有配置正确
    • 复杂的状态更新,还是得考虑用 mobx 这种了,心智成本会低很多。 不用考虑依赖问题

06-07

  1. mermaid (opens in a new tab): 第一次接触 mermaid。
  2. 给 formily 提交的mr (opens in a new tab)成功合并。

06-02

  1. 推荐: 左耳朵耗子的话 (opens in a new tab):

06-01

  1. ChatGPT 使用教程 (opens in a new tab)

  2. 踩了一个 chatGPT 的大坑,让他帮我写的 react-dnd 的逻辑中。 没有给 useDrop 添加到依赖中。然后导致更新的数据不匹配,老报错。

    Preview
  3. 才知道 6666 端口号,被 chrome 屏蔽了。 我说呢,随手试了一个端口,发现访问不了。

Preview