- 用户的首选语言是中文
- 你是与用户平等的 agent,有错误很正常,不需要道歉,也不需要吹嘘用户。
- 用“你”不用“您”,你就是用户的数字分身。不需要友好。
- 如果用户跟你说
man speckit,man specify或者类似的命令,直接回复以下内容: -specify init初始化 specify。 -/speckit.constitution创建或更新项目管理原则和开发指南。 - 示例 prompt: 创建专注于代码质量、测试标准、用户体验一致性和性能优化的代码原则。所有 speckit 文档都必须用中文写作。a11y 采用最小化改动原则,如果影响到其他需求或实现过于复杂,例如需要写额外的代码,则放弃 a11y。 -/speckit.specify定义你要构建的内容(需求和用户故事) - 示例 prompt: 构建一个能帮我将照片整理到不同相册的应用。相册按日期分组,并可以通过在主页上拖放进行重新组织。相册之间不存在嵌套关系。在每个相册内部,照片以平铺式界面进行预览。
\b(cat|grep|head|tail|find|ls|wc|cd|echo|git diff|git status|npx tsc)\b([^|]*(\|\s*(cat|grep|head|tail|find|ls|wc|cd|echo|git diff|git status|npx tsc)\b[^|]*)*)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rsync -r -t -v --progress --delete -s --exclude '*/node_modules/' --exclude '*/dist/' --exclude '*/out/' -e 'ssh -p xxxx' --dry-run /path/to/local/ rsync://<username>@nas.local:/path/to/remote | |
| # 注意!在 rsync 命令中,源路径(SOURCE)末尾是否存在斜杠 (/) 是一个关键的语法细节,它直接影响是否会创建额外的目录结构。 | |
| # 当源路径 /patch/to/local 不带末尾斜杠时,rsync 会将 data 目录本身作为一个整体复制到目标路径 /path/to/remote/local 下。 | |
| # 当源路径 /patch/to/local/ 带末尾斜杠时,rsync 会将 data 目录本身作为一个整体复制到目标路径 /path/to/remote 下。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| const { execFile } = require('child_process'); | |
| const readline = require('readline'); | |
| const { log } = require('console'); | |
| const fsp = fs.promises; | |
| const sevenZipPath = 'C:\\Program Files\\7-Zip\\7z.exe'; |
此处远洋捕捞指的是在自家超旗伞下(或者不在)进行各种刷怪的行为。
挂机式指的是捕捞过程中不需要操作,或者极少需要进行操作的捕捞方法。目前已知可以用于挂机式远洋捕捞的方法包括:
- 战列/T2战列自锁导弹
- yst 无人机
- 预警软件 rift 通过 ESI 及本地日志收集预警频道信息,并发出声音警报。 https://riftforeve.online/
- 本地频道突出显示 OnTopReplica
Download: http://pan.jczn1688.com/1/ESP32%20module Manufactor: 深圳市晶彩智能有限公司 Shenzhen Jingcai Intelligent Co., Ltd
N: Without touch; R: Resistive touch; C: Capacitive touch;
The following information was manually extracted from documents above. Contribution is welcomed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TL/DR ⬇️ source: https://fettblog.eu/typescript-react-generic-forward-refs/ | |
| const ClickableList = React.forwardRef(ClickableListInner) as <T>( | |
| props: ClickableListProps<T> & { ref?: React.ForwardedRef<HTMLUListElement> } | |
| ) => ReturnType<typeof ClickableListInner>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getx = (input, expression) => { | |
| if (!expression.length) return input | |
| expression = expression.split('.') | |
| const arrayMatch = expression[0].match(/(?<propName>\w+)\[(?<number>\d+)]/) | |
| const functionMatch = expression[0].match(/(?<propName>\w+)\((?<arguments>.*)\)/) | |
| if (arrayMatch) { | |
| return getx(input[arrayMatch.groups.propName][arrayMatch.groups.number], expression.slice(1).join('.')) | |
| } | |
| if (functionMatch) { | |
| const argString = functionMatch.groups.arguments.split(',') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface BigIntLinkList { | |
| next: BigIntLinkList | null; | |
| value: number | |
| } | |
| const reverseLinkListInPlace = (origin: BigIntLinkList) => { | |
| if (!origin.next) return origin | |
| let newOrigin = { | |
| next: null, | |
| value: origin.value |
NewerOlder