Talk to myself.

Enable the dev tools in the Microsoft Teams desktop client

Enable Dev Mode 打开Microsoft Teams desktop的开发模式 微软官方文档DevTools for Microsoft Teams tabs Mac上 1 Click Teams tray icon 7 times. (快速左键点击7次 Teams app在Mac Dock上的图标) 2 在最上方的menu bar菜单栏里面,会多一项"Develo......

React 对比函数组件和类组件

React Differences between Functional Components and Class Components

Rendering JSX 首先,它们的明显区别在于语法。正如它们的名字一样,功能组件只是一个返回 JSX 的普通 JavaScript 函数。类组件是一个扩展了 React.Component 的 JavaScript 类,它有一个 render 方法。有点困惑?让我们来看一个简单的例子。 功能组件是一个返回 JSX 的函数。 12345import React from "react";......

AI相关软件大集合

上一篇列举了更多的AI相关的工具: 2023 most popular and useful AI tools Product Hunt - Artificial Intelligence AI软件列表 这一篇列举的主要是原本的软件又添加了AI功能: [x] Warp Git开源 The terminal for the 21st century。 Warp解决第一个痛点,......

ChatGPT Prompt Engineering 提示词使用技巧

Prompt大全

ChatGPT Prompt 课程 吴恩达课程-ChatGPT Prompt Engineering for Developers 课程链接:ChatGPT Prompt Engineering for Developers DeepLearningAI 的YouTUbe: https://www.youtube.com/@Deeplearningai/videos 吴恩达《Ch......

husky with sourcetree Cant find node in PATH, trying to find a node binary on your system

如果在 git GUI 软件, 例如sourcetree遇到 pre-commit / pre-push 报错找不到 yarn,可以参考这个 husky 的官方方案: https://github.com/typicode/husky/issues/390#issuecomment-1082345670 Solution Create ~/.huskyrc file in my home ......
git

程序猿的那些好用工具

awesome-tools

本文在awesome-tools基础上修改,添加自己使用的工具。有些是我也已经用的软件,有些是根据这篇文章才开始用的。 从 Blog 迁移到 GitHub 仓库维护,可以有历史记录。 翻墙 主 rixcloud,备阿里云香港和公司翻墙。 [ ] rixcloud 比较稳,特殊时期也能用,支持 surge 客户端,支持 netflix [ ] 软件方面,Mac 下用 Shadowsock......
MAC

hexo deploy error with wrong git user

Permission to yourGitUserName/yourGitUserName.github.io.git denied to xxx

error 1234567891011121314151617$ hexo d(node:52405) ExperimentalWarning: The fs.promises API is experimentalINFO [hexo-math] Using engine 'mathjax'INFO DPlayer.min.css is not found in this versio......

Redux Toolkit createSlice怎么实现多个slice构成redux state tree

Redux Toolkit - createSlice Redux Toolkit - createSlice 官方文档这里虽然介绍了createSlice的使用方法,但是比较简单,如果我有一个比较复杂,层级比较多的redux store,不同层级都用createSlice来实现要怎么做呢? 例如 state tree 的结构: 1234567891011const state = ......

你不知道的Redux

Redux Toolkit Redux Toolkit 可能是目前 Redux 的最佳实践 Redux toolkit 如何优雅的实现范式化 ...

React Folder Structure

Reference Links React Folder Structure in 5 Steps [2022] ...