\b(cat|grep|head|tail|find|ls|wc)\b([^|]*(\|\s*(cat|grep|head|tail|find|ls|wc)\b[^|]*)*)
^\Qgit diff \E[\w\/\.\-\s]+$
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 |
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
| import { first, last, uniqueId } from 'lodash'; | |
| import { useEffect, useState } from 'react'; | |
| import { useMixedState } from './hooks'; | |
| let startAt = 1000; | |
| const inUseList: { index: number; key: string; comment?: string }[] = []; | |
| export const setStartingZIndex = (index: number) => (startAt = index); | |
| /** | |
| * @author 447f.misaka@outlook.com |
NewerOlder