Compare commits

...

193 Commits

Author SHA1 Message Date
61046b519b released v1.46.0 2025-02-13 16:12:20 +08:00
8af3950731 doc: update README.md. 2025-02-13 08:10:35 +00:00
3f329c15ec doc: update CONTRIBUTING.md. 2025-02-13 08:10:35 +00:00
485d80489b doc: Update README.md 2025-02-13 16:09:38 +08:00
0eb3ac6165 doc: Update README.md 2025-02-12 11:08:53 +08:00
869f3de520 doc: Update README.md 2025-01-28 00:40:58 +08:00
da9780f4a7 doc: update docs/yazi.md 2025-01-24 21:48:08 +08:00
8807e483fc doc: update README.md. 2025-01-24 13:07:10 +00:00
d5d79d72c6 doc: update CONTRIBUTING.md. 2025-01-24 13:07:09 +00:00
db215dcb2d feat: add docs/yazi.md (#919)
* add yazi

* update yazi.md

* update yazi.md
2025-01-24 21:05:49 +08:00
7f4fd32453 doc: update README.md. 2025-01-23 04:27:27 +00:00
81d60eacaf doc: update CONTRIBUTING.md. 2025-01-23 04:27:27 +00:00
453a8b9a05 doc: Update README.md #102 2025-01-23 12:26:28 +08:00
b00b74f695 doc: Update README.md 2025-01-12 16:57:52 +08:00
21b8c17818 doc: update README.md. 2025-01-10 06:54:16 +00:00
a54ceebf02 doc: update CONTRIBUTING.md. 2025-01-10 06:54:15 +00:00
2771b42a96 doc: Update emoji.md (#915)
now!
2025-01-10 14:53:16 +08:00
579d1de673 doc: Update README.md 2025-01-06 23:11:20 +08:00
daaa4c5f09 doc: Update README.md 2025-01-05 22:55:21 +08:00
b414893b15 doc: update README.md. 2025-01-04 07:20:54 +00:00
072ddcca73 doc: update CONTRIBUTING.md. 2025-01-04 07:20:53 +00:00
5e773f0696 doc: update README.md 2025-01-04 15:19:42 +08:00
3bcb61d409 doc: update java.md (#914)
* method intern can get a ref of the same string in the string pool

* doc: update java.md
2025-01-02 11:11:06 +08:00
ad9aaf759e doc: update README.md. 2025-01-01 13:36:17 +00:00
211809a177 doc: update CONTRIBUTING.md. 2025-01-01 13:36:16 +00:00
e7b8958368 doc: update c.md document (#913) 2025-01-01 21:33:24 +08:00
d7df8bc6fe doc: update c.md document (#913)
* modify c tutor

* Modify c.md
2025-01-01 17:30:51 +08:00
ba05c9d952 doc: update README.md. 2025-01-01 03:09:05 +00:00
d02dc80480 doc: update CONTRIBUTING.md. 2025-01-01 03:09:04 +00:00
eb1157523d doc: Update README.md 2025-01-01 11:08:05 +08:00
6c8217202a doc: update c.md (#911) 2024-12-30 03:01:44 +08:00
b3893d8478 doc: update README.md. 2024-12-28 02:06:34 +00:00
006c4bf587 doc: update CONTRIBUTING.md. 2024-12-28 02:06:33 +00:00
0c7e4081a5 doc: Update README.md #102 2024-12-28 10:05:33 +08:00
cfac374221 doc: update docs/ports.md #854 (#910) 2024-12-24 20:43:20 +08:00
579d25d3a1 feat: add docs/ports.md #854 (#910) 2024-12-24 20:24:16 +08:00
2cbafe0ef5 doc: update README.md. 2024-12-23 14:10:58 +00:00
a9e3fb135e doc: update CONTRIBUTING.md. 2024-12-23 14:10:57 +00:00
44e775a1ee doc: update docs/java.md (#909) 2024-12-23 22:09:55 +08:00
933b1957e4 doc: Update README.md #102 2024-12-20 22:12:44 +08:00
20ecc2eef2 doc: Update README.md #102 2024-12-20 20:09:18 +08:00
4750e61a30 doc: update README.md. 2024-12-18 01:28:23 +00:00
91b022bf4d doc: update CONTRIBUTING.md. 2024-12-18 01:28:22 +00:00
ad3c46c009 doc: Update linux-command.md (#907)
feat: 新增rsync技巧
2024-12-18 09:27:02 +08:00
4917ecf3a7 doc: update README.md. 2024-12-11 13:51:37 +00:00
cf997d6ac0 doc: update CONTRIBUTING.md. 2024-12-11 13:51:36 +00:00
435cfdf739 doc: Update README.md #102 2024-12-11 21:50:31 +08:00
4412bf6a01 doc: Update README.md #102 2024-11-24 20:49:35 +08:00
da39a1ad3d doc: update README.md. 2024-11-18 07:00:28 +00:00
02bb059452 doc: update CONTRIBUTING.md. 2024-11-18 07:00:27 +00:00
5b28ed2caf doc: Update README.md #102 2024-11-18 14:59:29 +08:00
7eb30c080a doc: update README.md. 2024-11-12 15:43:43 +00:00
3c6c459b17 doc: update CONTRIBUTING.md. 2024-11-12 15:43:41 +00:00
5cb04086b1 doc: Modify Swift && SwiftUI (#852) 2024-11-12 23:41:59 +08:00
27c3a9578f doc: update README.md. 2024-11-11 11:23:25 +00:00
d7b1d03761 doc: update CONTRIBUTING.md. 2024-11-11 11:23:24 +00:00
f03cc68c0d doc: update docs/swift.md (#850) 2024-11-11 19:22:25 +08:00
3a41d66cef doc: update README.md. 2024-11-09 14:04:50 +00:00
0f52c6fdfe doc: update CONTRIBUTING.md. 2024-11-09 14:04:49 +00:00
c63d27edcf doc: update docs/css.md (#849)
* 删除一个错误字符

* Update css.md
2024-11-09 22:03:51 +08:00
6b9ef0aa43 doc: update README.md. 2024-11-06 12:12:20 +00:00
7c220e3efc doc: update CONTRIBUTING.md. 2024-11-06 12:12:19 +00:00
a73f837fc1 doc: update react.md 2024-11-06 20:10:53 +08:00
4ccef1281f doc: update README.md. 2024-11-06 01:38:27 +00:00
f0cfadf240 doc: update CONTRIBUTING.md. 2024-11-06 01:38:26 +00:00
67c9cc4d8e doc: update docs/react.md 2024-11-06 09:31:59 +08:00
a92759f0ed doc: update docs/sqlite.md (#848) 2024-11-06 08:22:52 +08:00
e9a61371f0 doc: update README.md. 2024-11-05 23:18:03 +00:00
881dfa5df3 doc: update CONTRIBUTING.md. 2024-11-05 23:18:02 +00:00
bbd2fa2ebf feat: add sqlite reference (#848) 2024-11-06 07:17:03 +08:00
af5e05b7d8 doc: update README.md. 2024-11-01 04:15:06 +00:00
3986b1ca29 doc: update CONTRIBUTING.md. 2024-11-01 04:15:03 +00:00
416e1ff9fd doc: Update README.md (#847) #102
域名更换: ref.server.wiki 更换为 ref.docflow.cn
2024-11-01 12:13:49 +08:00
1f0fc6c925 doc: Update README.md 2024-10-30 06:49:52 +08:00
ad2fd7b642 feat: add docs/canvas.md 2024-10-30 06:44:18 +08:00
345e968c4c doc: add docs/github-cli.md 2024-10-30 06:30:34 +08:00
72b973a923 doc: update docs/github-copilot.md 2024-10-30 06:00:08 +08:00
8ae69f2386 doc: update docs/github-copilot.md 2024-10-30 05:41:14 +08:00
29bb4e487c doc: update docs/chatgpt.md 2024-10-30 05:18:31 +08:00
3519f863f4 website: update powershell logo. #845 2024-10-30 05:18:31 +08:00
df32d5a429 doc: update README.md. 2024-10-29 13:29:12 +00:00
e3e0896834 doc: update CONTRIBUTING.md. 2024-10-29 13:29:11 +00:00
71c4aea9ca doc: update docs/powershell.md #845 2024-10-29 21:27:34 +08:00
3662bb703c doc: update docs/powershell.md #845 2024-10-29 20:09:26 +08:00
2c6244b6f8 feat:add powershell reference (#845) 2024-10-29 20:01:50 +08:00
292551a8f2 doc: update docs/cpp.md 2024-10-28 19:21:17 +08:00
af2f380a18 doc: update README.md. 2024-10-28 11:15:04 +00:00
9411c434a8 doc: update CONTRIBUTING.md. 2024-10-28 11:15:03 +00:00
02f1d13471 doc: Update README.md #102 2024-10-28 19:13:43 +08:00
37f8c7d69e doc: update README.md. 2024-10-18 05:45:35 +00:00
aa52a25839 doc: update CONTRIBUTING.md. 2024-10-18 05:45:34 +00:00
d41aaa9569 fix: typo in postgres (#842) 2024-10-18 13:44:37 +08:00
32cd8e4d5d doc: update README.md. 2024-10-16 09:11:47 +00:00
cf9c76d5c7 doc: update CONTRIBUTING.md. 2024-10-16 09:11:46 +00:00
15323378b5 doc: update docs/springboot.md (#841)
* Update docker.md

统一端口号

* Update springboot.md

MySQL 5.0 和 8.0 的数据库驱动类名差异
2024-10-16 17:10:40 +08:00
7fb6ce9190 website: update touch-icon. 2024-10-15 04:15:52 +08:00
145aa54a4e website: modify favicon. #840 2024-10-15 04:04:26 +08:00
1e22344f72 website: add webpage icon. #840 2024-10-15 04:04:26 +08:00
596bff3f4a doc: Update README.md #102 2024-10-14 23:20:55 +08:00
30f8feb59b doc: update README.md. 2024-10-13 06:38:06 +00:00
81596b6c88 doc: update CONTRIBUTING.md. 2024-10-13 06:38:05 +00:00
612f874723 doc: update docker.md (#839)
统一端口号
2024-10-13 14:37:07 +08:00
51d30f35d2 doc: update README.md. 2024-10-12 09:46:14 +00:00
804e6ef7eb doc: update CONTRIBUTING.md. 2024-10-12 09:46:13 +00:00
e3628fc62d doc: update docker.md & linux-command.md & nginx.md (#838)
* doc: update linux-command.md

* 增加代理构建

* 删除上次提交多余
2024-10-12 17:45:12 +08:00
184ec1c187 doc: update README.md. 2024-10-11 08:57:52 +00:00
0be49cd510 doc: update CONTRIBUTING.md. 2024-10-11 08:57:51 +00:00
f6fe236778 doc: update docs/nginx.md (#836) 2024-10-11 16:56:19 +08:00
b6d62f4f74 doc: update README.md. 2024-10-11 08:48:56 +00:00
4c67490ade doc: update CONTRIBUTING.md. 2024-10-11 08:48:55 +00:00
3749de233c doc: update docs/nginx.md (#836) 2024-10-11 16:47:53 +08:00
a69be1efba doc: update docs/css.md 2024-10-03 14:20:53 +08:00
b0444f82bf doc: update README.md. 2024-09-30 03:48:01 +00:00
c1dd21bf0c doc: update CONTRIBUTING.md. 2024-09-30 03:48:00 +00:00
c249e0e609 doc: update docs/ffmpeg.md (#835) 2024-09-30 11:46:54 +08:00
0fc608a1ff doc: update README.md. 2024-09-29 10:30:51 +00:00
c0d987694e doc: update CONTRIBUTING.md. 2024-09-29 10:30:50 +00:00
a74c7e2092 doc: update docs/vue.md #832 2024-09-29 18:29:17 +08:00
88559b491c chore(deps): update dependency refs-cli to v^1.6.0 2024-09-29 18:28:29 +08:00
eeb42297ac doc: update README.md. 2024-09-25 15:54:25 +00:00
70842a31b5 doc: update CONTRIBUTING.md. 2024-09-25 15:54:24 +00:00
5ffc6faf3d docs: update vue.md (#832)
* doc:update docs/flutter.md

* docs:update docs/flutter.md

* docs:update docs/flutter.md

* docs:update vue.md & flutter.md
2024-09-25 23:53:15 +08:00
ade6fbe3d0 doc: update docs/flutter.md #830 2024-09-24 15:00:38 +08:00
feba5e1704 doc: update docs/vim.md 2024-09-24 14:45:50 +08:00
ce1e1a0c1d doc: update README.md. 2024-09-24 06:06:35 +00:00
661ee94e68 doc: update CONTRIBUTING.md. 2024-09-24 06:06:34 +00:00
93e3166fc5 doc: Update README.md #102 2024-09-24 14:05:27 +08:00
33909b96f8 doc: update README.md. 2024-09-22 15:29:26 +00:00
001388aa4a doc: update CONTRIBUTING.md. 2024-09-22 15:29:25 +00:00
33683eab41 docs:update /docs/flutter.md (#830)
* doc:update docs/flutter.md

* docs:update docs/flutter.md

* docs:update docs/flutter.md
2024-09-22 23:28:23 +08:00
77b2c7a133 doc: update docs/flutter.md (#828) 2024-09-21 23:31:54 +08:00
f510d354af doc: Update README.md #102 2024-09-20 19:31:18 +08:00
f549244389 doc: update docs/symbol-code.md fixed #823 2024-09-17 22:10:36 +08:00
2bac216f98 doc: update docs/mysql.md fixed #827 2024-09-17 20:35:23 +08:00
acf4c11182 doc: update README.md. 2024-09-16 17:07:44 +00:00
dbc29e409a doc: update CONTRIBUTING.md. 2024-09-16 17:07:43 +00:00
0fb45105c9 doc: Update README.md 2024-09-17 01:06:40 +08:00
ddc7f2dd47 docs: update docs/c.md (#821) 2024-09-12 22:53:31 +08:00
660dfe103d doc: update docs/docker.md 2024-08-29 17:23:26 +08:00
cdeeeb14bb doc: update README.md. 2024-08-26 11:44:41 +00:00
22f2c1472b doc: update CONTRIBUTING.md. 2024-08-26 11:44:39 +00:00
ea3391734b released v1.45.0 2024-08-26 19:42:59 +08:00
5f90dd9265 doc: update README.md. 2024-08-19 07:19:15 +00:00
638fb0bbce doc: update CONTRIBUTING.md. 2024-08-19 07:19:14 +00:00
58efbde216 doc: update docs/minio.md #813 2024-08-19 15:18:05 +08:00
d604a0d557 fix: Fixed description of math function (#817)
* fix: Fixed description of math.sqrt function

* fix: fix math.asin description

* Update lua.md
2024-08-18 17:58:38 +08:00
c4ebb484cd feat: add minio reference (#813)
* feat: add minio reference

* fix:alter minio.md
2024-08-15 22:45:46 +08:00
2307a5796a doc: update README.md. 2024-08-15 01:10:49 +00:00
5ea93312bd doc: update CONTRIBUTING.md. 2024-08-15 01:10:48 +00:00
f0da2a3397 doc: update docs/dart.md (#814)
### Current behavior
The current asynchronous login sample code has the following issues:
1. The `main` function tries to use `await userName()`, but `userName` is a string variable, not a function.
2. the `login` function should be called and `await` should be used to wait for its result.
### Expected behavior
The `main` function should correctly call the `login` function and use `await` to wait for the result, then print out the username.
### Sample code
Here is the corrected code:
```dart
Future<String> login() {
String userName = "Temidjoy";
return Future.delayed(
Duration(seconds: 4), () => userName
).
}
main() async {
print('Authenticating please wait...') The
String result = await login();
String result = await login(); print(result);
}
2024-08-15 09:09:47 +08:00
8963525b9a doc: Update README.md 2024-08-13 01:12:17 +08:00
4e1a4bb641 doc: Update README.md 2024-08-09 11:49:18 +08:00
1a37518aab doc: update docs/typescript.md 2024-08-09 11:36:02 +08:00
01757edbef doc: update README.md. 2024-08-09 03:29:20 +00:00
f36bb4bcbb doc: update CONTRIBUTING.md. 2024-08-09 03:29:18 +00:00
d42cbc7d2c doc: update docs/typescript.md 2024-08-09 11:27:33 +08:00
f80b5795bc doc: Update README.md (#102) 2024-08-01 20:31:56 +08:00
90b9b407b3 doc: Update github-actions.md 2024-07-29 03:21:29 +08:00
1a0415d432 doc: update README.md. 2024-07-28 15:35:23 +00:00
e6dab60332 doc: update CONTRIBUTING.md. 2024-07-28 15:35:22 +00:00
58991c482e doc: update docs/github-actions.md 2024-07-28 23:33:57 +08:00
eea1a03da8 doc: Update docs/jupyter.md 2024-07-28 22:57:23 +08:00
a3d3d4b0dd doc: Update linux-command.md (#807)
add zip/unzip commands
2024-07-27 23:21:56 +08:00
8c8b721015 doc: Update README.md #102 2024-07-26 15:36:35 +08:00
ec6d1677d6 doc: Update README.md #102 2024-07-25 01:58:15 +08:00
e25753169f doc: update README.md. 2024-07-24 16:04:12 +00:00
ca6a407ca8 doc: update CONTRIBUTING.md. 2024-07-24 16:04:11 +00:00
d7ea92c019 doc: update dart.md (#806)
* doc: update dart.md

* doc: update dart.md

完善 import 部分内容

* doc: update dart.md

修正翻译错误,将 “地图” 修改为 “映射”
2024-07-25 00:03:03 +08:00
f25137d53d feat: add jupyter (#803)
* feat: add jupyter note

* fix: alter note

* fix:add note
2024-07-21 15:09:00 +08:00
3e40d6e54f doc: Update README.md #102 2024-07-19 01:53:03 +08:00
145bdf9119 doc: update docs/git.md 2024-07-18 17:10:19 +08:00
daccdf940a doc: update README.md. 2024-07-17 14:46:28 +00:00
29b9e61adb doc: update CONTRIBUTING.md. 2024-07-17 14:46:27 +00:00
708329d8f2 doc: update golang.md (#802)
类型转换中补充了字符串与其他类型相互转换的方法
2024-07-17 22:45:13 +08:00
fac5af10c8 doc: update flutter.md (#800) 2024-07-15 18:15:44 +08:00
a45e63a966 doc: update dart.md (#801) 2024-07-15 18:15:09 +08:00
6c3b017099 doc: update README.md. 2024-07-14 14:51:40 +00:00
68aaed2cef doc: update CONTRIBUTING.md. 2024-07-14 14:51:39 +00:00
a05328f389 doc: Update README.md #102 2024-07-14 22:50:41 +08:00
707e939bf6 doc: update README.md. 2024-07-08 17:18:43 +00:00
94a5baec46 doc: update CONTRIBUTING.md. 2024-07-08 17:18:42 +00:00
0d7f6653b6 doc: Update README.md #786 2024-07-09 01:17:12 +08:00
4f4ac84ec9 doc: update README.md. 2024-07-08 17:13:41 +00:00
a8fbc4f8e1 doc: update CONTRIBUTING.md. 2024-07-08 17:13:40 +00:00
3cbec70a5e doc: Update vue.md (#786)
添加 vue3 watch 监听多个值的模板
2024-07-09 01:12:20 +08:00
8e9132f900 doc: Update docs/json.md 2024-07-05 12:02:13 +08:00
aadda3d5c5 doc: Update README.md 2024-07-02 22:15:10 +08:00
031b7f1976 doc: Update README.md #102 2024-06-29 18:42:46 +08:00
34bf61c2fb doc: Update README.md (#102) 2024-06-27 22:54:17 +08:00
3e05d637d3 doc: update stylex.md 2024-06-26 12:12:04 +08:00
658abb0e00 doc: update README.md. 2024-06-26 02:08:51 +00:00
5dc858cfe5 doc: update CONTRIBUTING.md. 2024-06-26 02:08:50 +00:00
29c4430e3a chore: update README.md (#677)
* Feat: 增加国内镜像网站

* chore: 调整网站名称
2024-06-26 10:07:45 +08:00
54 changed files with 5394 additions and 754 deletions

View File

@ -16,6 +16,7 @@ jobs:
- run: npm install
- run: npm run build
- run: cp -rp icons ./dist
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main

View File

@ -13,6 +13,17 @@
"github": {
"url": "https://github.com/jaywcjlove/reference"
},
"favicon": "{{RELATIVE_PATH}}icons/favicon.svg",
"meta": [
{ "name": "author", "content": "jaywcjlove" },
{ "name": "license", "content": "MIT" },
{ "name": "funding", "content": "https://jaywcjlove.github.io/#/sponsor" },
{ "rel": "apple-touch-icon", "href": "{{RELATIVE_PATH}}icons/touch-icon-iphone.png" },
{ "rel": "apple-touch-icon", "sizes": "152x152", "href": "{{RELATIVE_PATH}}icons/touch-icon-ipad.png" },
{ "rel": "apple-touch-icon", "sizes": "180x180", "href": "{{RELATIVE_PATH}}icons/touch-icon-iphone.png" },
{ "rel": "apple-touch-icon", "sizes": "167x167", "href": "{{RELATIVE_PATH}}icons/touch-icon-ipad-retina.png" },
{ "rel": "apple-touch-icon", "sizes": "120x120", "href": "{{RELATIVE_PATH}}icons/touch-icon-iphone-retina.png" }
],
"giscus": {
"src": "https://giscus.app/client.js",
"data-repo": "jaywcjlove/reference",

View File

@ -330,15 +330,15 @@ jobs:
<!--GAMFC--><a href="https://github.com/jaywcjlove" title="小弟调调"><img src="https://avatars.githubusercontent.com/u/1680273?v=4" width="42;" alt="小弟调调"/></a>
<a href="https://github.com/fwqaaq" title="fwqaaq"><img src="https://avatars.githubusercontent.com/u/82551626?v=4" width="42;" alt="fwqaaq"/></a>
<a href="https://github.com/zhangymPerson" title="zhangym"><img src="https://avatars.githubusercontent.com/u/40376181?v=4" width="42;" alt="zhangym"/></a>
<a href="https://github.com/mofelee" title="mofelee"><img src="https://avatars.githubusercontent.com/u/5069410?v=4" width="42;" alt="mofelee"/></a>
<a href="https://github.com/Country-If" title="Maylon"><img src="https://avatars.githubusercontent.com/u/62837275?v=4" width="42;" alt="Maylon"/></a>
<a href="https://github.com/zhangymPerson" title="zhangym"><img src="https://avatars.githubusercontent.com/u/40376181?v=4" width="42;" alt="zhangym"/></a>
<a href="https://github.com/aixcyi" title="砹小翼"><img src="https://avatars.githubusercontent.com/u/75880483?v=4" width="42;" alt="砹小翼"/></a>
<a href="https://github.com/nangongchengfeng" title="南宫乘风"><img src="https://avatars.githubusercontent.com/u/46562911?v=4" width="42;" alt="南宫乘风"/></a>
<a href="https://github.com/h7ml" title="h7ml"><img src="https://avatars.githubusercontent.com/u/55233292?v=4" width="42;" alt="h7ml"/></a>
<a href="https://github.com/LesterChang0987" title="Steve Hartwell"><img src="https://avatars.githubusercontent.com/u/114913921?v=4" width="42;" alt="Steve Hartwell"/></a>
<a href="https://github.com/JeffersonHuang" title="Jefferson Huang"><img src="https://avatars.githubusercontent.com/u/47512530?v=4" width="42;" alt="Jefferson Huang"/></a>
<a href="https://github.com/Alex20180512" title="Alex"><img src="https://avatars.githubusercontent.com/u/115539090?v=4" width="42;" alt="Alex"/></a>
<a href="https://github.com/LesterChang0987" title="Steve Hartwell"><img src="https://avatars.githubusercontent.com/u/114913921?v=4" width="42;" alt="Steve Hartwell"/></a>
<a href="https://github.com/h7ml" title="h7ml"><img src="https://avatars.githubusercontent.com/u/55233292?v=4" width="42;" alt="h7ml"/></a>
<a href="https://github.com/nangongchengfeng" title="南宫乘风"><img src="https://avatars.githubusercontent.com/u/46562911?v=4" width="42;" alt="南宫乘风"/></a>
<a href="https://github.com/aixcyi" title="阿羽"><img src="https://avatars.githubusercontent.com/u/75880483?v=4" width="42;" alt="阿羽"/></a>
<a href="https://github.com/alex-reinfoce" title="Alex"><img src="https://avatars.githubusercontent.com/u/115539090?v=4" width="42;" alt="Alex"/></a>
<a href="https://github.com/LufsX" title="LufsX"><img src="https://avatars.githubusercontent.com/u/33221883?v=4" width="42;" alt="LufsX"/></a>
<a href="https://github.com/mailbaoer" title="baoer"><img src="https://avatars.githubusercontent.com/u/5282978?v=4" width="42;" alt="baoer"/></a>
<a href="https://github.com/expoli" title="expoli"><img src="https://avatars.githubusercontent.com/u/31023767?v=4" width="42;" alt="expoli"/></a>
@ -347,46 +347,54 @@ jobs:
<a href="https://github.com/undefined-hestudio" title="undefined"><img src="https://avatars.githubusercontent.com/u/119711513?v=4" width="42;" alt="undefined"/></a>
<a href="https://github.com/Darkiiiiiice" title="Darkiiiiiice"><img src="https://avatars.githubusercontent.com/u/3959555?v=4" width="42;" alt="Darkiiiiiice"/></a>
<a href="https://github.com/genius-kim" title="Kim同学"><img src="https://avatars.githubusercontent.com/u/119488561?v=4" width="42;" alt="Kim同学"/></a>
<a href="https://github.com/qyl27" title="雨落"><img src="https://avatars.githubusercontent.com/u/53731501?v=4" width="42;" alt="雨落"/></a>
<a href="https://github.com/qyl27" title="雨落"><img src="https://avatars.githubusercontent.com/u/53731501?v=4" width="42;" alt="雨落"/></a>
<a href="https://github.com/MackDing" title="Blossom"><img src="https://avatars.githubusercontent.com/u/19878893?v=4" width="42;" alt="Blossom"/></a>
<a href="https://github.com/1250422131" title="萌新杰少"><img src="https://avatars.githubusercontent.com/u/52126790?v=4" width="42;" alt="萌新杰少"/></a>
<a href="https://github.com/richuff" title="richuff"><img src="https://avatars.githubusercontent.com/u/162144087?v=4" width="42;" alt="richuff"/></a>
<a href="https://github.com/chaos-cn" title="chaos"><img src="https://avatars.githubusercontent.com/u/71205599?v=4" width="42;" alt="chaos"/></a>
<a href="https://github.com/xia0ne" title="YuRuiH"><img src="https://avatars.githubusercontent.com/u/32591223?v=4" width="42;" alt="YuRuiH"/></a>
<a href="https://github.com/Willxup" title="Willxup"><img src="https://avatars.githubusercontent.com/u/51990395?v=4" width="42;" alt="Willxup"/></a>
<a href="https://github.com/long-910" title="Small Long"><img src="https://avatars.githubusercontent.com/u/7323488?v=4" width="42;" alt="Small Long"/></a>
<a href="https://github.com/LiuYuan-SHU" title="Yuan Liu"><img src="https://avatars.githubusercontent.com/u/96400967?v=4" width="42;" alt="Yuan Liu"/></a>
<a href="https://github.com/lvelvee" title="Lve Lvee"><img src="https://avatars.githubusercontent.com/u/25785753?v=4" width="42;" alt="Lve Lvee"/></a>
<a href="https://github.com/wsypower" title=""><img src="https://avatars.githubusercontent.com/u/31298317?v=4" width="42;" alt=""/></a>
<a href="https://github.com/itldg" title="老大哥"><img src="https://avatars.githubusercontent.com/u/13432299?v=4" width="42;" alt="老大哥"/></a>
<a href="https://github.com/catcto" title="小武Alan"><img src="https://avatars.githubusercontent.com/u/5467932?v=4" width="42;" alt="小武Alan"/></a>
<a href="https://github.com/ryanhex53" title="ryanhex53"><img src="https://avatars.githubusercontent.com/u/360426?v=4" width="42;" alt="ryanhex53"/></a>
<a href="https://github.com/partoneplay" title="partoneplay"><img src="https://avatars.githubusercontent.com/u/5189132?v=4" width="42;" alt="partoneplay"/></a>
<a href="https://github.com/pangxiaoli" title="pangxiaoli"><img src="https://avatars.githubusercontent.com/u/54620953?v=4" width="42;" alt="pangxiaoli"/></a>
<a href="https://github.com/AmosHuKe" title="Amos"><img src="https://avatars.githubusercontent.com/u/32262985?v=4" width="42;" alt="Amos"/></a>
<a href="https://github.com/1834423612" title="kjch"><img src="https://avatars.githubusercontent.com/u/49981661?v=4" width="42;" alt="kjch"/></a>
<a href="https://github.com/mancuoj" title="mancuoj"><img src="https://avatars.githubusercontent.com/u/45707684?v=4" width="42;" alt="mancuoj"/></a>
<a href="https://github.com/webeautiful" title="Albert"><img src="https://avatars.githubusercontent.com/u/3364316?v=4" width="42;" alt="Albert"/></a>
<a href="https://github.com/pangxiaoli" title="pangxiaoli"><img src="https://avatars.githubusercontent.com/u/54620953?v=4" width="42;" alt="pangxiaoli"/></a>
<a href="https://github.com/partoneplay" title="佐博"><img src="https://avatars.githubusercontent.com/u/5189132?v=4" width="42;" alt="佐博"/></a>
<a href="https://github.com/ryanhex53" title="ryanhex53"><img src="https://avatars.githubusercontent.com/u/360426?v=4" width="42;" alt="ryanhex53"/></a>
<a href="https://github.com/witt-bit" title="witt"><img src="https://avatars.githubusercontent.com/u/52407727?v=4" width="42;" alt="witt"/></a>
<a href="https://github.com/catcto" title="小武Alan"><img src="https://avatars.githubusercontent.com/u/5467932?v=4" width="42;" alt="小武Alan"/></a>
<a href="https://github.com/itldg" title="老大哥"><img src="https://avatars.githubusercontent.com/u/13432299?v=4" width="42;" alt="老大哥"/></a>
<a href="https://github.com/wsypower" title="魏"><img src="https://avatars.githubusercontent.com/u/31298317?v=4" width="42;" alt="魏"/></a>
<a href="https://github.com/buyfakett" title="buyfakett"><img src="https://avatars.githubusercontent.com/u/46560426?v=4" width="42;" alt="buyfakett"/></a>
<a href="https://github.com/wangdaodao" title="王叨叨"><img src="https://avatars.githubusercontent.com/u/2317442?v=4" width="42;" alt="王叨叨"/></a>
<a href="https://github.com/qjksxy" title="Apin"><img src="https://avatars.githubusercontent.com/u/81305669?v=4" width="42;" alt="Apin"/></a>
<a href="https://github.com/dadatom" title="Da Da"><img src="https://avatars.githubusercontent.com/u/33886943?v=4" width="42;" alt="Da Da"/></a>
<a href="https://github.com/ljq" title="Jack Liu"><img src="https://avatars.githubusercontent.com/u/7278286?v=4" width="42;" alt="Jack Liu"/></a>
<a href="https://github.com/jasnzhuang" title="Jason Zhuang"><img src="https://avatars.githubusercontent.com/u/16612921?v=4" width="42;" alt="Jason Zhuang"/></a>
<a href="https://github.com/Jovins" title="Jovins"><img src="https://avatars.githubusercontent.com/u/17738992?v=4" width="42;" alt="Jovins"/></a>
<a href="https://github.com/long-910" title="Small Long"><img src="https://avatars.githubusercontent.com/u/7323488?v=4" width="42;" alt="Small Long"/></a>
<a href="https://github.com/SuperDiscovery" title="SuperDiscovery"><img src="https://avatars.githubusercontent.com/u/49646863?v=4" width="42;" alt="SuperDiscovery"/></a>
<a href="https://github.com/XYZscratcher" title="XYZ"><img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ"/></a>
<a href="https://github.com/findnr" title="findnr"><img src="https://avatars.githubusercontent.com/u/3909023?v=4" width="42;" alt="findnr"/></a>
<a href="https://github.com/Kisa-Dong" title="Kisa-Dong"><img src="https://avatars.githubusercontent.com/u/84782008?v=4" width="42;" alt="Kisa-Dong"/></a>
<a href="https://github.com/infanx" title="infanx"><img src="https://avatars.githubusercontent.com/u/65985757?v=4" width="42;" alt="infanx"/></a>
<a href="https://github.com/greyhao" title="greyhao"><img src="https://avatars.githubusercontent.com/u/107107440?v=4" width="42;" alt="greyhao"/></a>
<a href="https://github.com/1834423612" title="kjch"><img src="https://avatars.githubusercontent.com/u/49981661?v=4" width="42;" alt="kjch"/></a>
<a href="https://github.com/findnr" title="findnr"><img src="https://avatars.githubusercontent.com/u/3909023?v=4" width="42;" alt="findnr"/></a>
<a href="https://github.com/izven" title="Zhang"><img src="https://avatars.githubusercontent.com/u/2149051?v=4" width="42;" alt="Zhang"/></a>
<a href="https://github.com/XYZscratcher" title="XYZ"><img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ"/></a>
<a href="https://github.com/ThanatosXingYu" title="Thanatos"><img src="https://avatars.githubusercontent.com/u/53430376?v=4" width="42;" alt="Thanatos"/></a>
<a href="https://github.com/SuperDiscovery" title="SuperDiscovery"><img src="https://avatars.githubusercontent.com/u/49646863?v=4" width="42;" alt="SuperDiscovery"/></a>
<a href="https://github.com/hua03" title="hua03"><img src="https://avatars.githubusercontent.com/u/19561959?v=4" width="42;" alt="hua03"/></a>
<a href="https://github.com/yanxuplay" title="hupilan"><img src="https://avatars.githubusercontent.com/u/69749541?v=4" width="42;" alt="hupilan"/></a>
<a href="https://github.com/hweining" title="hweining"><img src="https://avatars.githubusercontent.com/u/8973985?v=4" width="42;" alt="hweining"/></a>
<a href="https://github.com/infanx" title="infanx"><img src="https://avatars.githubusercontent.com/u/65985757?v=4" width="42;" alt="infanx"/></a>
<a href="https://github.com/auroraslot" title="irony"><img src="https://avatars.githubusercontent.com/u/48817882?v=4" width="42;" alt="irony"/></a>
<a href="https://github.com/jlchen5" title="jlchen5"><img src="https://avatars.githubusercontent.com/u/61578993?v=4" width="42;" alt="jlchen5"/></a>
<a href="https://github.com/jlchen5" title="J.Chen"><img src="https://avatars.githubusercontent.com/u/61578993?v=4" width="42;" alt="J.Chen"/></a>
<a href="https://github.com/joyfully-W" title="joyfully-W"><img src="https://avatars.githubusercontent.com/u/32212924?v=4" width="42;" alt="joyfully-W"/></a>
<a href="https://github.com/jqzhao7" title="jqzhao"><img src="https://avatars.githubusercontent.com/u/54694535?v=4" width="42;" alt="jqzhao"/></a>
<a href="https://github.com/jussker" title="jussker"><img src="https://avatars.githubusercontent.com/u/33953356?v=4" width="42;" alt="jussker"/></a>
<a href="https://github.com/k983551019" title="k983551019"><img src="https://avatars.githubusercontent.com/u/48147837?v=4" width="42;" alt="k983551019"/></a>
<a href="https://github.com/k983551019" title="Evan-k"><img src="https://avatars.githubusercontent.com/u/48147837?v=4" width="42;" alt="Evan-k"/></a>
<a href="https://github.com/kdxcxs" title="kdxcxs"><img src="https://avatars.githubusercontent.com/u/18746192?v=4" width="42;" alt="kdxcxs"/></a>
<a href="https://github.com/kubeme" title="kubernetes for me"><img src="https://avatars.githubusercontent.com/u/16346220?v=4" width="42;" alt="kubernetes for me"/></a>
<a href="https://github.com/larry-xue" title="larry"><img src="https://avatars.githubusercontent.com/u/48818060?v=4" width="42;" alt="larry"/></a>
<a href="https://github.com/Zeng-qh" title="都一样"><img src="https://avatars.githubusercontent.com/u/40046415?v=4" width="42;" alt="都一样"/></a>
<a href="https://github.com/hua03" title="hua03"><img src="https://avatars.githubusercontent.com/u/19561959?v=4" width="42;" alt="hua03"/></a>
<a href="https://github.com/larry-xue" title="yujian(larry) xue"><img src="https://avatars.githubusercontent.com/u/48818060?v=4" width="42;" alt="yujian(larry) xue"/></a>
<a href="https://github.com/leauny" title="leauny"><img src="https://avatars.githubusercontent.com/u/42369176?v=4" width="42;" alt="leauny"/></a>
<a href="https://github.com/liliangrong777" title="liliangrong777"><img src="https://avatars.githubusercontent.com/u/58727146?v=4" width="42;" alt="liliangrong777"/></a>
<a href="https://github.com/gzttcydxx" title="gzttcydxx"><img src="https://avatars.githubusercontent.com/u/50025185?v=4" width="42;" alt="gzttcydxx"/></a>
<a href="https://github.com/sunny0826" title="Xudong Guo"><img src="https://avatars.githubusercontent.com/u/24563928?v=4" width="42;" alt="Xudong Guo"/></a>
<a href="https://github.com/nodjoy" title="gowshwah"><img src="https://avatars.githubusercontent.com/u/145280043?v=4" width="42;" alt="gowshwah"/></a>
@ -394,41 +402,45 @@ jobs:
<a href="https://github.com/gi-b716" title="Gavin"><img src="https://avatars.githubusercontent.com/u/78394473?v=4" width="42;" alt="Gavin"/></a>
<a href="https://github.com/fjqz177" title="fjqz177"><img src="https://avatars.githubusercontent.com/u/83070583?v=4" width="42;" alt="fjqz177"/></a>
<a href="https://github.com/fakevn" title="fakevn"><img src="https://avatars.githubusercontent.com/u/11464386?v=4" width="42;" alt="fakevn"/></a>
<a href="https://github.com/emoji-share" title="emoji-share🤪"><img src="https://avatars.githubusercontent.com/u/192275245?v=4" width="42;" alt="emoji-share🤪"/></a>
<a href="https://github.com/cool9203" title="cool9203"><img src="https://avatars.githubusercontent.com/u/29609607?v=4" width="42;" alt="cool9203"/></a>
<a href="https://github.com/gaoxiaoduan" title="CoderDuan"><img src="https://avatars.githubusercontent.com/u/69953511?v=4" width="42;" alt="CoderDuan"/></a>
<a href="https://github.com/gaoxiaoduan" title="Coder Duan"><img src="https://avatars.githubusercontent.com/u/69953511?v=4" width="42;" alt="Coder Duan"/></a>
<a href="https://github.com/lijc210" title="cizai"><img src="https://avatars.githubusercontent.com/u/10651081?v=4" width="42;" alt="cizai"/></a>
<a href="https://github.com/chyok" title="chyok"><img src="https://avatars.githubusercontent.com/u/32629225?v=4" width="42;" alt="chyok"/></a>
<a href="https://github.com/zlfyuan" title="bgbgPang"><img src="https://avatars.githubusercontent.com/u/19658018?v=4" width="42;" alt="bgbgPang"/></a>
<a href="https://github.com/Lmmmmmm-bb" title="_lmmmmmm"><img src="https://avatars.githubusercontent.com/u/54026110?v=4" width="42;" alt="_lmmmmmm"/></a>
<a href="https://github.com/Zeng-qh" title="都一样"><img src="https://avatars.githubusercontent.com/u/40046415?v=4" width="42;" alt="都一样"/></a>
<a href="https://github.com/binscor" title="Zheng Nai Bin"><img src="https://avatars.githubusercontent.com/u/37325821?v=4" width="42;" alt="Zheng Nai Bin"/></a>
<a href="https://github.com/qwxingzhe" title="行者"><img src="https://avatars.githubusercontent.com/u/7071651?v=4" width="42;" alt="行者"/></a>
<a href="https://github.com/HanaChan233" title="花开花落"><img src="https://avatars.githubusercontent.com/u/75212820?v=4" width="42;" alt="花开花落"/></a>
<a href="https://github.com/lisheng741" title="芦荟柚子茶"><img src="https://avatars.githubusercontent.com/u/53617305?v=4" width="42;" alt="芦荟柚子茶"/></a>
<a href="https://github.com/wangdaodao" title="王叨叨"><img src="https://avatars.githubusercontent.com/u/2317442?v=4" width="42;" alt="王叨叨"/></a>
<a href="https://github.com/rainbowatcher" title="rainbowatcher"><img src="https://avatars.githubusercontent.com/u/42316353?v=4" width="42;" alt="rainbowatcher"/></a>
<a href="https://github.com/HChenX" title="焕晨HChen"><img src="https://avatars.githubusercontent.com/u/123531821?v=4" width="42;" alt="焕晨HChen"/></a>
<a href="https://github.com/LebranceBW" title="落叶乌龟"><img src="https://avatars.githubusercontent.com/u/19501514?v=4" width="42;" alt="落叶乌龟"/></a>
<a href="https://github.com/LongYinStudio" title="敬培全"><img src="https://avatars.githubusercontent.com/u/42208852?v=4" width="42;" alt="敬培全"/></a>
<a href="https://github.com/Fengjing95" title="小枫"><img src="https://avatars.githubusercontent.com/u/51731411?v=4" width="42;" alt="小枫"/></a>
<a href="https://github.com/ZIDOUZI" title="子斗子"><img src="https://avatars.githubusercontent.com/u/53157536?v=4" width="42;" alt="子斗子"/></a>
<a href="https://github.com/LuckyJie12" title="夜未央"><img src="https://avatars.githubusercontent.com/u/102901105?v=4" width="42;" alt="夜未央"/></a>
<a href="https://github.com/lvzhenbo" title="吕振波"><img src="https://avatars.githubusercontent.com/u/32427677?v=4" width="42;" alt="吕振波"/></a>
<a href="https://github.com/kele527" title="吹衣轻飏"><img src="https://avatars.githubusercontent.com/u/345445?v=4" width="42;" alt="吹衣轻飏"/></a>
<a href="https://github.com/lvzhenbo" title="无聊波波"><img src="https://avatars.githubusercontent.com/u/32427677?v=4" width="42;" alt="无聊波波"/></a>
<a href="https://github.com/zxx457" title="zxx457"><img src="https://avatars.githubusercontent.com/u/114141362?v=4" width="42;" alt="zxx457"/></a>
<a href="https://github.com/zhouhw0306" title="zhouhw0306"><img src="https://avatars.githubusercontent.com/u/82752681?v=4" width="42;" alt="zhouhw0306"/></a>
<a href="https://github.com/hiyms" title="yms"><img src="https://avatars.githubusercontent.com/u/84654050?v=4" width="42;" alt="yms"/></a>
<a href="https://github.com/xing133" title="xing133"><img src="https://avatars.githubusercontent.com/u/5336490?v=4" width="42;" alt="xing133"/></a>
<a href="https://github.com/wjjwkwindy" title="Hudson Alen"><img src="https://avatars.githubusercontent.com/u/9508591?v=4" width="42;" alt="Hudson Alen"/></a>
<a href="https://github.com/wannima66" title="tmen"><img src="https://avatars.githubusercontent.com/u/26410255?v=4" width="42;" alt="tmen"/></a>
<a href="https://github.com/swift-fs" title="swift"><img src="https://avatars.githubusercontent.com/u/77133741?v=4" width="42;" alt="swift"/></a>
<a href="https://github.com/swift-fs" title="swift-fs"><img src="https://avatars.githubusercontent.com/u/77133741?v=4" width="42;" alt="swift-fs"/></a>
<a href="https://github.com/suyangzuo" title="suyangzuo"><img src="https://avatars.githubusercontent.com/u/50766353?v=4" width="42;" alt="suyangzuo"/></a>
<a href="https://github.com/Mowmowj" title="nexo"><img src="https://avatars.githubusercontent.com/u/24759562?v=4" width="42;" alt="nexo"/></a>
<a href="https://github.com/ri-fumo" title="ri-fumo"><img src="https://avatars.githubusercontent.com/u/190000479?v=4" width="42;" alt="ri-fumo"/></a>
<a href="https://github.com/phygerr" title="phygerr"><img src="https://avatars.githubusercontent.com/u/42068889?v=4" width="42;" alt="phygerr"/></a>
<a href="https://github.com/openapphub" title="openapphub"><img src="https://avatars.githubusercontent.com/u/175949671?v=4" width="42;" alt="openapphub"/></a>
<a href="https://github.com/onewesong" title="onewesong"><img src="https://avatars.githubusercontent.com/u/17920822?v=4" width="42;" alt="onewesong"/></a>
<a href="https://github.com/miclon-dev" title="miclon-dev"><img src="https://avatars.githubusercontent.com/u/111753685?v=4" width="42;" alt="miclon-dev"/></a>
<a href="https://github.com/lykjjj" title="lykjjj"><img src="https://avatars.githubusercontent.com/u/58510058?v=4" width="42;" alt="lykjjj"/></a>
<a href="https://github.com/lozhu20" title="lozhu"><img src="https://avatars.githubusercontent.com/u/44923922?v=4" width="42;" alt="lozhu"/></a>
<a href="https://github.com/liliangrong777" title="liliangrong777"><img src="https://avatars.githubusercontent.com/u/58727146?v=4" width="42;" alt="liliangrong777"/></a>
<a href="https://github.com/leauny" title="leauny"><img src="https://avatars.githubusercontent.com/u/42369176?v=4" width="42;" alt="leauny"/></a>
<a href="https://github.com/y52y" title="Zyj"><img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj"/></a>
<a href="https://github.com/isecret" title="Mao Wang"><img src="https://avatars.githubusercontent.com/u/15724152?v=4" width="42;" alt="Mao Wang"/></a>
<a href="https://github.com/likeshop-github" title="likeshop技术社区"><img src="https://avatars.githubusercontent.com/u/77180968?v=4" width="42;" alt="likeshop技术社区"/></a>
<a href="https://github.com/lvelvee" title="Lve Lvee"><img src="https://avatars.githubusercontent.com/u/25785753?v=4" width="42;" alt="Lve Lvee"/></a>
<a href="https://github.com/likeadmin-likeshop" title="likeadmin通过管理后台-likeshop全开源商城"><img src="https://avatars.githubusercontent.com/u/77180968?v=4" width="42;" alt="likeadmin通过管理后台-likeshop全开源商城"/></a>
<a href="https://github.com/Lihuagreek" title="Lihuagreek"><img src="https://avatars.githubusercontent.com/u/51040740?v=4" width="42;" alt="Lihuagreek"/></a>
<a href="https://github.com/LightQuanta" title="Light_Quanta"><img src="https://avatars.githubusercontent.com/u/18213217?v=4" width="42;" alt="Light_Quanta"/></a>
<a href="https://github.com/JetSquirrel" title="JetSquirrel"><img src="https://avatars.githubusercontent.com/u/20291255?v=4" width="42;" alt="JetSquirrel"/></a>
@ -442,6 +454,7 @@ jobs:
<a href="https://github.com/demigodliu" title="DemigodLiu"><img src="https://avatars.githubusercontent.com/u/30372735?v=4" width="42;" alt="DemigodLiu"/></a>
<a href="https://github.com/dasferco" title="Dasferco"><img src="https://avatars.githubusercontent.com/u/92622404?v=4" width="42;" alt="Dasferco"/></a>
<a href="https://github.com/Damao2250" title="Damao"><img src="https://avatars.githubusercontent.com/u/19251992?v=4" width="42;" alt="Damao"/></a>
<a href="https://github.com/daining810" title="dain"><img src="https://avatars.githubusercontent.com/u/125986872?v=4" width="42;" alt="dain"/></a>
<a href="https://github.com/DEEMO101" title="DEEMO101"><img src="https://avatars.githubusercontent.com/u/35123091?v=4" width="42;" alt="DEEMO101"/></a>
<a href="https://github.com/ohto-ai" title="Choo"><img src="https://avatars.githubusercontent.com/u/46275725?v=4" width="42;" alt="Choo"/></a>
<a href="https://github.com/CharlotteZeng" title="hanchZ"><img src="https://avatars.githubusercontent.com/u/19461184?v=4" width="42;" alt="hanchZ"/></a>
@ -452,10 +465,13 @@ jobs:
<a href="https://github.com/BlacAmDK" title="BlacAmDK"><img src="https://avatars.githubusercontent.com/u/10971397?v=4" width="42;" alt="BlacAmDK"/></a>
<a href="https://github.com/gitchenze" title="Aze"><img src="https://avatars.githubusercontent.com/u/13357869?v=4" width="42;" alt="Aze"/></a>
<a href="https://github.com/dousha0w0" title="dousha0w0"><img src="https://avatars.githubusercontent.com/u/52566311?v=4" width="42;" alt="dousha0w0"/></a>
<a href="https://github.com/JinchuanL" title="ANDY"><img src="https://avatars.githubusercontent.com/u/68026794?v=4" width="42;" alt="ANDY"/></a>
<a href="https://github.com/13812700839" title="花殇"><img src="https://avatars.githubusercontent.com/u/58072506?v=4" width="42;" alt="花殇"/></a>
<a href="https://github.com/y52y" title="Zyj"><img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj"/></a>
<a href="https://github.com/Leaderzhangyi" title="ZinkCas"><img src="https://avatars.githubusercontent.com/u/46915666?v=4" width="42;" alt="ZinkCas"/></a>
<a href="https://github.com/zhu0629" title="zhucong"><img src="https://avatars.githubusercontent.com/u/13188450?v=4" width="42;" alt="zhucong"/></a>
<a href="https://github.com/yikuaibro" title="yikuaibro"><img src="https://avatars.githubusercontent.com/u/44493045?v=4" width="42;" alt="yikuaibro"/></a>
<a href="https://github.com/HeZephyr" title="Zephyr He"><img src="https://avatars.githubusercontent.com/u/67893254?v=4" width="42;" alt="Zephyr He"/></a>
<a href="https://github.com/dfshizhiqiang" title="Zech"><img src="https://avatars.githubusercontent.com/u/7030019?v=4" width="42;" alt="Zech"/></a>
<a href="https://github.com/Yo-gurts" title="Yogurt"><img src="https://avatars.githubusercontent.com/u/44612841?v=4" width="42;" alt="Yogurt"/></a>
<a href="https://github.com/hi-liyan" title="李李李"><img src="https://avatars.githubusercontent.com/u/40056492?v=4" width="42;" alt="李李李"/></a>
@ -478,6 +494,7 @@ jobs:
<a href="https://github.com/mo3et" title="Monet Lee"><img src="https://avatars.githubusercontent.com/u/34803812?v=4" width="42;" alt="Monet Lee"/></a>
<a href="https://github.com/Moeyuuko" title="Moeyuuko"><img src="https://avatars.githubusercontent.com/u/14266681?v=4" width="42;" alt="Moeyuuko"/></a>
<a href="https://github.com/malcolmyu" title="Minghao Yu"><img src="https://avatars.githubusercontent.com/u/3203962?v=4" width="42;" alt="Minghao Yu"/></a>
<a href="https://github.com/Mieriki" title="Mieriki"><img src="https://avatars.githubusercontent.com/u/142009318?v=4" width="42;" alt="Mieriki"/></a>
<a href="https://github.com/mariuszmichalowski" title="Mariusz Michalowski"><img src="https://avatars.githubusercontent.com/u/92091891?v=4" width="42;" alt="Mariusz Michalowski"/></a><!--GAMFC-END-->
上图贡献者列表,由 [contributors](https://github.com/jaywcjlove/github-action-contributors) 自动生成贡献者图片。

228
README.md
View File

@ -2,7 +2,7 @@ Quick Reference
===
<!--rehype:ignore:start-->
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![Buy me a coffee](https://img.shields.io/badge/Buy_Me_a_Coffee-ffdd00?logo=buy-me-a-coffee&logoColor=black)](https://jaywcjlove.github.io/#/sponsor)
[![CI](https://github.com/jaywcjlove/reference/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/reference/actions/workflows/ci.yml)
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/reference)](https://hub.docker.com/r/wcjiang/reference)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/reference)](https://hub.docker.com/r/wcjiang/reference)
@ -13,7 +13,7 @@ Quick Reference
[![Quick Reference](https://user-images.githubusercontent.com/1680273/201931931-d8559417-0a15-46af-a009-ec1e56e5b778.png)](https://jaywcjlove.github.io/reference)
<!--rehype:ignore:end-->
为开发人员分享快速参考备忘清单【速查表】。这是英文版 [Reference](https://github.com/Randy8080/reference) 的中文版本,目的是为了方便自己的技术栈查阅,如果您提供一个清单,我将抽空搬运,立即撸起来 :)。如果您发现此处的备忘单不合适,可以通过提交 [PR](https://github.com/jaywcjlove/reference/blob/main/CONTRIBUTING.md) 来修复或提供更好的备忘清单,只针对【中文】用户。以下是开源天使提供的一些备忘清单和快速参考 :)。
了方便开发人员查阅技术栈,分享这份快速参考备忘清单【速查表】。这是英文版 [Reference](https://github.com/Randy8080/reference) 的中文翻译,旨在帮助自己更好地使用相关技术。如果您有自己的清单,也欢迎提供,我会抽时间搬运并立刻实现 :)。如果您发现这份备忘单中的内容不合适,可以通过提交 [PR](https://github.com/jaywcjlove/reference/blob/main/CONTRIBUTING.md) 来修复或提供更好的备忘清单,主要面向【中文】用户。以下是一些开源天使提供的备忘清单和快速参考 :)。
## 正在建设中...
@ -47,12 +47,13 @@ Quick Reference
## 编程
[Bash](./docs/bash.md)<!--rehype:style=background: rgb(72 143 223);-->
[Powershell](./docs/powershell.md)<!--rehype:style=background: rgb(0 81 197);-->
[C 语言](./docs/c.md)<!--rehype:style=background: rgb(92 107 192);-->
[C#](./docs/cs.md)<!--rehype:style=background: rgb(6 147 13);&class=contributing-->
[C++](./docs/cpp.md)<!--rehype:style=background: rgb(6 147 13);&class=contributing-->
[Dart](./docs/dart.md)<!--rehype:style=background: rgb(64 196 255);-->
[Docker](./docs/docker.md)<!--rehype:style=background: rgb(72 143 223);-->
[Docker-Compose](./docs/docker-compose.md)<!--rehype:style=background: rgb(72 143 223);&class=contributing tag&data-lang=Docker-->
[Docker Compose](./docs/docker-compose.md)<!--rehype:style=background: rgb(72 143 223);&class=contributing tag&data-lang=Docker-->
[Dockerfile](./docs/dockerfile.md)<!--rehype:style=background: rgb(0 72 153);&class=tag&data-lang=Docker-->
[Django](./docs/django.md)<!--rehype:style=background: rgb(12 75 51);&class=contributing tag&data-lang=Python-->
[Elixir](./docs/elixir.md)<!--rehype:style=background: rgb(124 26 156);&class=contributing tag&data-lang=Elixir-->
@ -82,6 +83,8 @@ Quick Reference
[Spring Boot](./docs/springboot.md)<!--rehype:style=background: rgb(0 149 0);&class=tag&data-lang=Java-->
[Lua](./docs/lua.md)<!--rehype:style=background: rgb(3 3 128);-->
[Pytorch](./docs/pytorch.md)<!--rehype:style=background: rgb(238 76 44);&class=contributing tag&data-lang=Python&data-info=👆看看还缺点儿什么?-->
[Jupyter](./docs/jupyter.md)<!--rehype:style=background: rgb(0 72 153);&class=tag&data-lang=Python-->
[Minio](./docs/minio.md)<!--rehype:style=background: rgb(3 3 128);-->
<!--rehype:class=home-card-->
## 配置
@ -99,6 +102,7 @@ Quick Reference
[Emmet](./docs/emmet.md)<!--rehype:style=background: rgb(122 203 23);-->
[ES 6](./docs/es6.md)<!--rehype:style=background: rgb(122 203 23);&class=tag&data-lang=JS-->
[HTML](./docs/html.md)<!--rehype:style=background: rgb(228 77 39);-->
[HTML Canvas](./docs/canvas.md)<!--rehype:style=background: rgb(228 77 39);-->
[JavaScript](./docs/javascript.md)<!--rehype:style=background: rgb(203 183 31);-->
[jQuery](./docs/jquery.md)<!--rehype:style=background: rgb(203 183 31);-->
[Next.js](./docs/nextjs.md)<!--rehype:style=background: rgb(0 0 0);&class=tag&data-lang=React-->
@ -106,7 +110,6 @@ Quick Reference
[React](./docs/react.md)<!--rehype:style=background: rgb(34 143 173);-->
[React Router](./docs/reactrouter.md)<!--rehype:style=background: rgb(244 66 79);&class=tag&data-lang=React-->
[React Native](./docs/react-native.md)<!--rehype:style=background: rgb(34 143 173);&class=tag&data-lang=React-->
[RegEx 正则表达式](./docs/regex.md)<!--rehype:style=background: rgb(149 36 155);-->
[TypeScript](./docs/typescript.md)<!--rehype:style=background: rgb(49 120 198);-->
[Tauri](./docs/tauri.md)<!--rehype:style=background: rgb(103 214 237);&class=contributing-->
[Vue 2](./docs/vue2.md)<!--rehype:style=background: rgb(64 184 131);&class=tag&data-lang=Vue-->
@ -143,16 +146,6 @@ Quick Reference
[Bun](./docs/bun.md)<!--rehype:style=background: rgb(157 49 81);-->
<!--rehype:class=home-card-->
## 工具
[Emacs](./docs/emacs.md)<!--rehype:style=background: rgb(98 36 134);-->
[Github](./docs/github.md)<!--rehype:style=background: rgb(36 41 47);-->
[nginx](./docs/nginx.md)<!--rehype:style=background: rgb(0 153 0);-->
[Semver](./docs/semver.md)<!--rehype:style=background: rgb(106 111 141);-->
[Vim](./docs/vim.md)<!--rehype:style=background: rgb(9 150 8);-->
[XPath](./docs/xpath.md)<!--rehype:style=background: rgb(91 163 230);-->
<!--rehype:class=home-card-->
## 命令
[ADB, Android Debug Bridge](./docs/adb.md)<!--rehype:style=background: rgb(238 0 0);&class=contributing tag&data-lang=Android&data-info=👆看看还缺点儿什么?-->
@ -167,7 +160,6 @@ Quick Reference
[Find](./docs/find.md)<!--rehype:style=background: rgb(16 185 129);-->
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9);&class=contributing-->
[Gdb](./docs/gdb.md)<!--rehype:style=background: rgb(215 89 62);-->
[Git](./docs/git.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=版本控制-->
[Glances](./docs/glances.md)<!--rehype:style=background: rgb(16 185 129);-->
[Grep](./docs/grep.md)<!--rehype:style=background: rgb(16 185 129);-->
[Htop](./docs/htop.md)<!--rehype:style=background: rgb(16 185 129);-->
@ -184,17 +176,30 @@ Quick Reference
[Sed](./docs/sed.md)<!--rehype:style=background: rgb(16 185 129);-->
[Systemd](./docs/systemd.md)<!--rehype:style=background: rgb(16 185 129);-->
[SSH](./docs/ssh.md)<!--rehype:style=background: rgb(99 99 99);-->
[Subversion (SVN)](./docs/subversion.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=版本控制-->
[Screen](./docs/screen.md)<!--rehype:style=background: rgb(99 99 99);-->
[Sysdig](./docs/sysdig.md)<!--rehype:style=background: rgb(1 171 199);-->
[Tmux](./docs/tmux.md)<!--rehype:style=background: rgb(99 99 99);-->
[Taskset](./docs/taskset.md)<!--rehype:style=background: rgb(99 99 99);-->
[tar](./docs/tar.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=解压缩-->
[Yazi](./docs/yazi.md)<!--rehype:style=background: rgb(255 165 0);&class=tag&data-lang=文件管理器;&class=contributing-->
[Zip](./docs/zip.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=解压缩-->
[FTP](./docs/ftp.md)<!--rehype:style=background: rgb(99 99 99);-->
<!--rehype:class=home-card-->
## 工具
## 工具
[ChatGPT](./docs/chatgpt.md)<!--rehype:style=background: rgb(74, 161, 129);&class=tag&data-lang=AI-->
[Emacs](./docs/emacs.md)<!--rehype:style=background: rgb(98 36 134);-->
[Linux Command](./docs/linux-command.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=命令速查-->
[Mitmproxy](./docs/mitmproxy.md)<!--rehype:style=background: rgb(4 92 135);-->
[nginx](./docs/nginx.md)<!--rehype:style=background: rgb(0 153 0);-->
[RegEx 正则表达式](./docs/regex.md)<!--rehype:style=background: rgb(149 36 155);-->
[Semver 语义化版本](./docs/semver.md)<!--rehype:style=background: rgb(106 111 141);-->
[Vim](./docs/vim.md)<!--rehype:style=background: rgb(9 150 8);-->
[XPath](./docs/xpath.md)<!--rehype:style=background: rgb(91 163 230);-->
<!--rehype:class=home-card-->
## 软件包管理器
[APT](./docs/apt.md)<!--rehype:style=background: rgb(30 144 255);-->
[Conan](./docs/conan.md)<!--rehype:style=background: rgb(0 193 9);&class=tag&data-lang=C/C++-->
@ -202,13 +207,22 @@ Quick Reference
[CocoaPods](./docs/cocoapods.md)<!--rehype:style=background: rgb(251 0 6);&class=tag&data-lang=C/C++-->
[Cargo](./docs/cargo.md)<!--rehype:style=background: rgb(71 71 71);&class=tag&data-lang=Rust-->
[Homebrew](./docs/homebrew.md)<!--rehype:style=background: rgb(252 185 87);&class=tag&data-lang=macOS-->
[Linux Command](./docs/linux-command.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=命令速查-->
[Mitmproxy](./docs/mitmproxy.md)<!--rehype:style=background: rgb(4 92 135);-->
[Pacman](./docs/pacman.md)<!--rehype:style=background: rgb(24 147 209);&class=tag&data-lang=archlinux&class=contributing-->
[YUM](./docs/yum.md)<!--rehype:style=background: rgb(86 86 123);-->
[SDKMAN](./docs/sdkman.md)<!--rehype:style=background: rgb(0 118 198);-->
<!--rehype:class=home-card-->
## Git 版本控制
[Git](./docs/git.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=版本控制-->
[Github](./docs/github.md)<!--rehype:style=background: rgb(36 41 47);-->
[Github Copilot](./docs/github-copilot.md)<!--rehype:style=background: rgb(125 45 220);&class=tag contributing&data-lang=AI&data-info=👆看看还缺点儿什么?-->
[Github CLI](./docs/github-cli.md)<!--rehype:style=background: rgb(36 41 47);-->
[Github Actions](./docs/github-actions.md)<!--rehype:style=background: rgb(121 184 255);-->
[Gitlab CI/CD](./docs/gitlab-ci.md)<!--rehype:style=background: rgb(226 67 41);&class=contributing-->
[Subversion (SVN)](./docs/subversion.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=版本控制-->
<!--rehype:class=home-card-->
## 数据库
[MySQL](./docs/mysql.md)<!--rehype:style=background: rgb(1 117 143);&class=tag&data-lang=SQL-->
@ -218,6 +232,7 @@ Quick Reference
[Redis](./docs/redis.md)<!--rehype:style=background: rgb(198 47 44);-->
[Elasticsearch](./docs/elasticsearch.md)<!--rehype:style=background: rgb(36 187 177);-->
[Neo4j](./docs/neo4j.md)<!--rehype:style=background: rgb(86 86 123);-->
[SQLite](./docs/sqlite.md)<!--rehype:style=background: rgb(0 59 90);-->
<!--rehype:class=home-card-->
## 快捷键
@ -251,8 +266,6 @@ Quick Reference
[Aspect Ratio](./docs/aspect-ratio.md)<!--rehype:style=background: rgb(16 185 129);-->
[ASCII Code](./docs/ascii-code.md)<!--rehype:style=background: rgb(16 185 129);-->
[Symbol Code](./docs/symbol-code.md)<!--rehype:style=background: rgb(16 185 129);-->
[Github Actions](./docs/github-actions.md)<!--rehype:style=background: rgb(121 184 255);-->
[Gitlab CI/CD](./docs/gitlab-ci.md)<!--rehype:style=background: rgb(226 67 41);&class=contributing-->
[Colors Named](./docs/colors-named.md)<!--rehype:style=background: rgb(16 185 129);&class=tag&data-lang=CSS-->
[HTTP 状态码](./docs/http-status-code.md)<!--rehype:style=background: rgb(16 185 129);-->
[HTML 字符实体](./docs/html-char.md)<!--rehype:style=background: rgb(16 185 129);&class=tag&data-lang=HTML-->
@ -261,7 +274,7 @@ Quick Reference
[Emoji](./docs/emoji.md)<!--rehype:style=\-\-bg\-opacity: 0.75;background-image: linear-gradient(to left, rgba(74 222 128 / var(\-\-bg\-opacity)), rgba(59 130 246 / var(\-\-bg\-opacity)));-->
[MIME types](./docs/mime.md)<!--rehype:style=background: rgb(16 185 129);-->
[Resolutions](./docs/resolutions.md)<!--rehype:style=background: rgb(16 185 129);-->
[ChatGPT](./docs/chatgpt.md)<!--rehype:style=background: rgb(74, 161, 129);&class=tag&data-lang=ai-->
[常见端口对照](./docs/ports.md)<!--rehype:style=background: rgb(16 185 129);-->
<!--rehype:class=home-card-->
## 看到缺少什么了吗?
@ -281,15 +294,15 @@ Quick Reference
<!--GAMFC--><a href="https://github.com/jaywcjlove" title="小弟调调"><img src="https://avatars.githubusercontent.com/u/1680273?v=4" width="42;" alt="小弟调调"/></a>
<a href="https://github.com/fwqaaq" title="fwqaaq"><img src="https://avatars.githubusercontent.com/u/82551626?v=4" width="42;" alt="fwqaaq"/></a>
<a href="https://github.com/zhangymPerson" title="zhangym"><img src="https://avatars.githubusercontent.com/u/40376181?v=4" width="42;" alt="zhangym"/></a>
<a href="https://github.com/mofelee" title="mofelee"><img src="https://avatars.githubusercontent.com/u/5069410?v=4" width="42;" alt="mofelee"/></a>
<a href="https://github.com/Country-If" title="Maylon"><img src="https://avatars.githubusercontent.com/u/62837275?v=4" width="42;" alt="Maylon"/></a>
<a href="https://github.com/zhangymPerson" title="zhangym"><img src="https://avatars.githubusercontent.com/u/40376181?v=4" width="42;" alt="zhangym"/></a>
<a href="https://github.com/aixcyi" title="砹小翼"><img src="https://avatars.githubusercontent.com/u/75880483?v=4" width="42;" alt="砹小翼"/></a>
<a href="https://github.com/nangongchengfeng" title="南宫乘风"><img src="https://avatars.githubusercontent.com/u/46562911?v=4" width="42;" alt="南宫乘风"/></a>
<a href="https://github.com/h7ml" title="h7ml"><img src="https://avatars.githubusercontent.com/u/55233292?v=4" width="42;" alt="h7ml"/></a>
<a href="https://github.com/LesterChang0987" title="Steve Hartwell"><img src="https://avatars.githubusercontent.com/u/114913921?v=4" width="42;" alt="Steve Hartwell"/></a>
<a href="https://github.com/JeffersonHuang" title="Jefferson Huang"><img src="https://avatars.githubusercontent.com/u/47512530?v=4" width="42;" alt="Jefferson Huang"/></a>
<a href="https://github.com/Alex20180512" title="Alex"><img src="https://avatars.githubusercontent.com/u/115539090?v=4" width="42;" alt="Alex"/></a>
<a href="https://github.com/LesterChang0987" title="Steve Hartwell"><img src="https://avatars.githubusercontent.com/u/114913921?v=4" width="42;" alt="Steve Hartwell"/></a>
<a href="https://github.com/h7ml" title="h7ml"><img src="https://avatars.githubusercontent.com/u/55233292?v=4" width="42;" alt="h7ml"/></a>
<a href="https://github.com/nangongchengfeng" title="南宫乘风"><img src="https://avatars.githubusercontent.com/u/46562911?v=4" width="42;" alt="南宫乘风"/></a>
<a href="https://github.com/aixcyi" title="阿羽"><img src="https://avatars.githubusercontent.com/u/75880483?v=4" width="42;" alt="阿羽"/></a>
<a href="https://github.com/alex-reinfoce" title="Alex"><img src="https://avatars.githubusercontent.com/u/115539090?v=4" width="42;" alt="Alex"/></a>
<a href="https://github.com/LufsX" title="LufsX"><img src="https://avatars.githubusercontent.com/u/33221883?v=4" width="42;" alt="LufsX"/></a>
<a href="https://github.com/mailbaoer" title="baoer"><img src="https://avatars.githubusercontent.com/u/5282978?v=4" width="42;" alt="baoer"/></a>
<a href="https://github.com/expoli" title="expoli"><img src="https://avatars.githubusercontent.com/u/31023767?v=4" width="42;" alt="expoli"/></a>
@ -298,46 +311,54 @@ Quick Reference
<a href="https://github.com/undefined-hestudio" title="undefined"><img src="https://avatars.githubusercontent.com/u/119711513?v=4" width="42;" alt="undefined"/></a>
<a href="https://github.com/Darkiiiiiice" title="Darkiiiiiice"><img src="https://avatars.githubusercontent.com/u/3959555?v=4" width="42;" alt="Darkiiiiiice"/></a>
<a href="https://github.com/genius-kim" title="Kim同学"><img src="https://avatars.githubusercontent.com/u/119488561?v=4" width="42;" alt="Kim同学"/></a>
<a href="https://github.com/qyl27" title="雨落"><img src="https://avatars.githubusercontent.com/u/53731501?v=4" width="42;" alt="雨落"/></a>
<a href="https://github.com/qyl27" title="雨落"><img src="https://avatars.githubusercontent.com/u/53731501?v=4" width="42;" alt="雨落"/></a>
<a href="https://github.com/MackDing" title="Blossom"><img src="https://avatars.githubusercontent.com/u/19878893?v=4" width="42;" alt="Blossom"/></a>
<a href="https://github.com/1250422131" title="萌新杰少"><img src="https://avatars.githubusercontent.com/u/52126790?v=4" width="42;" alt="萌新杰少"/></a>
<a href="https://github.com/richuff" title="richuff"><img src="https://avatars.githubusercontent.com/u/162144087?v=4" width="42;" alt="richuff"/></a>
<a href="https://github.com/chaos-cn" title="chaos"><img src="https://avatars.githubusercontent.com/u/71205599?v=4" width="42;" alt="chaos"/></a>
<a href="https://github.com/xia0ne" title="YuRuiH"><img src="https://avatars.githubusercontent.com/u/32591223?v=4" width="42;" alt="YuRuiH"/></a>
<a href="https://github.com/Willxup" title="Willxup"><img src="https://avatars.githubusercontent.com/u/51990395?v=4" width="42;" alt="Willxup"/></a>
<a href="https://github.com/long-910" title="Small Long"><img src="https://avatars.githubusercontent.com/u/7323488?v=4" width="42;" alt="Small Long"/></a>
<a href="https://github.com/LiuYuan-SHU" title="Yuan Liu"><img src="https://avatars.githubusercontent.com/u/96400967?v=4" width="42;" alt="Yuan Liu"/></a>
<a href="https://github.com/lvelvee" title="Lve Lvee"><img src="https://avatars.githubusercontent.com/u/25785753?v=4" width="42;" alt="Lve Lvee"/></a>
<a href="https://github.com/wsypower" title=""><img src="https://avatars.githubusercontent.com/u/31298317?v=4" width="42;" alt=""/></a>
<a href="https://github.com/itldg" title="老大哥"><img src="https://avatars.githubusercontent.com/u/13432299?v=4" width="42;" alt="老大哥"/></a>
<a href="https://github.com/catcto" title="小武Alan"><img src="https://avatars.githubusercontent.com/u/5467932?v=4" width="42;" alt="小武Alan"/></a>
<a href="https://github.com/ryanhex53" title="ryanhex53"><img src="https://avatars.githubusercontent.com/u/360426?v=4" width="42;" alt="ryanhex53"/></a>
<a href="https://github.com/partoneplay" title="partoneplay"><img src="https://avatars.githubusercontent.com/u/5189132?v=4" width="42;" alt="partoneplay"/></a>
<a href="https://github.com/pangxiaoli" title="pangxiaoli"><img src="https://avatars.githubusercontent.com/u/54620953?v=4" width="42;" alt="pangxiaoli"/></a>
<a href="https://github.com/AmosHuKe" title="Amos"><img src="https://avatars.githubusercontent.com/u/32262985?v=4" width="42;" alt="Amos"/></a>
<a href="https://github.com/1834423612" title="kjch"><img src="https://avatars.githubusercontent.com/u/49981661?v=4" width="42;" alt="kjch"/></a>
<a href="https://github.com/mancuoj" title="mancuoj"><img src="https://avatars.githubusercontent.com/u/45707684?v=4" width="42;" alt="mancuoj"/></a>
<a href="https://github.com/webeautiful" title="Albert"><img src="https://avatars.githubusercontent.com/u/3364316?v=4" width="42;" alt="Albert"/></a>
<a href="https://github.com/pangxiaoli" title="pangxiaoli"><img src="https://avatars.githubusercontent.com/u/54620953?v=4" width="42;" alt="pangxiaoli"/></a>
<a href="https://github.com/partoneplay" title="佐博"><img src="https://avatars.githubusercontent.com/u/5189132?v=4" width="42;" alt="佐博"/></a>
<a href="https://github.com/ryanhex53" title="ryanhex53"><img src="https://avatars.githubusercontent.com/u/360426?v=4" width="42;" alt="ryanhex53"/></a>
<a href="https://github.com/witt-bit" title="witt"><img src="https://avatars.githubusercontent.com/u/52407727?v=4" width="42;" alt="witt"/></a>
<a href="https://github.com/catcto" title="小武Alan"><img src="https://avatars.githubusercontent.com/u/5467932?v=4" width="42;" alt="小武Alan"/></a>
<a href="https://github.com/itldg" title="老大哥"><img src="https://avatars.githubusercontent.com/u/13432299?v=4" width="42;" alt="老大哥"/></a>
<a href="https://github.com/wsypower" title="魏"><img src="https://avatars.githubusercontent.com/u/31298317?v=4" width="42;" alt="魏"/></a>
<a href="https://github.com/buyfakett" title="buyfakett"><img src="https://avatars.githubusercontent.com/u/46560426?v=4" width="42;" alt="buyfakett"/></a>
<a href="https://github.com/wangdaodao" title="王叨叨"><img src="https://avatars.githubusercontent.com/u/2317442?v=4" width="42;" alt="王叨叨"/></a>
<a href="https://github.com/qjksxy" title="Apin"><img src="https://avatars.githubusercontent.com/u/81305669?v=4" width="42;" alt="Apin"/></a>
<a href="https://github.com/dadatom" title="Da Da"><img src="https://avatars.githubusercontent.com/u/33886943?v=4" width="42;" alt="Da Da"/></a>
<a href="https://github.com/ljq" title="Jack Liu"><img src="https://avatars.githubusercontent.com/u/7278286?v=4" width="42;" alt="Jack Liu"/></a>
<a href="https://github.com/jasnzhuang" title="Jason Zhuang"><img src="https://avatars.githubusercontent.com/u/16612921?v=4" width="42;" alt="Jason Zhuang"/></a>
<a href="https://github.com/Jovins" title="Jovins"><img src="https://avatars.githubusercontent.com/u/17738992?v=4" width="42;" alt="Jovins"/></a>
<a href="https://github.com/long-910" title="Small Long"><img src="https://avatars.githubusercontent.com/u/7323488?v=4" width="42;" alt="Small Long"/></a>
<a href="https://github.com/SuperDiscovery" title="SuperDiscovery"><img src="https://avatars.githubusercontent.com/u/49646863?v=4" width="42;" alt="SuperDiscovery"/></a>
<a href="https://github.com/XYZscratcher" title="XYZ"><img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ"/></a>
<a href="https://github.com/findnr" title="findnr"><img src="https://avatars.githubusercontent.com/u/3909023?v=4" width="42;" alt="findnr"/></a>
<a href="https://github.com/Kisa-Dong" title="Kisa-Dong"><img src="https://avatars.githubusercontent.com/u/84782008?v=4" width="42;" alt="Kisa-Dong"/></a>
<a href="https://github.com/infanx" title="infanx"><img src="https://avatars.githubusercontent.com/u/65985757?v=4" width="42;" alt="infanx"/></a>
<a href="https://github.com/greyhao" title="greyhao"><img src="https://avatars.githubusercontent.com/u/107107440?v=4" width="42;" alt="greyhao"/></a>
<a href="https://github.com/1834423612" title="kjch"><img src="https://avatars.githubusercontent.com/u/49981661?v=4" width="42;" alt="kjch"/></a>
<a href="https://github.com/findnr" title="findnr"><img src="https://avatars.githubusercontent.com/u/3909023?v=4" width="42;" alt="findnr"/></a>
<a href="https://github.com/izven" title="Zhang"><img src="https://avatars.githubusercontent.com/u/2149051?v=4" width="42;" alt="Zhang"/></a>
<a href="https://github.com/XYZscratcher" title="XYZ"><img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ"/></a>
<a href="https://github.com/ThanatosXingYu" title="Thanatos"><img src="https://avatars.githubusercontent.com/u/53430376?v=4" width="42;" alt="Thanatos"/></a>
<a href="https://github.com/SuperDiscovery" title="SuperDiscovery"><img src="https://avatars.githubusercontent.com/u/49646863?v=4" width="42;" alt="SuperDiscovery"/></a>
<a href="https://github.com/hua03" title="hua03"><img src="https://avatars.githubusercontent.com/u/19561959?v=4" width="42;" alt="hua03"/></a>
<a href="https://github.com/yanxuplay" title="hupilan"><img src="https://avatars.githubusercontent.com/u/69749541?v=4" width="42;" alt="hupilan"/></a>
<a href="https://github.com/hweining" title="hweining"><img src="https://avatars.githubusercontent.com/u/8973985?v=4" width="42;" alt="hweining"/></a>
<a href="https://github.com/infanx" title="infanx"><img src="https://avatars.githubusercontent.com/u/65985757?v=4" width="42;" alt="infanx"/></a>
<a href="https://github.com/auroraslot" title="irony"><img src="https://avatars.githubusercontent.com/u/48817882?v=4" width="42;" alt="irony"/></a>
<a href="https://github.com/jlchen5" title="jlchen5"><img src="https://avatars.githubusercontent.com/u/61578993?v=4" width="42;" alt="jlchen5"/></a>
<a href="https://github.com/jlchen5" title="J.Chen"><img src="https://avatars.githubusercontent.com/u/61578993?v=4" width="42;" alt="J.Chen"/></a>
<a href="https://github.com/joyfully-W" title="joyfully-W"><img src="https://avatars.githubusercontent.com/u/32212924?v=4" width="42;" alt="joyfully-W"/></a>
<a href="https://github.com/jqzhao7" title="jqzhao"><img src="https://avatars.githubusercontent.com/u/54694535?v=4" width="42;" alt="jqzhao"/></a>
<a href="https://github.com/jussker" title="jussker"><img src="https://avatars.githubusercontent.com/u/33953356?v=4" width="42;" alt="jussker"/></a>
<a href="https://github.com/k983551019" title="k983551019"><img src="https://avatars.githubusercontent.com/u/48147837?v=4" width="42;" alt="k983551019"/></a>
<a href="https://github.com/k983551019" title="Evan-k"><img src="https://avatars.githubusercontent.com/u/48147837?v=4" width="42;" alt="Evan-k"/></a>
<a href="https://github.com/kdxcxs" title="kdxcxs"><img src="https://avatars.githubusercontent.com/u/18746192?v=4" width="42;" alt="kdxcxs"/></a>
<a href="https://github.com/kubeme" title="kubernetes for me"><img src="https://avatars.githubusercontent.com/u/16346220?v=4" width="42;" alt="kubernetes for me"/></a>
<a href="https://github.com/larry-xue" title="larry"><img src="https://avatars.githubusercontent.com/u/48818060?v=4" width="42;" alt="larry"/></a>
<a href="https://github.com/Zeng-qh" title="都一样"><img src="https://avatars.githubusercontent.com/u/40046415?v=4" width="42;" alt="都一样"/></a>
<a href="https://github.com/hua03" title="hua03"><img src="https://avatars.githubusercontent.com/u/19561959?v=4" width="42;" alt="hua03"/></a>
<a href="https://github.com/larry-xue" title="yujian(larry) xue"><img src="https://avatars.githubusercontent.com/u/48818060?v=4" width="42;" alt="yujian(larry) xue"/></a>
<a href="https://github.com/leauny" title="leauny"><img src="https://avatars.githubusercontent.com/u/42369176?v=4" width="42;" alt="leauny"/></a>
<a href="https://github.com/liliangrong777" title="liliangrong777"><img src="https://avatars.githubusercontent.com/u/58727146?v=4" width="42;" alt="liliangrong777"/></a>
<a href="https://github.com/gzttcydxx" title="gzttcydxx"><img src="https://avatars.githubusercontent.com/u/50025185?v=4" width="42;" alt="gzttcydxx"/></a>
<a href="https://github.com/sunny0826" title="Xudong Guo"><img src="https://avatars.githubusercontent.com/u/24563928?v=4" width="42;" alt="Xudong Guo"/></a>
<a href="https://github.com/nodjoy" title="gowshwah"><img src="https://avatars.githubusercontent.com/u/145280043?v=4" width="42;" alt="gowshwah"/></a>
@ -345,41 +366,45 @@ Quick Reference
<a href="https://github.com/gi-b716" title="Gavin"><img src="https://avatars.githubusercontent.com/u/78394473?v=4" width="42;" alt="Gavin"/></a>
<a href="https://github.com/fjqz177" title="fjqz177"><img src="https://avatars.githubusercontent.com/u/83070583?v=4" width="42;" alt="fjqz177"/></a>
<a href="https://github.com/fakevn" title="fakevn"><img src="https://avatars.githubusercontent.com/u/11464386?v=4" width="42;" alt="fakevn"/></a>
<a href="https://github.com/emoji-share" title="emoji-share🤪"><img src="https://avatars.githubusercontent.com/u/192275245?v=4" width="42;" alt="emoji-share🤪"/></a>
<a href="https://github.com/cool9203" title="cool9203"><img src="https://avatars.githubusercontent.com/u/29609607?v=4" width="42;" alt="cool9203"/></a>
<a href="https://github.com/gaoxiaoduan" title="CoderDuan"><img src="https://avatars.githubusercontent.com/u/69953511?v=4" width="42;" alt="CoderDuan"/></a>
<a href="https://github.com/gaoxiaoduan" title="Coder Duan"><img src="https://avatars.githubusercontent.com/u/69953511?v=4" width="42;" alt="Coder Duan"/></a>
<a href="https://github.com/lijc210" title="cizai"><img src="https://avatars.githubusercontent.com/u/10651081?v=4" width="42;" alt="cizai"/></a>
<a href="https://github.com/chyok" title="chyok"><img src="https://avatars.githubusercontent.com/u/32629225?v=4" width="42;" alt="chyok"/></a>
<a href="https://github.com/zlfyuan" title="bgbgPang"><img src="https://avatars.githubusercontent.com/u/19658018?v=4" width="42;" alt="bgbgPang"/></a>
<a href="https://github.com/Lmmmmmm-bb" title="_lmmmmmm"><img src="https://avatars.githubusercontent.com/u/54026110?v=4" width="42;" alt="_lmmmmmm"/></a>
<a href="https://github.com/Zeng-qh" title="都一样"><img src="https://avatars.githubusercontent.com/u/40046415?v=4" width="42;" alt="都一样"/></a>
<a href="https://github.com/binscor" title="Zheng Nai Bin"><img src="https://avatars.githubusercontent.com/u/37325821?v=4" width="42;" alt="Zheng Nai Bin"/></a>
<a href="https://github.com/qwxingzhe" title="行者"><img src="https://avatars.githubusercontent.com/u/7071651?v=4" width="42;" alt="行者"/></a>
<a href="https://github.com/HanaChan233" title="花开花落"><img src="https://avatars.githubusercontent.com/u/75212820?v=4" width="42;" alt="花开花落"/></a>
<a href="https://github.com/lisheng741" title="芦荟柚子茶"><img src="https://avatars.githubusercontent.com/u/53617305?v=4" width="42;" alt="芦荟柚子茶"/></a>
<a href="https://github.com/wangdaodao" title="王叨叨"><img src="https://avatars.githubusercontent.com/u/2317442?v=4" width="42;" alt="王叨叨"/></a>
<a href="https://github.com/rainbowatcher" title="rainbowatcher"><img src="https://avatars.githubusercontent.com/u/42316353?v=4" width="42;" alt="rainbowatcher"/></a>
<a href="https://github.com/HChenX" title="焕晨HChen"><img src="https://avatars.githubusercontent.com/u/123531821?v=4" width="42;" alt="焕晨HChen"/></a>
<a href="https://github.com/LebranceBW" title="落叶乌龟"><img src="https://avatars.githubusercontent.com/u/19501514?v=4" width="42;" alt="落叶乌龟"/></a>
<a href="https://github.com/LongYinStudio" title="敬培全"><img src="https://avatars.githubusercontent.com/u/42208852?v=4" width="42;" alt="敬培全"/></a>
<a href="https://github.com/Fengjing95" title="小枫"><img src="https://avatars.githubusercontent.com/u/51731411?v=4" width="42;" alt="小枫"/></a>
<a href="https://github.com/ZIDOUZI" title="子斗子"><img src="https://avatars.githubusercontent.com/u/53157536?v=4" width="42;" alt="子斗子"/></a>
<a href="https://github.com/LuckyJie12" title="夜未央"><img src="https://avatars.githubusercontent.com/u/102901105?v=4" width="42;" alt="夜未央"/></a>
<a href="https://github.com/lvzhenbo" title="吕振波"><img src="https://avatars.githubusercontent.com/u/32427677?v=4" width="42;" alt="吕振波"/></a>
<a href="https://github.com/kele527" title="吹衣轻飏"><img src="https://avatars.githubusercontent.com/u/345445?v=4" width="42;" alt="吹衣轻飏"/></a>
<a href="https://github.com/lvzhenbo" title="无聊波波"><img src="https://avatars.githubusercontent.com/u/32427677?v=4" width="42;" alt="无聊波波"/></a>
<a href="https://github.com/zxx457" title="zxx457"><img src="https://avatars.githubusercontent.com/u/114141362?v=4" width="42;" alt="zxx457"/></a>
<a href="https://github.com/zhouhw0306" title="zhouhw0306"><img src="https://avatars.githubusercontent.com/u/82752681?v=4" width="42;" alt="zhouhw0306"/></a>
<a href="https://github.com/hiyms" title="yms"><img src="https://avatars.githubusercontent.com/u/84654050?v=4" width="42;" alt="yms"/></a>
<a href="https://github.com/xing133" title="xing133"><img src="https://avatars.githubusercontent.com/u/5336490?v=4" width="42;" alt="xing133"/></a>
<a href="https://github.com/wjjwkwindy" title="Hudson Alen"><img src="https://avatars.githubusercontent.com/u/9508591?v=4" width="42;" alt="Hudson Alen"/></a>
<a href="https://github.com/wannima66" title="tmen"><img src="https://avatars.githubusercontent.com/u/26410255?v=4" width="42;" alt="tmen"/></a>
<a href="https://github.com/swift-fs" title="swift"><img src="https://avatars.githubusercontent.com/u/77133741?v=4" width="42;" alt="swift"/></a>
<a href="https://github.com/swift-fs" title="swift-fs"><img src="https://avatars.githubusercontent.com/u/77133741?v=4" width="42;" alt="swift-fs"/></a>
<a href="https://github.com/suyangzuo" title="suyangzuo"><img src="https://avatars.githubusercontent.com/u/50766353?v=4" width="42;" alt="suyangzuo"/></a>
<a href="https://github.com/Mowmowj" title="nexo"><img src="https://avatars.githubusercontent.com/u/24759562?v=4" width="42;" alt="nexo"/></a>
<a href="https://github.com/ri-fumo" title="ri-fumo"><img src="https://avatars.githubusercontent.com/u/190000479?v=4" width="42;" alt="ri-fumo"/></a>
<a href="https://github.com/phygerr" title="phygerr"><img src="https://avatars.githubusercontent.com/u/42068889?v=4" width="42;" alt="phygerr"/></a>
<a href="https://github.com/openapphub" title="openapphub"><img src="https://avatars.githubusercontent.com/u/175949671?v=4" width="42;" alt="openapphub"/></a>
<a href="https://github.com/onewesong" title="onewesong"><img src="https://avatars.githubusercontent.com/u/17920822?v=4" width="42;" alt="onewesong"/></a>
<a href="https://github.com/miclon-dev" title="miclon-dev"><img src="https://avatars.githubusercontent.com/u/111753685?v=4" width="42;" alt="miclon-dev"/></a>
<a href="https://github.com/lykjjj" title="lykjjj"><img src="https://avatars.githubusercontent.com/u/58510058?v=4" width="42;" alt="lykjjj"/></a>
<a href="https://github.com/lozhu20" title="lozhu"><img src="https://avatars.githubusercontent.com/u/44923922?v=4" width="42;" alt="lozhu"/></a>
<a href="https://github.com/liliangrong777" title="liliangrong777"><img src="https://avatars.githubusercontent.com/u/58727146?v=4" width="42;" alt="liliangrong777"/></a>
<a href="https://github.com/leauny" title="leauny"><img src="https://avatars.githubusercontent.com/u/42369176?v=4" width="42;" alt="leauny"/></a>
<a href="https://github.com/y52y" title="Zyj"><img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj"/></a>
<a href="https://github.com/isecret" title="Mao Wang"><img src="https://avatars.githubusercontent.com/u/15724152?v=4" width="42;" alt="Mao Wang"/></a>
<a href="https://github.com/likeshop-github" title="likeshop技术社区"><img src="https://avatars.githubusercontent.com/u/77180968?v=4" width="42;" alt="likeshop技术社区"/></a>
<a href="https://github.com/lvelvee" title="Lve Lvee"><img src="https://avatars.githubusercontent.com/u/25785753?v=4" width="42;" alt="Lve Lvee"/></a>
<a href="https://github.com/likeadmin-likeshop" title="likeadmin通过管理后台-likeshop全开源商城"><img src="https://avatars.githubusercontent.com/u/77180968?v=4" width="42;" alt="likeadmin通过管理后台-likeshop全开源商城"/></a>
<a href="https://github.com/Lihuagreek" title="Lihuagreek"><img src="https://avatars.githubusercontent.com/u/51040740?v=4" width="42;" alt="Lihuagreek"/></a>
<a href="https://github.com/LightQuanta" title="Light_Quanta"><img src="https://avatars.githubusercontent.com/u/18213217?v=4" width="42;" alt="Light_Quanta"/></a>
<a href="https://github.com/JetSquirrel" title="JetSquirrel"><img src="https://avatars.githubusercontent.com/u/20291255?v=4" width="42;" alt="JetSquirrel"/></a>
@ -393,6 +418,7 @@ Quick Reference
<a href="https://github.com/demigodliu" title="DemigodLiu"><img src="https://avatars.githubusercontent.com/u/30372735?v=4" width="42;" alt="DemigodLiu"/></a>
<a href="https://github.com/dasferco" title="Dasferco"><img src="https://avatars.githubusercontent.com/u/92622404?v=4" width="42;" alt="Dasferco"/></a>
<a href="https://github.com/Damao2250" title="Damao"><img src="https://avatars.githubusercontent.com/u/19251992?v=4" width="42;" alt="Damao"/></a>
<a href="https://github.com/daining810" title="dain"><img src="https://avatars.githubusercontent.com/u/125986872?v=4" width="42;" alt="dain"/></a>
<a href="https://github.com/DEEMO101" title="DEEMO101"><img src="https://avatars.githubusercontent.com/u/35123091?v=4" width="42;" alt="DEEMO101"/></a>
<a href="https://github.com/ohto-ai" title="Choo"><img src="https://avatars.githubusercontent.com/u/46275725?v=4" width="42;" alt="Choo"/></a>
<a href="https://github.com/CharlotteZeng" title="hanchZ"><img src="https://avatars.githubusercontent.com/u/19461184?v=4" width="42;" alt="hanchZ"/></a>
@ -403,10 +429,13 @@ Quick Reference
<a href="https://github.com/BlacAmDK" title="BlacAmDK"><img src="https://avatars.githubusercontent.com/u/10971397?v=4" width="42;" alt="BlacAmDK"/></a>
<a href="https://github.com/gitchenze" title="Aze"><img src="https://avatars.githubusercontent.com/u/13357869?v=4" width="42;" alt="Aze"/></a>
<a href="https://github.com/dousha0w0" title="dousha0w0"><img src="https://avatars.githubusercontent.com/u/52566311?v=4" width="42;" alt="dousha0w0"/></a>
<a href="https://github.com/JinchuanL" title="ANDY"><img src="https://avatars.githubusercontent.com/u/68026794?v=4" width="42;" alt="ANDY"/></a>
<a href="https://github.com/13812700839" title="花殇"><img src="https://avatars.githubusercontent.com/u/58072506?v=4" width="42;" alt="花殇"/></a>
<a href="https://github.com/y52y" title="Zyj"><img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj"/></a>
<a href="https://github.com/Leaderzhangyi" title="ZinkCas"><img src="https://avatars.githubusercontent.com/u/46915666?v=4" width="42;" alt="ZinkCas"/></a>
<a href="https://github.com/zhu0629" title="zhucong"><img src="https://avatars.githubusercontent.com/u/13188450?v=4" width="42;" alt="zhucong"/></a>
<a href="https://github.com/yikuaibro" title="yikuaibro"><img src="https://avatars.githubusercontent.com/u/44493045?v=4" width="42;" alt="yikuaibro"/></a>
<a href="https://github.com/HeZephyr" title="Zephyr He"><img src="https://avatars.githubusercontent.com/u/67893254?v=4" width="42;" alt="Zephyr He"/></a>
<a href="https://github.com/dfshizhiqiang" title="Zech"><img src="https://avatars.githubusercontent.com/u/7030019?v=4" width="42;" alt="Zech"/></a>
<a href="https://github.com/Yo-gurts" title="Yogurt"><img src="https://avatars.githubusercontent.com/u/44612841?v=4" width="42;" alt="Yogurt"/></a>
<a href="https://github.com/hi-liyan" title="李李李"><img src="https://avatars.githubusercontent.com/u/40056492?v=4" width="42;" alt="李李李"/></a>
@ -429,6 +458,7 @@ Quick Reference
<a href="https://github.com/mo3et" title="Monet Lee"><img src="https://avatars.githubusercontent.com/u/34803812?v=4" width="42;" alt="Monet Lee"/></a>
<a href="https://github.com/Moeyuuko" title="Moeyuuko"><img src="https://avatars.githubusercontent.com/u/14266681?v=4" width="42;" alt="Moeyuuko"/></a>
<a href="https://github.com/malcolmyu" title="Minghao Yu"><img src="https://avatars.githubusercontent.com/u/3203962?v=4" width="42;" alt="Minghao Yu"/></a>
<a href="https://github.com/Mieriki" title="Mieriki"><img src="https://avatars.githubusercontent.com/u/142009318?v=4" width="42;" alt="Mieriki"/></a>
<a href="https://github.com/mariuszmichalowski" title="Mariusz Michalowski"><img src="https://avatars.githubusercontent.com/u/92091891?v=4" width="42;" alt="Mariusz Michalowski"/></a><!--GAMFC-END-->
[贡献者](https://github.com/jaywcjlove/reference/graphs/contributors)列表,由 [contributors](https://github.com/jaywcjlove/github-action-contributors) 根据提交次数的先后顺序自动生成
@ -440,8 +470,7 @@ Quick Reference
由于中国国内访问,时常打不开,你可以访问下面镜像网站(国内打不开的不再收录)。推荐自己的[镜像网站](https://github.com/jaywcjlove/reference/discussions/206#discussion-4625735)
[dev.bi](https://dev.bi)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[server.wiki](https://ref.server.wiki)<!--rehype:target=_blank-->
[nihaosi.com](https://refs.nihaosi.com)<!--rehype:target=_blank-->
[docflow.cn](https://ref.docflow.cn)<!--rehype:target=_blank-->
[quickref.cn](https://quickref.cn)<!--rehype:target=_blank-->
[aibk.cn](https://quickref.aibk.cn)<!--rehype:target=_blank-->
[ecdata.cn](http://ref.ecdata.cn)<!--rehype:target=_blank-->
@ -449,7 +478,6 @@ Quick Reference
[qiubit.cc](http://ref.qiubit.cc)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[guoxudong.io](https://reference.guoxudong.io/)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[moeyuuko.com](https://ref.moeyuuko.com/)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[defense.ink](https://ref.defense.ink)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[terryyoung.cn](http://ref.terryyoung.cn/)<!--rehype:target=_blank&class=contributing&data-info=👆每周一三五自动同步-->
[quickref.binscor.top](https://quickref.binscor.top)<!--rehype:target=_blank&data-info=👆每天自动同步-->
[srebro.cn](https://ref.srebro.cn)<!--rehype:target=_blank&data-info=👆每天自动同步-->
@ -462,37 +490,25 @@ Quick Reference
[dbyun.net](https://www.dbyun.net/reference/index.html)<!--rehype:target=_blank-->
[if010.com](https://quickref.if010.com/)<!--rehype:target=_blank-->
[isteed.cc](https://ref.isteed.cc/)<!--rehype:target=_blank-->
[1han.wiki](https://code.1han.wiki/)<!--rehype:target=_blank-->
[linzhe.top](https://linzhe.top/)<!--rehype:target=_blank-->
[xushanxiang.com](https://xushanxiang.com/ref/)<!--rehype:target=_blank-->
[surcode.cn](https://ref.surcode.cn)<!--rehype:target=_blank-->
[cms.im](https://quickref.cms.im/)<!--rehype:target=_blank-->
[nuomiphp.com](https://reference.tool.nuomiphp.com/)<!--rehype:target=_blank-->
[eryajf.net](https://ref.eryajf.net/)<!--rehype:target=_blank-->
[kjchmc.cn](https://ref.kjchmc.cn/)<!--rehype:target=_blank-->
[aoh.cc](https://aoh.cc/)<!--rehype:target=_blank-->
[quickreference.pages.dev](https://quickreference.pages.dev/)<!--rehype:target=_blank-->
[btaw.cn](https://btaw.cn/qr)<!--rehype:target=_blank&class=contributing-->
[lzw.me](https://lzw.me/x/reference/)<!--rehype:target=_blank-->
[itcent.cn](https://code.itcent.cn/)<!--rehype:target=_blank-->
[coolxy.top](https://refer.coolxy.top)<!--rehype:target=_blank-->
[notes-bin.top](https://notes-bin.top)<!--rehype:target=_blank-->
[tangcc.cn](https://web.tangcc.cn)<!--rehype:target=_blank-->
[xadocker.cn](https://reference.xadocker.cn)<!--rehype:target=_blank-->
[trtu.com.cn](https://reference.trtu.com.cn)<!--rehype:target=_blank-->
[lzzzt.cn](https://ref.lzzzt.cn)<!--rehype:target=_blank-->
[kclouder.cn](https://www.kclouder.cn/reference)<!--rehype:target=_blank-->
[djcoder.com](https://doc.djcoder.com)<!--rehype:target=_blank-->
[qirishuzhai.com](http://qirishuzhai.com/quickref)<!--rehype:target=_blank-->
[longdada.me](https://ref.longdada.me)<!--rehype:target=_blank-->
[xalaok.top](https://ref.xalaok.top)<!--rehype:target=_blank-->
[zhangyuanqian.top](https://reference.zhangyuanqian.top/)<!--rehype:target=_blank-->
[sosloli.com](https://ref.sosloli.com)<!--rehype:target=_blank-->
[chenze.cloud](https://quick.chenze.cloud)<!--rehype:target=_blank-->
[ref.v-ta.com](https://ref.v-ta.com)<!--rehype:target=_blank-->
[hao.kim](https://ref.hao.kim)<!--rehype:target=_blank-->
[tool.sakura.vin](https://tool.sakura.vin/ref/)<!--rehype:target=_blank-->
[guoyaxue.top](https://reference.guoyaxue.top/)<!--rehype:target=_blank-->
[chenchen.site](https://img.chenchen.site/reference/)<!--rehype:target=_blank-->
[jgeek.cn](http://reference.jgeek.cn/)<!--rehype:target=_blank-->
[itzcy.com](https://reference.itzcy.com/)<!--rehype:target=_blank-->
@ -508,21 +524,19 @@ Quick Reference
[likui.info](https://r.likui.info)<!--rehype:target=_blank-->
[ruiange.work](https://code.ruiange.work/)<!--rehype:target=_blank-->
[denganliang.com](https://ref.denganliang.com)<!--rehype:target=_blank-->
[coderjia.cn](https://refer.coderjia.cn)<!--rehype:target=_blank-->
[ivanz.cc](https://ref.ivanz.cc)<!--rehype:target=_blank-->
[dev6.site](https://ref.dev6.site/)<!--rehype:target=_blank-->
[mingming.dev](https://ref.mingming.dev)<!--rehype:target=_blank-->
[clf.lol](https://ref.clf.lol/)<!--rehype:target=_blank-->
[zishu.me](https://ref.zishu.me/)<!--rehype:target=_blank-->
[sucan2233.cn](http://reference.sucan2233.cn)<!--rehype:target=_blank-->
[reference-bk9.pages.dev](https://reference-bk9.pages.dev/)<!--rehype:target=_blank&class=contributing&data-info=👆自动实时同步-->
[pages.dev](https://reference-bk9.pages.dev/)<!--rehype:target=_blank&class=contributing&data-info=👆自动实时同步-->
[hrzweb.xyz](https://r.hrzweb.xyz)<!--rehype:target=_blank-->
[bobh.cool](https://quickref.bobh.cool)<!--rehype:target=_blank-->
[tangwudi.com](https://doc.tangwudi.com)<!--rehype:target=_blank-->
[alomerry.com](https://ref.alomerry.com)<!--rehype:target=_blank-->
[osz.icu](https://ref.osz.icu/)<!--rehype:target=_blank-->
[ylmty.cc](https://docs.ylmty.cc)<!--rehype:target=_blank-->
[g31.top](https://ref.g31.top/)<!--rehype:target=_blank-->
[kfele.asia](https://ref.kfele.asia/)<!--rehype:target=_blank-->
[9up.dev](https://devref.9up.dev)<!--rehype:target=_blank-->
[cizai.io](https://reference.cizai.io)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[docs.willxup.top](https://docs.willxup.top)<!--rehype:target=_blank-->
@ -534,14 +548,74 @@ Quick Reference
[maoo.me](https://note.maoo.me)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[deyout.com](https://ref.deyout.com)<!--rehype:target=_blank-->
[xod.cc](https://ref.xod.cc)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[reference.const.team](https://reference.const.team)<!--rehype:target=_blank-->
[const.team](https://reference.const.team)<!--rehype:target=_blank-->
[jhao.me](http://reference.jhao.me/)<!--rehype:target=_blank-->
[7yueee.cn](https://memo.7yueee.cn/)<!--rehype:target=_blank-->
[liamng.top](https://refer.liamng.top/)<!--rehype:target=_blank-->
[maisblog.cn](https://reference.maisblog.cn/)<!--rehype:target=_blank-->
[ruochen.net](https://dev.ruochen.net/)<!--rehype:target=_blank-->
[zcsk18.cn](https://reference.zcsk18.cn/)<!--rehype:target=_blank-->
[doraemon.press](https://reference.doraemon.press/)<!--rehype:target=_blank-->
[foreverlink.love](https://reference.foreverlink.love)<!--rehype:target=_blank-->
[94vessel.com](https://book.94vessel.com)<!--rehype:target=_blank-->
[hhxyrk.icu](http://hhxy.hhxyrk.icu/)<!--rehype:target=_blank&class=contributing&data-info=👆每天自动同步-->
[vhcffh.com](https://docs.vhcffh.com)<!--rehype:target=_blank-->
[magese.com](https://ref.magese.com)<!--rehype:target=_blank-->
[childish.vip](https://reference.childish.vip)<!--rehype:target=_blank-->
[hackshen.com](https://reference.hackshen.com)<!--rehype:target=_blank-->
[afetera.top](https://note.afetera.top)<!--rehype:target=_blank-->
[trtuaazz.com](https://reference.trtuaazz.com)<!--rehype:target=_blank-->
[anhaoyang.com](http://dev-doc.anhaoyang.com/)<!--rehype:target=_blank-->
[xxcxx.lat](https://xxcxx.lat/)<!--rehype:target=_blank-->
[fishlee.net](https://cr.fishlee.net/)<!--rehype:target=_blank-->
<!--rehype:class=home-card home-links-->
如果你有资源,可以很方便[部署 web 版](https://github.com/jaywcjlove/reference/issues/102#issue-1451649637),这非常简单,只需要克隆 [gh-pages](https://github.com/jaywcjlove/reference/tree/gh-pages) 分支代码到你的静态服务就可以了,还可以使用 [docker](https://hub.docker.com/r/wcjiang/reference) 快捷部署 web 版。
## 其它资源
<!--rehype:wrap-style=text-align: center;max-width: 650px;margin: 0 auto;&class=home-title-reset-->
- [Quick Reference for VSCode](https://marketplace.visualstudio.com/items?itemName=jackiotyu.quick-reference) 由 [jackiotyu](https://github.com/jackiotyu/vscode-quick-reference) 提供
## 赞助支持
<!--rehype:wrap-style=text-align: center;max-width: 650px;margin: 0 auto;&class=home-title-reset-->
非常感谢那些一直支持我开源工作的朋友们。如果您对我的工作感到满意,可以选择在[这里进行赞助](https://wangchujiang.com/#/sponsor)<!--rehype:target=_blank-->。如果目前经济上不宽裕,也可以通过下载并使用我开发的 [macOS 应用](https://wangchujiang.com/#/app)<!--rehype:target=_blank-->来支持我。以下是我个人开发的 macOS 应用:
<p style="display: inline-block">
<a target="_blank" href="https://wangchujiang.com/key-clicker/" title="KeyClicker for macOS"><img align="center" alt="KeyClicker" height="50" width="50" src="https://github.com/user-attachments/assets/5a19fcb9-cb81-4855-b4ea-31c604d9612a"></a>
<a target="_blank" href="https://wangchujiang.com/daybar/" title="DayBar for macOS"><img align="center" alt="DayBar" height="50" width="50" src="https://github.com/user-attachments/assets/b67d4a2e-92e2-4d8c-8c6f-2a1eb3e2fa93"></a>
<a target="_blank" href="https://wangchujiang.com/iconed/" title="Iconed for macOS"><img align="center" alt="Iconed" height="50" width="50" src="https://github.com/user-attachments/assets/8a35dc7b-4faf-4e2a-9311-f66d6844a896"></a>
<a target="_blank" href="https://wangchujiang.com/rightmenu-master/" title="RightMenu Master for macOS"><img align="center" alt="RightMenu Master" height="50" width="50" src="https://github.com/user-attachments/assets/39a76541-71bf-4de7-a01c-c62f0557dff5"></a>
<a target="_blank" href="https://wangchujiang.com/paste-quick/" title="Paste Quick for macOS"><img align="center" alt="Quick RSS" height="50" width="50" src="https://github.com/user-attachments/assets/bdaad5b7-9810-44ce-8f17-8410864465d2"></a>
<a target="_blank" href="https://wangchujiang.com/quick-rss/" title="Quick RSS for macOS/iOS"><img align="center" alt="Quick RSS" height="50" width="50" src="https://github.com/user-attachments/assets/374106b5-a448-4d1d-9ccb-b04b6bc681ed"></a>
<a target="_blank" href="https://wangchujiang.com/web-serve/" title="Web Serve for macOS"><img align="center" alt="Web Serve" height="50" width="50" src="https://github.com/user-attachments/assets/e1d9f76f-0f3d-4ba5-8a15-253ee173bb1c"></a>
<a target="_blank" href="https://wangchujiang.com/copybook-generator/" title="Copybook Generator for macOS/iOS"><img align="center" alt="Copybook Generator" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/b90e42ff-158b-4534-82ca-5898fd0e8d73"></a>
<a target="_blank" href="https://wangchujiang.com/devtutor/" title="DevTutor for macOS/iOS"><img align="center" alt="DevTutor for SwiftUI" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/f15c154d-0192-48eb-8e0e-9e245ffd974a"></a>
<a target="_blank" href="https://wangchujiang.com/regex-mate/" title="RegexMate for macOS/iOS"><img align="center" alt="RegexMate" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/aabe5aa9-9a96-4390-8bed-c3e4023d0dea"></a>
<a target="_blank" href="https://wangchujiang.com/time-passage/" title="Time Passage for macOS/iOS"><img align="center" alt="Time Passage" height="50" width="50" src="https://github.com/jaywcjlove/time-passage/assets/1680273/6f30e429-e6f3-4dbe-9921-a5effe2a05e9"></a>
<a target="_blank" href="https://wangchujiang.com/IconizeFolder/" title="IconizeFolder for macOS"><img align="center" alt="Iconize Folder" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/fa9d8b9c-1e51-4ded-877c-fa5b21c47220"></a>
<a target="_blank" href="https://wangchujiang.com/TextSoundSaver/" title="Textsound Saver for macOS/iOS"><img align="center" alt="Textsound Saver" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/0595e842-980b-4574-8891-a8ba853a08be"></a>
<a target="_blank" href="https://wangchujiang.com/create-custom-symbols/" title="Create Custom Symbols for macOS"><img align="center" alt="Create Custom Symbols" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/8cd022ce-a3f1-4e89-b7c6-6fbd0d4db77c"></a>
<a target="_blank" href="https://wangchujiang.com/DevHub/" title="DevHub for macOS"><img align="center" alt="DevHub" height="50" width="50" src="https://github.com/user-attachments/assets/4a44a4fd-67ce-430b-af0a-72f18feaa47d"></a>
<a target="_blank" href="https://wangchujiang.com/ResumeRevise/" title="Resume Revise for macOS"><img align="center" alt="Resume Revise" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/c9954a20-1905-48de-bdf8-d71837974aa2"></a>
<a target="_blank" href="https://wangchujiang.com/palette-genius/" title="Palette Genius for macOS"><img align="center" alt="Palette Genius" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/27340413-d355-45b2-8f6f-6ac37682d957"></a>
<a target="_blank" href="https://wangchujiang.com/symbol-scribe/" title="Symbol Scribe for macOS"><img align="center" alt="Symbol Scribe" height="50" width="50" src="https://github.com/jaywcjlove/jaywcjlove/assets/1680273/c7249f05-fa70-4def-a1e9-571d5f171fc9"></a>
</p>
<!--rehype:style=padding-top:1rem;max-width: 520px;margin: 0 auto;-->
<!--rehype:ignore:start-->
## 开发
```sh
# 克隆仓库
$ git clone https://github.com/jaywcjlove/reference.git
$ npm install # 安装依赖
$ npm start # 启动监听,实时生成 HTML
$ open dist/index.html # 在浏览器打开生成 HTML
```
## License
MIT © [Kenny Wong](https://github.com/jaywcjlove)

2
assets/canvas.svg Normal file
View File

@ -0,0 +1,2 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="1em" height="1em"><path d="M861.098667 736.554667l73.472 146.261333a38.4 38.4 0 0 1-1.706667 37.546667 38.826667 38.826667 0 0 1-32.981333 18.304H512a38.741333 38.741333 0 0 1-33.066667-18.261334 38.4 38.4 0 0 1-1.664-37.589333l10.752-21.333333H221.098667a58.026667 58.026667 0 0 1-58.197334-57.941334V474.453333C116.096 439.168 85.333333 383.829333 85.333333 321.024 85.333333 214.570667 172.373333 128 279.253333 128c63.146667 0 118.698667 30.592 154.154667 77.226667h369.493333a58.026667 58.026667 0 0 1 58.197334 57.898666v473.429334zm-155.178667-136.192-131.157333 261.12h262.357333l-131.2-261.12zM240.469333 510.122667v274.133333h286.336l144.426667-287.488c13.184-26.154667 56.234667-26.154667 69.376 0l42.922667 85.333333V282.453333h-314.282667a192.64 192.64 0 0 1-52.992 174.933334 194.773333 194.773333 0 0 1-175.786667 52.778666zm38.826667-73.301334a116.053333 116.053333 0 0 0 116.352-115.797333A116.053333 116.053333 0 0 0 279.253333 205.226667a116.053333 116.053333 0 0 0-116.352 115.797333 116.053333 116.053333 0 0 0 116.352 115.797333z"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

3
assets/github-cli.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1984 2048" height="1em" width="1em">
<path d="M663.6 1589.6c0 8-9.2 14.4-20.8 14.4-13.2 1.2-22.4-5.2-22.4-14.4 0-8 9.2-14.4 20.8-14.4 12-1.2 22.4 5.2 22.4 14.4zm-124.4-18c-2.8 8 5.2 17.2 17.2 19.6 10.4 4 22.4 0 24.8-8s-5.2-17.2-17.2-20.8c-10.4-2.8-22 1.2-24.8 9.2zm176.8-6.8c-11.6 2.8-19.6 10.4-18.4 19.6 1.2 8 11.6 13.2 23.6 10.4 11.6-2.8 19.6-10.4 18.4-18.4-1.2-7.6-12-12.8-23.6-11.6zM979.2 32C424.4 32 0 453.2 0 1008c0 443.6 279.2 823.2 678 956.8 51.2 9.2 69.2-22.4 69.2-48.4 0-24.8-1.2-161.6-1.2-245.6 0 0-280 60-338.8-119.2 0 0-45.6-116.4-111.2-146.4 0 0-91.6-62.8 6.4-61.6 0 0 99.6 8 154.4 103.2 87.6 154.4 234.4 110 291.6 83.6 9.2-64 35.2-108.4 64-134.8-223.6-24.8-449.2-57.2-449.2-442 0-110 30.4-165.2 94.4-235.6-10.4-26-44.4-133.2 10.4-271.6 83.6-26 276 108 276 108 80-22.4 166-34 251.2-34s171.2 11.6 251.2 34c0 0 192.4-134.4 276-108 54.8 138.8 20.8 245.6 10.4 271.6 64 70.8 103.2 126 103.2 235.6 0 386-235.6 416.8-459.2 442 36.8 31.6 68 91.6 68 185.6 0 134.8-1.2 301.6-1.2 334.4 0 26 18.4 57.6 69.2 48.4 400-132.8 671.2-512.4 671.2-956 0-554.8-450-976-1004.8-976zM388.8 1411.6c-5.2 4-4 13.2 2.8 20.8 6.4 6.4 15.6 9.2 20.8 4 5.2-4 4-13.2-2.8-20.8-6.4-6.4-15.6-9.2-20.8-4zm-43.2-32.4c-2.8 5.2 1.2 11.6 9.2 15.6 6.4 4 14.4 2.8 17.2-2.8 2.8-5.2-1.2-11.6-9.2-15.6-8-2.4-14.4-1.2-17.2 2.8zm129.6 142.4c-6.4 5.2-4 17.2 5.2 24.8 9.2 9.2 20.8 10.4 26 4 5.2-5.2 2.8-17.2-5.2-24.8-8.8-9.2-20.8-10.4-26-4zm-45.6-58.8c-6.4 4-6.4 14.4 0 23.6 6.4 9.2 17.2 13.2 22.4 9.2 6.4-5.2 6.4-15.6 0-24.8-5.6-9.2-16-13.2-22.4-8z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

8
assets/jupyter.svg Normal file
View File

@ -0,0 +1,8 @@
<svg viewBox="0 0 256 300" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" height="1em" width="1em">
<path d="M10.584 156.41v-32.753h7.136v35.256a21.302 21.302 0 0 1-4.686 15.976A18.213 18.213 0 0 1 .89 179.31l-.745-5.325a11.61 11.61 0 0 0 7.775-2.982c1.917-2.237 2.663-5.273 2.663-14.592Zm53.22-4.201c0 3.994 0 7.562.32 10.651h-6.338l-.426-6.337a14.752 14.752 0 0 1-12.941 7.242c-6.178 0-13.527-3.355-13.527-17.041v-22.74h7.136v21.302c0 7.402 2.29 12.355 8.734 12.355a9.958 9.958 0 0 0 10.065-10.065v-23.859h7.136v28.279l-.16.213Zm13.527-15.555c0-4.953 0-9-.32-12.675h6.39l.32 6.657a15.445 15.445 0 0 1 13.953-7.562c9.48 0 16.616 7.935 16.616 19.757 0 13.953-8.574 20.877-17.84 20.877a13.794 13.794 0 0 1-12.09-6.125v21.302h-7.03v-42.231Zm7.03 10.385c.019.966.126 1.928.319 2.875a10.97 10.97 0 0 0 10.651 8.255c7.509 0 11.93-6.124 11.93-15.018 0-7.775-4.155-14.432-11.664-14.432a12.249 12.249 0 0 0-11.237 11.663v6.657Zm42.644-23.095 8.574 22.953a132.673 132.673 0 0 1 2.503 7.935c.745-2.344 1.544-5.326 2.503-8.095l7.775-22.793h7.509l-10.651 27.692c-5.326 13.314-8.574 20.184-13.474 24.338a19.385 19.385 0 0 1-8.734 4.58l-1.757-5.965a18.906 18.906 0 0 0 6.23-3.461 21.302 21.302 0 0 0 6.019-7.882c.29-.53.488-1.107.585-1.704a6.125 6.125 0 0 0-.479-1.864l-14.485-35.84h7.775l.107.106Zm47.809-11.173v11.183h10.225v5.326h-10.225v20.983c0 4.793 1.384 7.562 5.325 7.562 1.4.023 2.796-.138 4.154-.48l.32 5.326a17.575 17.575 0 0 1-6.338.959 9.906 9.906 0 0 1-7.722-2.983 14.326 14.326 0 0 1-2.77-10.118v-21.302h-6.07V123.9h6.177v-9.48l6.924-1.65Zm23.37 31.877a12.516 12.516 0 0 0 13.474 13.473 25.988 25.988 0 0 0 10.651-2.024l1.225 5.326a31.953 31.953 0 0 1-13.048 2.396 18.106 18.106 0 0 1-19.278-19.598c0-11.716 6.976-20.982 18.373-20.982 12.781 0 15.977 11.183 15.977 18.32.068 1.1.068 2.202 0 3.302h-27.533l.16-.213Zm20.877-5.326a10.064 10.064 0 0 0-9.906-11.503 11.77 11.77 0 0 0-10.917 11.503h20.823Zm17.324-3.269c0-4.58 0-8.52-.32-12.142h6.391v7.616h.32a11.77 11.77 0 0 1 10.651-8.521 7.775 7.775 0 0 1 2.024 0v6.657a10.645 10.645 0 0 0-2.45 0 9.958 9.958 0 0 0-9.533 9.053 19.772 19.772 0 0 0-.32 3.302v20.716h-7.029v-26.627l.266-.054Z" fill="#4E4E4E"/>
<path d="M233.258 16.962a18.053 18.053 0 1 1-18.8-16.935 17.84 17.84 0 0 1 18.8 16.935Z" fill="#767677"/>
<path d="M127.953 225.541c-47.93 0-90.055-17.201-111.836-42.604a119.239 119.239 0 0 0 223.672 0c-21.728 25.403-63.693 42.604-111.836 42.604Zm0-165.187c47.93 0 90.055 17.202 111.836 42.604a119.243 119.243 0 0 0-111.836-77.88 119.239 119.239 0 0 0-111.836 77.88c21.781-25.455 63.694-42.604 111.836-42.604Z" fill="#F37726"/>
<path d="M61.972 274.975a22.74 22.74 0 1 1-23.699-21.302 22.527 22.527 0 0 1 23.699 21.302Z" fill="#9E9E9E"/>
<path d="M21.564 54.565a13.102 13.102 0 1 1 12.728-13.633 13.26 13.26 0 0 1-12.728 13.633Z" fill="#616262"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

5
assets/minio.svg Normal file
View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 162.612 24.465" xmlns:v="https://vecta.io/nano">
<path
d="M52.751.414h9.108v23.63h-9.108zM41.711.74l-18.488 9.92a.919.919 0 0 1-.856 0L3.879.74A2.808 2.808 0 0 0 2.558.414h-.023A2.4 2.4 0 0 0 0 2.641v21.376h9.1V13.842a.918.918 0 0 1 1.385-.682l10.361 5.568a3.634 3.634 0 0 0 3.336.028l10.933-5.634a.917.917 0 0 1 1.371.69v10.205h9.1V2.641A2.4 2.4 0 0 0 43.055.414h-.023a2.808 2.808 0 0 0-1.321.326zm65.564-.326h-9.237v10.755a.913.913 0 0 1-1.338.706L72.762.675a2.824 2.824 0 0 0-1.191-.261h-.016a2.4 2.4 0 0 0-2.535 2.227v21.377h9.163V13.275a.914.914 0 0 1 1.337-.707l24.032 11.2a2.813 2.813 0 0 0 1.188.26 2.4 2.4 0 0 0 2.535-2.227zm7.161 23.63V.414h4.191v23.63zm28.856.421c-11.274 0-19.272-4.7-19.272-12.232C124.02 4.741 132.066 0 143.292 0s19.32 4.7 19.32 12.233-7.902 12.232-19.32 12.232zm0-21.333c-8.383 0-14.84 3.217-14.84 9.1 0 5.926 6.457 9.1 14.84 9.1s14.887-3.174 14.887-9.1c0-5.883-6.504-9.1-14.887-9.1z"
fill="#c72c48" />
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

5
assets/powershell.svg Normal file
View File

@ -0,0 +1,5 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" height="1em" width="1em">
<path d="m64 10.5-7.11 42a4.64 4.64 0 0 1-4.62 3.5H4.44C2.24 56 .72 54.43 1 52.5l7.11-42a3.93 3.93 0 0 1 1.3-2.19A5 5 0 0 1 12.73 7h47.83a3.25 3.25 0 0 1 3.35 2.32A2.73 2.73 0 0 1 64 10.5z" fill="#0078d7"/>
<path fill="#fff" d="M17.72 49.6a2.43 2.43 0 0 1-1.45-4.38l20.54-15.11L22 16.18a2.42 2.42 0 0 1-.1-3.43 2.45 2.45 0 0 1 3.45-.1l17 15.92a2.42 2.42 0 0 1-.22 3.72L19.17 49.13a2.44 2.44 0 0 1-1.45.47zm26.87.4H33.41a2.5 2.5 0 0 1 0-5h11.18a2.5 2.5 0 0 1 0 5z"/>
<path fill="#fff" d="m63.91 9.32-7.06 42.27a4 4 0 0 1-.95 2C44.76 42.64 21.52 19.89 9.41 8.31A5 5 0 0 1 12.73 7h47.83a3.25 3.25 0 0 1 3.35 2.32z" opacity=".25"/>
</svg>

After

Width:  |  Height:  |  Size: 760 B

25
assets/sqlite.svg Normal file
View File

@ -0,0 +1,25 @@
<svg viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" height="1em" width="1em">
<g clip-path="url(#a)">
<path
d="M60 0C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h108.46c-1.779-5.243-3.172-13.546-3.956-23.023-.675-8.152-.899-17.171-.525-25.87-.101-1.286-.162-2.122-.162-2.122s-1.874-12.61-4.571-22.969c-1.194-4.598-2.553-8.756-3.98-11.166-.735-1.243.08-6.351 2.131-13.916 1.2 2.071 6.263 10.932 7.28 13.788 1.145 3.228 1.385 4.153 1.385 4.153s-2.777-14.272-7.333-22.6a303.417 303.417 0 0 1 3.542-11.066c1.578 2.767 5.165 9.121 6.461 12.132.12.279.228.541.307.757.184.522.339.965.478 1.371.731 2.118.909 2.792.909 2.792s-.271-1.386-.775-3.524c-.213-.903-.478-1.965-.773-3.096-1.148-4.409-2.892-10.181-5.125-14.704 5.732-29.794 24.181-68.807 44.057-89.868 1.713-1.814 3.434-3.511 5.158-5.041 11.619-10.3 23.392-13.78 33.115-5.118 7.034 6.267 9.912 14.925 9.917 24.89V60c0-33.137-26.863-60-60-60H60Z"
fill="#D9D9D9" />
<path
d="M60 0C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h108.46c-1.779-5.243-3.172-13.546-3.956-23.023-.675-8.152-.899-17.171-.525-25.87-.101-1.286-.162-2.122-.162-2.122s-1.874-12.61-4.571-22.969c-1.194-4.598-2.553-8.756-3.98-11.166-.735-1.243.08-6.351 2.131-13.916 1.2 2.071 6.263 10.932 7.28 13.788 1.145 3.228 1.385 4.153 1.385 4.153s-2.777-14.272-7.333-22.6a303.417 303.417 0 0 1 3.542-11.066c1.578 2.767 5.165 9.121 6.461 12.132.12.279.228.541.307.757.184.522.339.965.478 1.371.731 2.118.909 2.792.909 2.792s-.271-1.386-.775-3.524c-.213-.903-.478-1.965-.773-3.096-1.148-4.409-2.892-10.181-5.125-14.704 5.732-29.794 24.181-68.807 44.057-89.868 1.713-1.814 3.434-3.511 5.158-5.041 11.619-10.3 23.392-13.78 33.115-5.118 7.034 6.267 9.912 14.925 9.917 24.89V60c0-33.137-26.863-60-60-60H60Z"
fill="url(#b)" />
<path
d="M246.083 36.91c-9.723-8.662-21.496-5.183-33.115 5.118-1.724 1.53-3.445 3.227-5.158 5.04-19.876 21.063-38.325 60.075-44.057 89.869 2.233 4.523 3.977 10.295 5.125 14.704.295 1.131.56 2.193.773 3.096.504 2.138.775 3.524.775 3.524s-.178-.674-.909-2.792c-.139-.406-.294-.849-.478-1.371a15.467 15.467 0 0 0-.307-.757c-1.296-3.011-4.883-9.365-6.461-12.132a303.417 303.417 0 0 0-3.542 11.066c4.556 8.328 7.333 22.6 7.333 22.6s-.24-.925-1.385-4.153c-1.017-2.856-6.08-11.717-7.28-13.788-2.051 7.565-2.866 12.673-2.131 13.916 1.427 2.41 2.786 6.568 3.98 11.166 2.697 10.359 4.571 22.969 4.571 22.969s.061.836.162 2.122c-.374 8.699-.15 17.718.525 25.87.893 10.791 2.575 20.062 4.719 25.023l1.455-.793c-3.148-9.774-4.427-22.584-3.867-37.358.847-22.581 6.05-49.813 15.662-78.196 16.24-42.847 38.772-77.224 59.394-93.642-18.796 16.956-44.235 71.839-51.85 92.163-8.526 22.759-14.569 44.117-18.21 64.579 6.283-19.183 26.598-27.429 26.598-27.429s9.964-12.274 21.608-29.81c-6.975 1.589-18.428 4.309-22.265 5.919-5.658 2.371-7.183 3.18-7.183 3.18s18.33-11.15 34.056-16.198c21.628-34.025 45.19-82.362 21.462-103.505M28.52 49c-3.063 0-5.554.895-7.463 2.683-1.91 1.79-2.878 4.137-2.878 7.012 0 1.49.24 2.848.714 4.093.474 1.247 1.212 2.403 2.203 3.447.992 1.045 2.977 2.465 5.936 4.27 3.63 2.186 6.005 3.96 7.145 5.346 1.141 1.385 1.707 2.836 1.707 4.348 0 2.026-.675 3.642-2.064 4.858-1.391 1.215-3.251 1.82-5.558 1.82-2.433 0-4.552-.845-6.372-2.526-1.82-1.682-2.738-3.908-2.759-6.698H18V87.78h1.131c.346-.959.824-1.45 1.45-1.45.3 0 1.005.205 2.104.588 2.671.938 4.865 1.39 6.59 1.39 2.971 0 5.508-1.026 7.622-3.114 2.11-2.086 3.176-4.602 3.176-7.54 0-2.278-.704-4.305-2.084-6.071-1.381-1.769-4.066-3.826-8.08-6.19-3.452-2.046-5.694-3.713-6.728-5.013-1.036-1.298-1.568-2.733-1.568-4.309 0-1.704.634-3.072 1.885-4.093 1.252-1.022 2.891-1.528 4.943-1.528 2.309 0 4.233.676 5.756 2.037 1.521 1.363 2.401 3.252 2.66 5.68h1.132v-8.774h-1.053c-.128.447-.247.733-.357.861-.106.128-.311.196-.615.196-.366 0-1.019-.152-1.945-.45-1.985-.66-3.816-.999-5.499-.999Zm36.98 0c-3.733 0-7.121.868-10.183 2.605-3.066 1.734-5.493 4.14-7.285 7.207-1.79 3.066-2.68 6.323-2.68 9.793 0 4.662 1.547 8.816 4.665 12.456 3.12 3.638 6.858 5.905 11.195 6.777.992.51 2.41 1.826 4.268 3.956 2.093 2.404 3.864 4.138 5.32 5.17a16.074 16.074 0 0 0 4.684 2.292c1.661.499 3.457.744 5.4.744 2.351 0 4.457-.403 6.311-1.234l-.416-1.018a10.184 10.184 0 0 1-3.434.568c-1.642 0-3.3-.534-4.963-1.606-1.66-1.075-3.736-3.125-6.213-6.15-1.164-1.45-1.967-2.364-2.421-2.722 4.745-.915 8.648-3.184 11.691-6.816 3.043-3.63 4.565-7.774 4.565-12.417 0-5.514-1.988-10.147-5.935-13.925C76.12 50.9 71.262 49 65.5 49Zm23.085 0 .06 1.195c2.484 0 3.876.722 4.188 2.174.115.52.169 1.478.178 2.86l-.02 26.42c-.02 1.973-.305 3.233-.853 3.78-.549.543-1.476.882-2.819 1.018l-.06 1.195h24.773l.635-5.993h-1.131c-.323 1.632-1.064 2.802-2.243 3.466-1.183.67-3.273 1-6.293 1h-2.342c-2.717 0-4.289-.97-4.704-2.92a6.011 6.011 0 0 1-.12-1.253l.1-26.714c0-1.97.252-3.29.774-3.937.528-.643 1.48-1.004 2.858-1.096L101.507 49H88.585Zm-22.688 1.45c4.21 0 7.647 1.635 10.302 4.935 2.654 3.3 3.97 7.824 3.97 13.553 0 5.428-1.335 9.774-4.01 13.044-2.675 3.268-6.235 4.896-10.66 4.896-4.25 0-7.696-1.679-10.34-5.053-2.643-3.374-3.95-7.755-3.95-13.142 0-5.535 1.323-9.967 3.989-13.279 2.665-3.308 6.233-4.955 10.699-4.955Zm56.968 5.679c-.604 0-1.065.201-1.409.607-.353.404-.461.894-.338 1.489.119.576.449 1.082.973 1.508.521.425 1.083.646 1.687.646.584 0 1.03-.221 1.35-.646.32-.426.417-.931.298-1.508-.124-.595-.442-1.085-.933-1.489-.497-.406-1.044-.607-1.628-.607Zm16.336 4.054c-1.027 3.897-3.252 6.006-6.669 6.346l.039 1.116h3.99l-.079 13.2c.006 2.258.076 3.76.238 4.525.393 1.83 1.605 2.761 3.632 2.761 2.934 0 6.012-1.763 9.23-5.288l-.972-.822c-2.324 2.32-4.379 3.486-6.173 3.486-1.103 0-1.787-.626-2.045-1.86a4.658 4.658 0 0 1-.099-1.058l.04-14.944h6.093l-.059-1.782h-6.015v-5.68h-1.151Zm23.561 4.975c-3.408 0-6.181 1.632-8.336 4.877-2.145 3.25-2.809 6.85-1.965 10.81.496 2.32 1.484 4.12 2.997 5.387 1.51 1.267 3.426 1.9 5.716 1.9 2.133 0 5.103-.534 6.352-1.607 1.253-1.072 2.408-2.81 3.474-5.19l-.854-.881c-1.7 3.087-5.133 4.642-7.721 4.642-3.559 0-5.738-1.927-6.55-5.758a13.745 13.745 0 0 1-.239-1.567c4.234-.662 7.442-1.833 9.608-3.526 2.163-1.693 4.336-3.489 3.93-5.386-.242-1.127-.835-2.013-1.747-2.683-.924-.67-3.324-1.018-4.665-1.018Zm-37.257.137-7.344 1.665v1.292l2.54-.313c1.231 0 1.955.55 2.184 1.645.077.367.125.881.139 1.528l-.08 11.849c-.02 1.64-.205 2.593-.575 2.879-.374.287-1.36.43-2.958.43l-.04 1.117h11.652l-.02-1.116c-1.619 0-2.668-.126-3.136-.372-.46-.245-.776-.69-.913-1.371-.106-.492-.152-1.338-.159-2.507l.04-16.726h-1.33Zm35.392 2.194c.709 0 1.394.27 2.084.802.68.531 1.095 1.122 1.23 1.763.665 3.15-2.166 5.328-8.535 6.542-.182-2.297.222-4.383 1.251-6.268 1.021-1.883 2.351-2.84 3.97-2.84Z"
fill="#003B57" />
</g>
<defs>
<linearGradient id="b" x1="147.614" y1="5.239" x2="147.614" y2="241.763"
gradientUnits="userSpaceOnUse">
<stop stop-color="#97D9F6" />
<stop offset=".92" stop-color="#0F80CC" />
<stop offset="1" stop-color="#0F80CC" />
</linearGradient>
<clipPath id="a">
<rect width="256" height="256" rx="60" fill="#fff" />
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 6.9 KiB

815
docs/c.md

File diff suppressed because it is too large Load Diff

253
docs/canvas.md Normal file
View File

@ -0,0 +1,253 @@
HTML Canvas 备忘清单
===
这份 HTML Canvas 快速参考备忘单列出了常见的 HTML5 Canvas 设计标签,以易读的格式呈现。
入门
---
<!--rehype:body-class=cols-4-->
### 基本设置
<!--rehype:wrap-class=col-span-2-->
```html
<!DOCTYPE html>
<html>
<head>
<title>Canvas 示例</title>
</head>
<body>
<canvas id="myCanvas" width="500" height="400"
style="border:1px solid #000000;">
</canvas>
<script src="script.js"></script>
</body>
</html>
```
### 获取上下文
<!--rehype:wrap-class=col-span-2-->
```js
const canvas = document.getElementById("myCanvas");
const ctx = canvas.getContext("2d");
```
绘制形状
---
### 矩形
<!--rehype:wrap-class=col-span-2-->
```js
ctx.fillStyle = "red";
ctx.fillRect(10, 10, 150, 100); // x, y, 宽度, 高度
ctx.strokeStyle = "blue";
ctx.lineWidth = 5;
ctx.strokeRect(200, 10, 150, 100); // x, y, 宽度, 高度
ctx.clearRect(15, 15, 30, 30); // x, y, 宽度, 高度
```
路径
---
### 线条
```js
ctx.beginPath();
ctx.moveTo(50, 50); // 起始点
ctx.lineTo(200, 50); // 结束点
ctx.lineTo(200, 200); // 下一个线条结束点
ctx.closePath(); // 将结束点连接到起始点
ctx.stroke();
```
### 圆形
```js
ctx.beginPath();
// x, y, 半径, 起始角度, 结束角度
ctx.arc(150, 150, 75, 0, 2 * Math.PI);
ctx.fillStyle = "green";
ctx.fill();
ctx.stroke();
```
### 弧
```js
ctx.beginPath();
// x, y, 半径, 起始角度, 结束角度
ctx.arc(150, 150, 75, 0, Math.PI);
ctx.stroke();
```
贝塞尔曲线和二次曲线
---
### 二次曲线
```js
ctx.beginPath();
ctx.moveTo(50, 250);
// cpX, cpY, 终点X, 终点Y
ctx.quadraticCurveTo(200, 100, 400, 250);
ctx.stroke();
```
### 贝塞尔曲线
```js
ctx.beginPath();
ctx.moveTo(50, 300);
// cp1X, cp1Y, cp2X, cp2Y, 终点X, 终点Y
ctx.bezierCurveTo(150, 100, 350, 500, 450, 300);
ctx.stroke();
```
### 文本
```js
ctx.font = "30px Arial";
ctx.fillStyle = "black";
// 文本, x, y
ctx.fillText("Hello Canvas", 10, 50);
// 文本, x, y
ctx.strokeText("Hello Canvas", 10, 100);
```
### 图像
<!--rehype:wrap-class=col-span-3-->
```js
const img = new Image();
img.src = "path/to/image.jpg";
img.onload = () => {
ctx.drawImage(img, 10, 10); // img, x, y
ctx.drawImage(img, 50, 50, 100, 100); // img, x, y, 宽度, 高度
ctx.drawImage(img, 100, 100, 100, 100, 150, 150, 200, 200); // img, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight
};
```
变换
---
### 平移
```js
ctx.translate(100, 100); // x, y
ctx.fillRect(0, 0, 50, 50);
```
### 旋转
```js
// 角度(以弧度为单位)
ctx.rotate((Math.PI / 180) * 45);
ctx.fillRect(100, 100, 50, 50);
```
### 缩放
```js
ctx.scale(2, 2); // x, y
ctx.fillRect(50, 50, 50, 50);
```
渐变
---
### 线性渐变
<!--rehype:wrap-class=col-span-2-->
```js
const linearGradient = ctx.createLinearGradient(0, 0, 200, 0); // x0, y0, x1, y1
linearGradient.addColorStop(0, "red");
linearGradient.addColorStop(1, "blue");
ctx.fillStyle = linearGradient;
ctx.fillRect(10, 10, 200, 100);
```
### 径向渐变
```js
const radialGradient = ctx.createRadialGradient(75, 50, 5, 90, 60, 100); // x0, y0, r0, x1, y1, r1
radialGradient.addColorStop(0, "red");
radialGradient.addColorStop(1, "blue");
ctx.fillStyle = radialGradient;
ctx.fillRect(10, 10, 200, 100);
```
### 图案
<!--rehype:wrap-class=col-span-2-->
```js
const img = new Image();
img.src = "path/to/image.jpg";
img.onload = () => {
// 'repeat', 'repeat-x', 'repeat-y', 'no-repeat'
const pattern = ctx.createPattern(img, "repeat");
ctx.fillStyle = pattern;
ctx.fillRect(0, 0, 300, 300);
};
```
### 阴影
```js
ctx.shadowColor = "rgba(0, 0, 0, 0.5)";
ctx.shadowBlur = 10;
ctx.shadowOffsetX = 5;
ctx.shadowOffsetY = 5;
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
```
合成
---
### 全局透明度
```js
ctx.globalAlpha = 0.5;
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
ctx.fillStyle = "blue";
ctx.fillRect(150, 150, 100, 100);
```
### 全局合成操作
```js
ctx.globalCompositeOperation = "source-over"; // 默认
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
ctx.globalCompositeOperation = "destination-over";
ctx.fillStyle = "blue";
ctx.fillRect(150, 150, 100, 100);
```
### 动画
```js
let x = 0;
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "blue";
ctx.fillRect(x, 100, 50, 50);
x += 2;
requestAnimationFrame(draw);
}
draw();
```
参考阅读
---
- [MDN 文档](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)

View File

@ -1,19 +1,17 @@
ChatGPT
===
ChatGPT是OpenAI开发的人工智能聊天机器人程序利用强化学习训练能够进行复杂的语言任务如文本生成、问答和编程支持
此备忘单列出了来自世界各地的提示和提示,说明如何有效使用 ChatGPT
入门指南
---
### ChatGPT 介绍
ChatGPT全称聊天生成预训练转换器英语Chat Generative Pre-trained Transformer是 OpenAI 开发的人工智能聊天机器人程序于2022年11月推出
ChatGPT 是 OpenAI 于 2022 年发布的 AI 聊天机器人,基于 GPT-3.5、GPT-4 等模型,支持自动生成文本、问答、总结和编程等多种语言处理任务
- 网址: <https://chatgpt.com/>
该程序使用基于GPT-3.5、GPT-4、GPT-4o架构的大型语言模型并以强化学习训练。ChatGPT目前仍以文字方式交互而除了可以用人类自然对话方式来交互还可以用于甚为复杂的语言工作包括自动生成文本、自动问答、自动摘要等多种任务。如在自动文本生成方面ChatGPT可以根据输入的文本自动生成类似的文本剧本、歌曲、企划等在自动问答方面ChatGPT可以根据输入的问题自动生成答案。还有编写和调试计算机程序的能力。
### 国内类似的平台
- [文心一言(百度)](https://yiyan.baidu.com/) _baidu.com_
@ -26,48 +24,53 @@ ChatGPT全称聊天生成预训练转换器英语Chat Generative Pre-tr
### 通用
<!--rehype:wrap-class=row-span-2-->
为你的公司或创意命名
为你的企业或创意命名
```
你能为我的科技初创公司建议一个创意的名字吗?
帮我想一个有吸引力的名字,适合我的面包店生意。
```bash
你能帮我为我的科技创业公司起个有创意的名字吗?
帮我想个朗朗上口的名字给我的面包店。
```
为课程或培训项目创建大纲
```
初学者网页开发课程创建一个大纲。
能为客户服务研讨会制定一个培训计划大纲吗?
```sh
帮我创建一个面向初学者网页开发课程大纲。
能否为客户服务工作坊设计一个培训项目的大纲?
```
特定职位提供面试问题
提供特定职位面试问题
```
```sh
我在面试软件工程师职位,你能给我一些面试问题吗?
请为市场经理角色提供一些常见的面试问题。
请给我一些常见的市场经理面试问题。
```
为商业伙伴、客户或客户提供礼物想法
为商业伙伴、客户或客户提供礼物创意
```
我需要给我的客户准备礼物,你能帮忙吗?
给我的商业伙伴们一些独特的礼物建议?
```sh
我需要一些送给客户的礼物创意,你能帮忙吗?
有什么独特的礼物可以送给我的商业伙伴?
```
名单或电子邮件中随机选择竞赛获奖者
一长串名字或邮箱中随机挑选比赛获奖者
```
我想从100个名字中选择一个获奖者,你可以帮忙吗?
从1000封电子邮件列表中随机选择5个作为赠品竞赛的获奖者可以吗
```sh
我想从100个名字中挑选一位获奖者,你帮忙吗?
能帮我从1000个邮箱中随机挑选5个用于赠品抽奖吗
```
### 编程
<!--rehype:wrap-class=row-span-3-->
解释代码为什么工作
解释代码为什么无法正常工作
```
为什么这段代码不起作用?
```js
为什么这段代码不能运行
var x = 5;
var y = 0;
console.log(x/y);
@ -75,57 +78,95 @@ console.log(x/y);
解释代码的含义
```
这段代码是做什么的?
```js
这段代码的作用是什么
function addNumbers(a, b) {
return a + b;
return a + b;
}
```
指定的语言重写代码
将代码转换为指定的语言
```
把这段代码翻译成Python
```js
把这段代码翻译成 Python:
function addNumbers(a, b) {
return a + b;
return a + b;
}
```
编写整个软件程序
编写完整的软件程序
```
写一个计算给定数阶乘的程序?
如何在JavaScript中发出HTTP请求
```js
写一个计算给定数阶乘的 Python 程序
如何用 JavaScript 发起一个 HTTP 请求
```
生成正则表达式regex
生成正则表达式 (regex)
```
```js
创建一个匹配所有电子邮件地址的正则表达式
生成一个匹配8位密码的正则表达式。
生成一个8位密码的正则表达式
```
为代码库添加注释
```
```js
为这段代码添加注释
function addNumbers(a, b) {
return a + b;
return a + b;
}
```
更改一行代码的CSS
修改代码行的 CSS
```
更新这行代码的CSS将字体颜色更改为蓝色?
<p class="example">Hello, Reference!</p>
```html
更新这行的 CSS 将字体颜色更改为蓝色?
<p class="example">Hello, World!</p>
```
更改一行代码的HTML
修改代码行的 HTML
```html
给这个标题标签添加一个 "header" 类?
<h1>Hello, World!</h1>
```
### 电子表格
帮助创建一个电子表格公式
```
给这个标题标签添加一个"class"为"header"的类
<h1>Hello, Reference!</h1>
你能帮我创建一个公式来计算单元格 A1 到 A10 的总和吗
```
<!--rehype:className=wrap-text-->
解释一个公式
```
你能用简单的语言解释一下公式 =SUM(A1:A10) 的含义吗?
```
<!--rehype:className=wrap-text-->
创建占位符的虚拟数据
```
你能帮我生成一些虚拟数据,作为我的电子表格的占位符吗?
```
<!--rehype:className=wrap-text-->
帮助创建复杂的宏
```
我需要创建一个宏,计算单元格 B1 到 B10 的平均值并将结果插入到单元格 C1。你能帮我吗
```
<!--rehype:className=wrap-text-->
提供提高电子表格效率的建议
```
你能给我一些提高电子表格效率的建议吗?
```
### 电子邮件
@ -134,460 +175,441 @@ function addNumbers(a, b) {
创建电子邮件活动
```
发送邀请小弟调调参加周末晚宴的电子邮件
为我们的新客户入职流程创建电子邮件序列
邀请 Jack 周末晚餐的邮件
创建一个针对新客户的引导流程邮件序列
```
格式化和校对电子邮件
格式化和校对邮件
```
校对并格式化我刚写的这封电子邮件:
帮我校对并格式化我刚写的这封邮件:
Hello, do you have any actual tips or tricks for ChatGPT please?
```
<!--rehype:className=wrap-text-->
提供有效电子营销的提示
提供有效电子邮件营销的建议
```
给我一些关于如何提高电子邮件营销开启率和点击率的建议
给我一些提高邮件打开率和点击率的建议
请提供一些使我的电子邮件内容对订阅者更具吸引力和相关性的建议
建议一些方法,让我的邮件内容对订阅者更具吸引力和相关性。
```
<!--rehype:className=wrap-text-->
自动化电子邮件回复
自动回复邮件
```
通过电子邮件告知他,"这是一个好建议,很快就会实现"
给他发送邮件,内容为 "That's a good suggestion, it's coming soon":
Hello, do you have any actual tips or tricks for ChatGPT please?
```
<!--rehype:className=wrap-text-->
从文本中提取电子邮件地址
```
为我从下面的文本中提取所有的电子邮件地址:
Sed sit amet sodales tom@gmail.com, at jack@cheatsheets.zip enim. 18261@outlook.com ut eros
```sh
帮我提取所有的电子邮件地址:
Sed sit amet sodales tom@gmail.com, at jack@gmail.com enim. 18261@outlook.com ut eros
```
<!--rehype:className=wrap-text-->
### 电子表格
帮助创建电子表格公式
```
你能帮我创建一个计算A1到A10单元格求和的公式吗
```
解释公式的含义
```
你能简单解释一下 =SUM(A1:A10) 这个公式的含义吗?
```
为占位符创建虚拟数据
```
你能为我生成一些用作电子表格占位符的虚拟数据吗?
```
帮助创建复杂的宏
```
我需要创建一个宏计算B1到B10单元格的平均值并将结果插入到C1单元格中。你能帮我吗
```
<!--rehype:className=wrap-text-->
提供提高电子表格效率的提示
```
你能给我一些提高电子表格效率的建议吗?
```
### 社交媒体
任何主题提供模板创意
提供任何主题的表情包创意
```
你能给我提供一些关于[主题]的模板创意吗?
你能给我一些关于【狗狗】的表情包创意吗?
```
为任何主题的帖子提供互动关联的想法
提供能提升互动的帖子创意
```
我想创建一个关于[主题]的帖子,能帮我想些创意吗,能吸引我的粉丝参与。
我想一个关于气候变化的帖子,能与我的粉丝产生互动。你能给我一些创意吗?
```
<!--rehype:className=wrap-text-->
生成标签和标题
生成标签和配文
```
我需要一些标签和一段风景日落片的标。你能我生成一些吗?
我需要一些适合风景日落片的标签和配文。你能我生成一些吗?
```
<!--rehype:className=wrap-text-->
提供复建议
提供复建议
```
我刚收到一条询问[主题]项目状态的消息。你能为我建议一条回复吗?
我刚收到一条关于项目状态的消息。你能给我一个回复建议吗?
```
<!--rehype:className=wrap-text-->
### 阅读
总结长文
总结长文
```
你能我总结一下这篇文章吗?[你的文本]
你能我总结一下这篇文章吗?[你的文本]
```
翻译外语
```
你能把这句话翻译成中文吗?[你的文本]
你能把这句话翻译成西班牙语吗?[你的文本]
```
类似于另一本书的书籍推荐
推荐类似的书籍
```
你能推荐一些类似于《饥饿游戏》的书吗?
你能推荐一些《饥饿游戏》类似的书吗?
```
### 设计
为您创建一个AI设计提示
创建 AI 设计提示
```
能帮我生成一个关于新体育品牌logo设计的设计提示吗?
能帮我生成一个为新运动品牌设计标志的提示吗?
```
缩略图建议用于博客或视频
博客或视频的缩略图建议
```
能推荐一些引人的缩略图设计吗,用于我最新的视频,内容是健康饮食
能推荐一些引人注目的缩略图设计,适合我最新关于健康饮食的 YouTube 视频吗
```
<!--rehype:className=wrap-text-->
字体搭配
```
能为旅行博客标题设计建议字体搭配吗?
能为旅行博客标题设计推荐一组字体搭配吗?
```
颜色搭配
```
能为婚纱摄影网站推荐一个色彩搭配方案吗?
你能推荐一个适合婚礼摄影网站的配色方案吗?
```
### 数据分析
从大文本中提取数字
从大文本中提取数字
```
请从这段文本中提取所有数字:[你的文本]
请从这段文本中提取所有数字:[你的文本]
```
根据提供的文本或数据创建表格
根据提供的文本或数据创建表格
```
能根据这些数据创建一个表格吗?:[你的数据]
能根据这些数据创建一个表格吗?:[你的数据]
```
从大列表中筛选数据
```
请根据特定标准筛选这个列表:[你的列表]
请根据特定条件筛选此列表:[你的列表]
```
### 付费广告
提供广告创意建议
提供广告创意
```
新产品发布提供广告创意建议
给我一些新产品发布广告创意。
```
审核跟踪代码是否有错误(标签管理器等)
检查跟踪代码错误(标签管理器等)
```
查我的标签管理器代码,看看是否有错误。
查我的标签管理器代码是否有错误。
```
提供广告文案建议
提供广告文案创意
```
请提供一家[主题]公司的广告文案。
为一家【旅游】公司建议广告文案。
```
微博受众建议
Facebook 受众建议
```
为服装品牌广告活动推荐一个微博受众。
推荐适合服装系列广告活动的 Facebook 受众。
```
您的广告创建正文、标题和/或行动号召
为广告创建正文、标题和/或号召性用语
```
新的[主题]计划广告创建标题、正文和行动号召。
一个新的健身计划广告创建标题、正文和号召性用语
```
### 亚马逊 FBA
编写或重写产品描述
```
请帮我为最新商品写一个新颖且吸引人的产品描述。
```
编写或重写申诉信
```
我需要帮助重写我的申诉信,使其更具说服力。
```
编写或重写供应商联系邮件
```
你能帮我写一封有效的邮件,以联系潜在供应商吗?
```
帮助寻找适合打包销售的商品
```
请推荐一些适合为客户打包销售的商品。
```
整理产品和定价数据
```
你能帮我把产品和定价信息整理成一个整洁易管理的表格吗?
```
<!--rehype:className=wrap-text-->
### SEO
<!--rehype:wrap-class=col-span-2 row-span-2-->
生成或查找关键词
```
为 [主题] 生成一组相关连的关键词
识别 [主题] 内容优化的长尾关键词
查找 [主题] 的热门关键词
为 [主题] 生成一组LSI关键词
查找 [主题] 相关度低的关键词
创建 [主题] 关键词的同义词列表
查找 [主题] PPC广告活动的最佳关键词
查找 [主题] 语音搜索优化的最佳关键词
列出 [主题] 特色片段的最佳关键词
为 [主题] 视频优化找到最佳关键词
查找 [主题] 的最佳关键词
查找 [主题] AMP优化的最佳关键词
查找 [主题] 社交媒体优化的最佳关键词
```
- 为[主题]生成一系列相关关键词。
- 识别[主题]内容优化的长尾关键词
- 查找[主题]的最佳表现关键词
- 为[主题]生成一系列 LSI 关键词
- 查找[主题]的低竞争关键词
- 为[主题]关键词创建同义词列表。
- 查找[主题] PPC 广告活动的最佳关键词。
- 查找[主题]语音搜索优化的最佳关键词
- 列出[主题]的最佳关键词用于特色摘要。
- 查找[主题]视频优化的最佳关键词
- 查找[主题]的最佳关键词
- 查找[主题] AMP 优化的最佳关键词
- 查找[主题]社交媒体优化的最佳关键词
<!--rehype:className=style-round-->
更多关于 SEO 的 ChatGPT 提示
```
为 [主题] 创建元描述和标题标签
查找与 [主题] 相关的内部链接
为 [主题] 的博客文章和文章主题生成创意
研究行业特定术语以用于 [主题] 内容
查找权威网站以获取 [主题] 内容的反向链接
创建与 [主题] 相关的XML站点地图示例
研究 [主题] 的最佳元标签
研究 [主题] 内容的最佳内部链接结构
生成关于 [主题] 的常见问题列表
为与 [主题] 相关的图像创建最佳Alt标签列表
创建与 [主题] 相关的子主题列表
查找发布与 [主题] 相关内容的最佳时间
研究与 [主题] 相关的最佳外部链接策略
查找用于 [主题] SEO 的最受欢迎工具
创建与 [主题] 相关的潜在影响者列表
研究与 [主题] 相关的最佳Schema标记
查找 [主题] 内容的最佳标题标签
创建与 [主题] 相关的潜在链接建设机会列表
研究与 [主题] 反向链接相关的最佳锚文本
创建与 [主题] 相关的潜在客座博客机会列表
研究与 [主题] 相关的最佳本地SEO策略
研究用于 [主题] 网站性能的最佳分析工具
创建与 [主题] 相关的潜在合作伙伴列表
研究用于 [主题] 移动优化的最佳策略
研究用于 [主题] 电子商务优化的最佳策略。提供关键词群集
创建与 [主题] 相关的潜在联盟营销机会列表
什么是与 [主题] 相关的最佳联盟营销网站
什么是 [主题] 国际SEO的最佳策略
创建与 [主题] 相关的潜在播客或播客客座机会列表
查找与 [主题] 相关的热门内容主题
研究用于 [主题] SEO 的最佳策略并提供可操作步骤
创建与 [主题] 相关的潜在视频系列或网络研讨会想法列表
研究与 [主题] 相关的竞争策略
查找与 [主题] 相关的规范标签示例
为 [主题] 制定一个示例关键词列表,以定位多个地理位置
生成针对 [主题] 客户购买漏斗不同阶段的关键词想法
识别与 [主题] 相关的行业标签
```
- 为[主题]创建元描述和标题标签。
- 查找与[主题]相关的内部链接机会。
- 为[主题]生成博客文章和主题创意。
- 研究[主题]内容中使用的行业术语。
- 查找权威网站以获取与[主题]内容相关的反向链接。
- 创建与[主题]相关的 XML 网站地图示例。
- 研究[主题]的最佳元标签。
- 研究[主题]内容的最佳内部链接结构。
- 生成与[主题]相关的常见问题列表。
- 为与[主题]相关的图片创建最佳替代文本标签列表
- 为[主题]创建相关子主题列表
- 查找与[主题]相关的内容发布时间的最佳时机。
- 研究与[主题]相关的最佳外部链接策略。
- 查找与[主题] SEO 使用的最流行工具。
- 为[主题]创建潜在影响者列表。
- 研究[主题]的最佳模式标记。
- 查找[主题]内容的最佳标题标签。
- 为[主题]创建潜在的链接建设机会列表。
- 研究[主题]反向链接的最佳锚文本。
- 创建[主题]的潜在客座博客机会列表。
- 研究[主题]的最佳本地 SEO 策略。
- 研究[主题]网站性能的最佳分析工具。
- 为[主题]创建潜在合作伙伴关系列表。
- 研究[主题]的最佳移动优化策略。
- 研究[主题]的最佳电子商务优化策略,并提供关键词聚类。
- 创建[主题]的潜在联盟营销机会列表
- [主题]的最佳联盟营销网站有哪些?
- [主题]的最佳国际 SEO 策略是什么
- 创建与[主题]相关的潜在播客或播客嘉宾机会列表。
- 研究[主题]的最佳 Google 我的商家优化策略。
- 查找与[主题]相关的热门内容主题
- 研究[主题]的最佳 SEO 策略并提供可操作步骤
- 创建与[主题]相关的潜在视频系列或网络研讨会创意列表
- 研究与[主题]相关的竞争对手策略
- 查找与[主题]相关的规范标签示例
- 为[主题]创建一个面向多个地理位置的示例关键词列表。
- 生成针对不同客户购买漏斗阶段的[主题]关键词创意。
- 识别与[主题]相关的行业标签
<!--rehype:className=style-round-->
### 写作/博客
<!--rehype:wrap-class=row-span-2-->
的创意写作项目创建标题
的创意写作项目创建标题
```
短篇小说集的标题:[你的文章]
我短篇小说集的标题:[你的文章]
```
创建大纲
```
一篇关于运动的论文大纲。
关于锻炼的论文大纲。
```
生成内容创意
```
关于[主题]博客的创意?
可持续时尚博客的创意?
```
总结提供的任何文本
总结提供的任何文本
```
总结这篇关于可再生能源的文章?[你的文章]
总结一下这篇关于可再生能源的文章?[你的文章]
```
撰写完整的博客文章
创建完整的博客文章
```
关于财务规划的博客文章?
关于[财务规划]的博客文章?
```
扩展句子、段落或长文本选择
扩展句子、段落或长文本
```
扩展这句关于爵士音乐的话?[你的句子]
扩展关于爵士音乐的这句话?[你的句子]
```
改变写作语气
改变你的写作语气
```
将这份报告的语气改为对话式?[你的文章]
将这份报告的语气改为对话式?[你的报告]
```
校对或编辑的写作
校对或编辑的写作
```
校对这篇文章?[你的文章]
```
使用标题格式化文本(非常适合博客文章)
用标题格式化文本(适合博客文章)
```
为我的博客文章格式化标题?[你的文章]
为我的博客文章格式化标题?[你的帖子]
```
检查任何文本的偏见
```
检查这篇文章是否偏见?[你的文章]
检查这篇文章是否存在偏见?[你的文章]
```
检测任何文本的抄袭
```
检测这篇论文是否有抄袭[你的论文]
检测这篇论文的抄袭情况[你的论文]
```
为您提供域名
提供域名
```
为我的【园艺博客】提供一个域名?
我[园艺博客]的域名?
```
### 撰写商业内容
撰写或重新撰写您的产品描述
```
请帮我为最新的商品撰写一个新的引人注目的产品描述。
```
撰写或重新撰写申诉信
```
请帮助重新撰写我的申诉信,使其更具说服力。
```
撰写或重新撰写供应商联络邮件
```
能帮我写一封有效的电子邮件,以联系潜在供应商吗?
```
帮助您找到可以打包销售的商品
```
请推荐一些适合我们客户的商品组合。
```
组织产品和定价数据
```
能帮我将产品和定价信息整理成一个整洁易管理的电子表格吗?
```
<!--rehype:className=wrap-text-->
### 教师/课程创建者
将事实或统计数据列表转换为多选测验
将事实或统计数据转换为多项选择题
```
能将这份关于世界历史事实列表转成多选测验吗?[你的列表]
```sh
你能把这份关于世界历史事实列表转成多项选择题吗?[你的列表]
```
<!--rehype:className=wrap-text-->
特定主题的作业创意
```
我需要一些有关[主题]的历史作业创意。你能建议一些吗?
我需要一些关于美国独立战争的历史作业创意。你能建议一些吗?
```
<!--rehype:className=wrap-text-->
根据学生名单创建分组
从学生列表中创建分组
```
班上有30名学生名单。你能帮忙将他们分成6人一组小组项目吗?
我有一份30名学生名单。你能他们分成6人一组进行小组项目吗?
```
<!--rehype:className=wrap-text-->
基于考试成绩创建曲线
根据考试成绩创建曲线
```
我需要根据他们的考试成绩为我的班级创建一个分曲线。能帮忙吗?
我需要根据学生的考试成绩创建一个分曲线。能帮忙吗?
```
<!--rehype:className=wrap-text-->
评分作业
```
能为这篇历史论文分并提供改进意见吗?
你能给这篇历史论文分并提供改进建议吗?
```
### 视频
### YouTube
剧本中创建时间戳
文字稿中创建时间戳
```
能为这播客剧本创建时间戳吗?[视频地址]
```
将视频转换为带格式的博客文章
```
能将这个关于烹饪的视频转换为带有标题和项目符号的博客文章吗?[视频链接]
能为这播客节目的文字稿创建时间戳吗?[你的文字稿]
```
<!--rehype:className=wrap-text-->
提出视频大纲或剧本
将 YouTube 视频转换为带格式的博客文章
```
我需要一个关于冥想益处的视频大纲。你能帮忙吗?
```
回复评论
```
能为我的视频上的这条负面评论写一个有思想的礼貌回复吗?
你能把这段关于烹饪的 YouTube 视频转成带有标题和项目符号的博客文章吗?[视频链接]
```
<!--rehype:className=wrap-text-->
为您的缩略图提供创意
想出视频大纲或脚本
```
我需要一关于"DIY家居装"的创意
我需要一关于冥想好处的视频大纲。你能帮忙吗
```
创建对评论的回复
```
你能写一个周到且礼貌的回复,回应我 YouTube 视频上的这条负面评论吗?
```
<!--rehype:className=wrap-text-->
给你缩略图创意
```
我需要一些关于“DIY 家居装饰”视频的缩略图创意。你能建议一些吗?
```
<!--rehype:className=wrap-text-->
分析你的脚本或文字稿并告诉你语气
```
你能分析这段关于环境问题的视频脚本,并告诉我语气是什么吗?[你的脚本]
```
<!--rehype:className=wrap-text-->
任何主题的视频创意
```
我想制作一系列关于时尚的视频。你能给我建议一些单集的创意吗?
```
<!--rehype:className=wrap-text-->
### 研究
帮助研究2021年前发生的任何事情
帮助研究2021年前发生的任何事情
```
以简单的术语解释量子计算
有没有关于10岁生日的创意想法
如何在JavaScript中发起HTTP请求
可以告诉我导致火山喷发的事件吗?
可以告诉我关于印刷机发明的信息吗?
可以总结一下奥林匹克运动会的历史吗?
可以给我关于文艺复兴的相关信息吗?
我对拜占庭帝国的历史很感兴趣。你能帮我了解更多吗?
等等...
```
- 用简单的术语解释量子计算。
- 有什么创意适合10岁生日派对的吗
- 我如何在 JavaScript 中发出 HTTP 请求
- 你能告诉我美国内战前的事件吗
- 你能告诉我印刷机的发明吗?
- 你能研究一下奥林匹克运动会的历史吗?
- 你能给我关于法国大革命的信息吗?
- 我对拜占庭帝国的历史感兴趣。你能帮我了解更多吗?
- 等等...
<!--rehype:className=style-round-->
## 参考资料

View File

@ -177,7 +177,7 @@ marks[0] = 92;
marks[1] = 97;
marks[2] = 98;
// 定义和初始化
std::array<int, 3> = {92, 97, 98};
std::array<int, 3> marks = {92, 97, 98};
// 有空成员
std::array<int, 3> marks = {92, 97};
std::cout << marks[2]; // 输出: 0

View File

@ -156,7 +156,7 @@ div {
```css
#container {
display: grid;
s grid: repeat(2, 60px) / auto-flow 80px;
grid: repeat(2, 60px) / auto-flow 80px;
}
#container > div {
background-color: #8ca0ff;
@ -1977,6 +1977,16 @@ ul > li:not(:last-child)::after {
使列表项看起来像一个真实的逗号分隔列表,使用 `:not()` 伪类,最后一项不会添加逗号
### 表格中数字使用制表数字
```css
.revenue {
font-variant-numeric: tabular-nums;
}
```
表格中一列数字列对其
另见
---------

View File

@ -9,6 +9,8 @@ Dart 备忘清单
### 安装 Dart
<!--rehype:wrap-class=row-span-2-->
> 完整教程请参阅 Dart 中文社区 [https://dart.cn/get-dart/](https://dart.cn/get-dart/)
#### Windows
```bash
@ -88,8 +90,8 @@ double height = 1.85;
// 您还可以将变量声明为 num
// x 可以同时具有 int 和 double 值
num x = 1;
num += 2.5;
print(num); // 打印: 3.5
x += 2.5;
print(x); // 打印: 3.5
String name = "Nicola";
bool isFavourite = true;
@ -130,6 +132,15 @@ import 'dart:math';
import 'package:test/test.dart';
// 导入文件
import 'path/to/my_other_file.dart';
// 指定前缀
import 'package:lib/lib.dart' as lib;
lib.Element element = lib.Element();
// 仅导入 foo
import 'package:lib1/lib1.dart' show foo;
// 不导入 foo
import 'package:lib2/lib2.dart' hide foo;
// 延迟导入,仅在需要时导入
import 'package:greetings/hello.dart' deferred as hello;
```
操作符
@ -370,7 +381,7 @@ const constantCities = const ["New York", "Mumbai", "Tokyo"];
```dart
// 映射是关联键和值的对象
var person = Map<String, String>();
// 要初始化地图,请执行以下操作:
// 要初始化映射,请执行以下操作:
person['firstName'] = 'Nicola';
person['lastName'] = 'Tesla';
print(person);
@ -395,7 +406,7 @@ var halogens = {'fluorine', 'chlorine', 'bromine', 'iodine', 'astatine'};
// 创建一个空集
var names = <String>{};
Set<String> names = {}; // 这也有效
//var names = {}; // 创建地图,而不是集合
//var names = {}; // 创建映射,而不是集合
```
函数
@ -831,7 +842,8 @@ Future<String> login() {
// 异步
main() async {
print('Authenticating please wait...');
print(await userName());
String result = await login();
print(result);
}
```
@ -950,3 +962,4 @@ void main(List<String> args) {
----
- [Dart 官方文档](https://dart.dev/) _(dart.dev)_
- [Dart 中文社区官方文档](https://dart.cn/) _(dart.cn)_

View File

@ -163,7 +163,10 @@ $ docker build - < Dockerfile
$ docker build - < context.tar.gz
$ docker build -t eon/nginx-server .
$ docker build -f myOtherDockerfile .
$ docker build --build-arg https_proxy=127.0.0.1:8088 # 使用http代理构建
$ curl example.com/remote/Dockerfile | docker build -f - .
$ docker save -o <保存路径>/myimage.tar myimage:latest # 导出
$ docker load -i <路径>/myimage.tar # 导入
```
### 删除 \<none> 镜像
@ -916,7 +919,7 @@ if010/dameng
### 人大金仓
```bash
docker run -idt -p 5432:54321 --restart=always \
docker run -idt -p 54321:54321 --restart=always \
--name Kingbase --privileged=true \
-e DB_MODE=oracle \
-e NEED_START=yes \
@ -934,7 +937,7 @@ if010/kingbase:v009r001c001b0025 /usr/sbin/init
-- | --
:-- | --
`-itd` | 以后台方式启动容器,保持 STDIN 打开
`-p 5432:54321` | 将主机的 5432 端口映射到容器的 5432 端口,访问数据库
`-p 54321:54321` | 将主机的 54321 端口映射到容器的 54321 端口,访问数据库
`--name Kingbase` | 给容器指定名称为 "Kingbase"
`--restart=always` | 容器退出时,总是重新启动容器
<!--rehype:className=auto-wrap left-align-->

View File

@ -985,6 +985,7 @@ Github emoji 图标标记
--------
- [Emoji searcher](https://emoji.muan.co/) _(muan.co)_
- [Share Emojis-With Your 🥺Fiends With An Great Way And Unique✅ |copy & download|](https://emoji-share.com/) _(emoji-share.com)_
- [Get Emoji — All Emojis to ✂️ Copy and 📋 Paste](https://getemoji.com/) _(getemoji.com)_
- [Emoji Guide 🔥 The Ultimate Emoji Guide: 🌈 Meanings, 🍎 Platforms, 🆘 Codes and 😍 More](https://emojiguide.com/) _(emojiguide.com)_
- [Full Emoji List, v15.0](https://unicode.org/emoji/charts/full-emoji-list.html) _(unicode.org)_

View File

@ -117,6 +117,7 @@ $ ffmpeg -i movie.webm movie.mp4
`-vol` | 以 256 的倍数更改音频音量,其中 256 = 100%(正常)音量。例如 512 = 200%
`-newaudio` | 将新的音频流添加到当前输出流
`-alang code` | 设置当前音频流的 ISO 639 语言代码(3 个字母)
`-ac nTract` | 指定立体声通道数n个声道。例如 nTract = 2 即2个声道
视频编辑
---

View File

@ -8,6 +8,8 @@ Flutter 备忘清单
### macOS 操作系统上安装和配置
> 完整教程请参阅 Flutter 中文社区的 [安装和环境配置](https://docs.flutter.cn/get-started/install)
```bash
$ sudo softwareupdate --install-rosetta --agree-to-license
```
@ -18,15 +20,15 @@ $ sudo softwareupdate --install-rosetta --agree-to-license
#### 获取 Flutter SDK
- 安装包来获取最新的 stable Flutter SDK
- Intel [`flutter_macos_3.3.8-stable.zip`](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/macos/flutter_macos_3.3.8-stable.zip)
- Apple 芯片 [`flutter_macos_arm64_3.3.8-stable.zip`](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.3.8-stable.zip)
- Intel [`flutter_macos_3.22.2-stable.zip`](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/macos/flutter_macos_3.22.2-stable.zip)
- Apple 芯片 [`flutter_macos_arm64_3.22.2-stable.zip`](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.22.2-stable.zip)
想要获取到其他版本的安装包,请参阅 [SDK 版本列表](https://flutter.cn/docs/development/tools/sdk/releases) 页面
想要获取到其他版本的安装包,请参阅 [SDK 版本列表](https://docs.flutter.cn/release/archive) 页面
- 将文件解压到目标路径, 比如:
```bash
$ cd ~/development
$ unzip ~/Downloads/flutter_macos_3.3.8-stable.zip
$ unzip ~/Downloads/flutter_macos_3.22.2-stable.zip
```
<!--rehype:className=wrap-text-->
- 配置 `flutter` 的 PATH 环境变量:
@ -39,10 +41,13 @@ $ sudo softwareupdate --install-rosetta --agree-to-license
<!--rehype:className=style-timeline-->
### Windows 操作系统上安装和配置
<!--rehype:wrap-class=col-span-2-->
> 完整教程请参阅 Flutter 中文社区的 [安装和环境配置](https://docs.flutter.cn/get-started/install)
- 点击下方的安装包,获取 stable 发行通道的 Flutter SDK 最新版本:
- [flutter_windows_3.3.8-stable.zip](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/windows/flutter_windows_3.3.8-stable.zip)
- 要查看其他发行通道和以往的版本,请参阅 [SDK 版本列表](https://flutter.cn/docs/development/tools/sdk/releases) 页面
- [flutter_windows_3.22.2-stable.zip](https://storage.flutter-io.cn/flutter_infra_release/releases/stable/windows/flutter_windows_3.22.2-stable.zip)
- 要查看其他发行通道和以往的版本,请参阅 [SDK 版本列表](https://docs.flutter.cn/release/archive) 页面
- 将压缩包解压,然后把其中的 `flutter` 目录整个放在你想放置 `Flutter SDK` 的路径中(例如 `C:\src\flutter`
- 更新 `path` 环境变量,在开始菜单的搜索功能键入`「env」`,然后选择 `编辑系统环境变量`。在 **`用户变量`** 一栏中,检查是否有 **`Path`** 这个条目:
- 如果存在这个条目,以 `;` 分隔已有的内容,加入 `flutter\bin` 目录的完整路径。
@ -779,7 +784,8 @@ ListView.separated(
```
### GridView
<!--rehype:wrap-class=col-span-2-->
<!--rehype:wrap-class=col-span-2 row-span-2-->
`GridView`可将元素显示为二维网格状的列表组件,并支持主轴方向滚动。
使用GridView() 构造函数需要传入gridDelegate和children。Flutter中已经提供了两种实现方式分别是:
@ -889,9 +895,377 @@ PageView.builder(
),
```
Flutter 动画组件
---
### 1.隐式动画
在动画组件内直接配置curve和duration属性
#### AnimatedContainer
使用AnimatedContainer组件配置curve曲线过渡和duration过渡时间
```dart
class HomeState extends StatefulWidget{
const HomeState({Key? key}) : super(key:key);
@override
State<HomeState> createState()=>_HomeState();
}
class _HomeState extends State<HomeState>{
bool press = false; //设置动画触发的条件
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
setState(() {
press = true; //点击FloatingActionButton进行动画效果
});
}
,child: const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: AnimatedContainer(
curve: Curves.ease, //曲线
duration: const Duration(seconds: 1), //延时
width: press ? 200 : 300,
height: 200,
color:Colors.yellow,
transform: press ? Matrix4.translationValues(0, 0, 0) :
Matrix4.translationValues(100, 100, 0)
),
)
)
);
}
}
```
#### AnimatedPadding
通过配置padding值的改变引起组件的移动动画效果,同样支持curve和duration的配置
```dart
class _HomeState extends State<HomeState>{
bool press = false;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
setState(() {
press = true;
});
}
,child: const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: AnimatedPadding(
padding: EdgeInsets.fromLTRB(10, press ? 10 : 400, 0, 0), //配置边距值
curve: Curves.ease, //曲线
duration: const Duration(seconds: 1), //延时
child: Container(
width: 200,
height: 200,
color:Colors.yellow,
),
),
)
)
);
}
}
```
#### AnimatedAlign
通过配置alignment值的改变引起组件的对齐动画效果,同样支持curve和duration的配置
```dart
class _HomeState extends State<HomeState>{
bool press = false;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
setState(() {
press = true;
});
}
,child: const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: AnimatedAlign(
alignment: press ? Alignment.center : Alignment.topCenter,
curve: Curves.ease, //曲线
duration: const Duration(seconds: 1), //延时
child: Container(
width: 200,
height: 200,
color:Colors.yellow,
),
),
)
)
);
}
}
```
#### AnimatedOpacity
通过配置opacity值的改变引起组件的透明度变化动画效果,同样支持curve和duration的配置
```dart
class _HomeState extends State<HomeState>{
bool press = false;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
setState(() {
press = true;
});
}
,child: const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: AnimatedOpacity(
opacity: press ? 1 : 0.1,
curve: Curves.ease, //曲线
duration: const Duration(seconds: 1), //延时
child: Container(
width: 200,
height: 200,
color:Colors.yellow,
),
),
)
)
);
}
}
```
#### AnimatedPositioned
通过配置top,left,right,bottom值的改变引起组件的距离变化动画效果,同样支持curve和duration的配置
```dart
class _HomeState extends State<HomeState>{
bool press = false;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
setState(() {
press = true;
});
}
,child: const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body:Stack(
children: [
AnimatedPositioned(
top: press ? 0 : 100,
left:press ? 0 : 100,
curve: Curves.ease, //曲线
duration: const Duration(seconds: 1), //延时
child: Container(
width: 200,
height: 200,
color:Colors.yellow,
),
),
],
)
)
);
}
}
```
### 2.显示动画
<!--rehype:wrap-class=col-span-2-->
使用显示动画时,定义 `AnimationController`,并在组件中使用 `SingleTickerProviderStateMixin`
#### RotationTransition
`RotationTransition` 实现旋转动画,`turns``AnimationController`。在 `initState` 中设置 `vsync``duration`,使用 `..repeat()` 实现动画循环。
```dart
class _Boxed extends State<Boxed> with SingleTickerProviderStateMixin{
late AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(
vsync: this,
duration: const Duration(seconds: 1)
)..repeat(); // 让程序和手机的刷新频率统一
}
@override
Widget build(BuildContext context) {
return SizedBox(
height: 100,
width: 100,
child: RotationTransition(turns: _controller,
child: const FlutterLogo(size: 60),
)
);
}
}
```
#### AnimationController
```dart
class _HomeState extends State<HomeState> with SingleTickerProviderStateMixin {
late AnimationController _controller;
@override
void initState() {
super.initState();
// 让程序和手机的刷新频率统一
_controller = AnimationController(vsync: this, duration: const Duration(seconds: 1));
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: () {
_controller.repeat(); //重复播放
},child:const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: Column(
children: [
RotationTransition(
turns: _controller,
child: const FlutterLogo(size: 60),
),
ElevatedButton(onPressed: (){
_controller.forward(); // 👈 播放一次
}, child:const Icon(Icons.refresh)),
ElevatedButton(onPressed: (){
_controller.reverse(); // 👈 倒序播放
}, child:const Icon(Icons.refresh)),
ElevatedButton(onPressed: (){
_controller.stop(); // 👈 停止
}, child:const Icon(Icons.refresh)),
ElevatedButton(onPressed: (){
_controller.reset(); // 👈 重置
}, child:const Icon(Icons.refresh)),
]
)
)
)
);
}
}
```
#### FadeTransition
`FadeTransition` 实现透明度变化,`opacity``AnimationController`。可以通过 `reverse()` 实现从实体逐渐变透明。
```dart
class _HomeState extends State<HomeState> with SingleTickerProviderStateMixin {
late AnimationController _controller;
@override
void initState() {
super.initState();
//让程序和手机的刷新频率统一
_controller = AnimationController(vsync: this, duration: const Duration(seconds: 1));
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
_controller.repeat(); //重复播放
},child:const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: FadeTransition(opacity: _controller,
child: const FlutterLogo(size: 60,),
)
)
)
);
}
}
```
也可以通过 lowerBound 和 upperBound 来配置 controller 的最低和最高值
#### ScaleTransition
`ScaleTransition` 实现缩放动画,`scale``AnimationController`,可以通过 `reverse()` 实现从大到小的动画效果。
```dart
class _HomeState extends State<HomeState> with SingleTickerProviderStateMixin {
late AnimationController _controller;
@override
void initState() {
super.initState();
// 让程序和手机的刷新频率统一
_controller = AnimationController(vsync: this, duration: const Duration(seconds: 1));
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton:FloatingActionButton(onPressed: (){
_controller.repeat(); //重复播放
},child:const Icon(Icons.add),) ,
appBar: AppBar(
title: const Text("测试"),
),
body: Center(
child: ScaleTransition(scale: _controller,
child: const FlutterLogo(size: 60,),
)
)
)
);
}
}
```
另见
---
- [Dart 备忘清单](./dart.md) _(jaywcjlove.github.io)_
- [flutter 官网](https://flutter.dev) _(flutter.dev)_
- [flutter 中文社区官网](https://flutter.cn) _(flutter.cn)_
- [flutter 中文开发者社区](https://flutterchina.club/) _(flutterchina.club)_

View File

@ -167,6 +167,12 @@ $ git checkout -b new_branch
$ git branch -d my_branch
```
删除本地存在远程不存在的分支
```shell
$ git remote prune origin
```
将分支 `A` 合并到分支 `B`
```shell
@ -564,6 +570,7 @@ $ git log Branch1 ^Branch2
```
### git 迁移
<!--rehype:wrap-class=col-span-2-->
- 从原地址克隆一份裸版本库
@ -1129,6 +1136,7 @@ Host github.com
<!--rehype:className=wrap-text-->
### Fork仓库同步上游仓库
<!--rehype:wrap-class=col-span-2-->
- 设置上游仓库

View File

@ -574,6 +574,7 @@ jobs:
```yml
- run: npm publish --access public
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
```
@ -958,6 +959,47 @@ steps:
version: 1.22.21
```
### 传递环境变量
<!--rehype:wrap-class=col-span-2-->
在 `ci.yml` 上保存环境变量
```yml
- name: Save commit message to environment variable
run: echo "COMMIT_MESSAGE=${{ github.event.head_commit.message }}" >> $GITHUB_ENV
```
在 `tag.yml` 上获取环境变量
```yml
- name: Read commit message
run: |
echo "Commit: ${{ github.event.workflow_run.head_commit.message }}"
```
### 触发下一个工作流
在 `tag.yml` 上添加判断 `tag` 创建成功触发 `tag-creation-success` 的工作流
```yml
- name: Trigger next workflow if successful
if: steps.check_success.outputs.success == 'true'
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d '{"event_type": "tag-creation-success"}' \
https://api.github.com/repos/${{ github.repository }}/dispatches
```
在 `success.yml` 上监听
```yml
on:
repository_dispatch:
types: [tag-creation-success]
```
GitLab CI/CD 迁移到 GitHub Actions
---

255
docs/github-cli.md Normal file
View File

@ -0,0 +1,255 @@
Github CLI
===
GitHub CLI 的快速参考,这是一个开源命令行工具,可在终端上启用 GitHub 功能。
入门
---
### 安装
<!--rehype:wrap-class=col-span-2-->
#### Windows
<!--rehype:style=text-align: left;-->
| 工具 | 安装 | 升级 |
| :----- | :--------------------------- | :--------------------------- |
| WinGet | `winget install --id Github.cli` | `winget upgrade --id GitHub.cli` |
| Scoop | `scoop install gh` | `scoop update gh` |
| Choco | `choco install gh` | `choco upgrade gh` |
<!--rehype:className=show-header left-align-->
#### Mac OS
<!--rehype:style=text-align: left;-->
| 工具 | 安装 | 升级 |
| :------- | :-------------------- | :------------------------------------------ |
| Brew | `brew install gh` | `brew upgrade gh` |
| MacPorts | `sudo port install gh`| `sudo port selfupdate && sudo port upgrade gh` |
<!--rehype:className=show-header left-align-->
#### Linux
<!--rehype:style=text-align: left;-->
请参见 [安装说明](https://github.com/cli/cli/blob/trunk/docs/install_linux.md) 以获取其他 Linux 发行版的信息。安装脚本:
```bash
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
```
### 基本用法
#### 帮助和文档
<!--rehype:style=text-align: left;-->
显示命令选项:
| 命令 | 描述 |
| :-------------------- | :------------------------------------------------------------------------------------------------------------- |
| `gh help [command]` | 帮助提供应用程序中任何命令的帮助。只需键入 `gh help [命令路径]` 以获取完整详细信息。 |
<!--rehype:className=style-list-arrow-->
#### 认证
<!--rehype:style=text-align: left;-->
| 命令 | 描述 |
| :-------------------- | :-------------------------------------------------------- |
| `gh auth login` | 默认通过基于网页的浏览器进行身份验证 |
| `gh auth logout` | 移除主机的身份验证配置 |
| `gh auth refresh` | 扩展或修复存储凭据的权限范围 |
| `gh auth setup-git` | 配置 Git 使用 GitHub CLI 作为凭据助手 |
| `gh auth status` | 验证并显示有关您身份验证状态的信息 |
| `gh auth token` | 打印 `gh` 配置使用的身份验证令牌 |
<!--rehype:className=style-list-arrow-->
使用 GitHub 令牌:
```shell
$ gh auth --with-token < token.txt
```
### 仓库管理
<!--rehype:wrap-class=col-span-2-->
#### 常规
<!--rehype:style=text-align: left;-->
| 命令 | 描述 |
| :------------------------ | :------------------------------------------ |
| `gh repo create` | 创建一个新的 GitHub 仓库 |
| `gh repo list [target]` | 列出某个用户或组织拥有的仓库 |
<!--rehype:className=code-nowrap left-align-->
#### 目标
<!--rehype:style=text-align: left;-->
| 命令 | 描述 |
| :--------------------------- | :-------------------------------------------------------- |
| `gh repo archive [repo]` | 存档一个 GitHub 仓库 |
| `gh repo clone [dir]` | 在本地克隆一个 GitHub 仓库 |
| `gh repo delete [repo]` | 删除一个 GitHub 仓库 |
| `gh repo deploy-key` | 管理仓库中的部署密钥 |
| `gh repo edit [repo]` | 编辑仓库设置 |
| `gh repo fork [repo]` | 创建一个仓库的分叉 |
| `gh repo rename [name]` | 重命名一个 GitHub 仓库 |
| `gh repo set-default [repo]` | 设置默认的远程仓库 |
| `gh repo sync [dest-repo]` | 从源仓库同步到目标仓库 |
| `gh repo view [repo]` | 显示一个 GitHub 仓库的描述和 README |
<!--rehype:className=code-nowrap left-align-->
### 问题
#### 搜索问题
<!--rehype:style=text-align: left;-->
| 命令 | 描述 |
| :------------------------- | :------------------------------- |
| `gh search issues [query]` | 在 GitHub 上搜索问题 |
#### 示例
<!--rehype:style=text-align: left;-->
搜索匹配关键词 "readme" 和 "typo" 的问题
```shell
$ gh search issues readme typo
```
搜索匹配短语 "broken feature" 的问题
```shell
$ gh search issues "broken feature"
```
搜索 cli 组织中的问题和拉取请求
```shell
$ gh search issues --include-prs --owner=cli
```
搜索分配给自己的开放问题
```shell
$ gh search issues --assignee=@me --state=open
```
搜索评论数超过 100 的问题
```shell
$ gh search issues --comments=">100"
```
搜索没有标签 "bug" 的问题
```shell
$ gh search issues -- -label:bug
```
### 拉取请求
**拉取请求操作**
| 命令 | 描述 |
| :---------------- | :----------------------------------------- |
| `gh pr create` | 在 GitHub 上创建拉取请求 |
| `gh pr list` | 列出 GitHub 仓库中的拉取请求 |
| `gh pr status` | 显示相关拉取请求的状态 |
**示例**
```shell
$ gh pr status
```
示例输出:
```
Current branch
#12 Remove the test feature [user:patch-2]
- All checks failing - Review required
Created by you
You have no open pull requests
Requesting a code review from you
#13 Fix tests [branch]
- 3/4 checks failing - Review required
#15 New feature [branch]
- Checks passing - Approved
```
### GitHub Actions
<!--rehype:wrap-class=col-span-2-->
**常规操作**
| 命令 | 描述 |
| :----------------------- | :--------------------------------------------------------------------------- |
| `gh workflow disable` | 禁用工作流,防止其运行或在列出工作流时显示 |
| `gh workflow enable` | 启用工作流,允许其运行并在列出工作流时显示 |
| `gh workflow list` | 列出工作流文件,默认隐藏禁用的工作流 |
| `gh workflow run` | 为给定的工作流创建一个 `workflow_dispatch` 事件 |
| `gh workflow view` | 查看工作流的摘要 |
**运行操作**
| 命令 | 描述 |
| :----------------------- | :----------------------------------------------------------- |
| `gh run cancel` | 取消一个工作流运行 |
| `gh run delete` | 删除一个工作流运行 |
| `gh run download` | 下载由 GitHub Actions 工作流运行生成的工件 |
| `gh run list` | 列出最近的工作流运行 |
| `gh run rerun` | 重新运行整个运行、仅失败的作业或运行中的特定作业 |
| `gh run view` | 查看工作流运行的摘要 |
| `gh run watch` | 观看一个运行直到其完成,显示其进度 |
### 别名
**常规别名设置**
| 命令 | 描述 |
| :----------------------- | :--------------------------------------------------------- |
| `gh alias delete` | 删除设置的别名 |
| `gh alias import` | 从 YAML 文件的内容中导入别名 |
| `gh alias list` | 打印出所有已配置的别名 |
| `gh alias set` | 定义一个单词,当调用时会展开为完整的 `gh` 命令 |
<!--rehype:className=style-list-->
### 发布
**常规操作**
| 命令 | 描述 |
| :----------------------- | :----------------------------------------- |
| `gh release create` | 为一个仓库创建新的 GitHub 发布 |
| `gh release list` | 列出一个仓库中的发布 |
<!--rehype:className=code-nowrap-->
**目标命令**
| 命令 | 描述 |
| :------------------------ | :-------------------------------------- |
| `gh release delete` | 删除一个发布 |
| `gh release delete-asset` | 从一个发布中删除一个资产 |
| `gh release download` | 从 GitHub 发布中下载资产 |
| `gh release edit` | 编辑一个发布 |
| `gh release upload` | 上传资产文件到一个 GitHub 发布 |
| `gh release view` | 查看有关一个 GitHub 发布的信息 |
<!--rehype:className=code-nowrap-->
### 配置
**目标设置**
| 命令 | 描述 |
| :------------------------ | :--------------------------------------------- |
| `gh config clear-cache` | 清除 CLI 缓存 |
| `gh config get` | 打印给定配置键的值 |
| `gh config list` | 打印配置键及其值的列表 |
| `gh config set` | 用给定键的值更新配置 |
<!--rehype:className=style-list-->

View File

@ -3,12 +3,12 @@ Github Copilot 备忘清单
这是开始使用 [Github Copilot](https://code.visualstudio.com/docs/editor/github-copilot) 的快速参考指南
一、准备工作
入门
----
### 1、账号注册
> 需要先拥有一个Github账号并订阅Copilot。
需要先拥有一个Github账号并订阅Copilot。
事项 | 说明
:-|-
@ -18,7 +18,7 @@ Github 账号 | [注册地址](https://github.com/signup)
### 2、安装Vscode插件
<!--rehype:wrap-class=col-span-1 row-span-1-->
> 在扩展商店中搜索安装下面插件
在扩展商店中搜索安装下面插件
插件名称 | 功能
:-|-
@ -44,22 +44,23 @@ Copilot Enterprise| 39美元/人/月 | Business 特性 + 私有代码库的个
<!--rehype:wrap-class=col-span-1 row-span-1-->
|名称 | 描述 |
|-|-|
Inline Suggestions| 在编辑器中紧邻光标所在位置显示建议
Completions Panel| 在编辑器中展示完整的建议列表
Inline Chat| 在编辑器中紧邻光标所在位置发起对话
Editor Chat| 在编辑器中打开完整的对话界面
Silde Chat| 在编辑器的侧边栏打开对话界面
Quick Chat| 在顶部唤起对话界面
`Inline Suggestions` | 在编辑器中紧邻光标所在位置显示建议
`Completions Panel` | 在编辑器中展示完整的建议列表
`Inline Chat` | 在编辑器中紧邻光标所在位置发起对话
`Editor Chat` | 在编辑器中打开完整的对话界面
`Silde Chat` | 在编辑器的侧边栏打开对话界面
`Quick Chat` | 在顶部唤起对话界面
<!--rehype:className=left-align-->
二、提示技巧
提示技巧
----
### 提示之禅
<!--rehype:wrap-class=col-span-1 row-span-1-->
> 与 `copilot` 之间的关系,就作家插画师的关系。
> 你只有尽可能全面、干练、清晰描述你的故事(即 `上下文`)。
> `copilot` 才能根据你的故事画出精美的插画 (即 `代码` )。
- 你的关系`copilot` 的关系,就作家插画师的关系。
- 为了让 `copilot` 能够绘制出精美的插画(即代码),你需要尽可能全面、干练、清晰描述你的故事(即上下文)。
<!--rehype:className=style-round-->
### 提示技巧
<!--rehype:wrap-class=col-span-1 row-span-1-->
@ -69,9 +70,9 @@ Quick Chat| 在顶部唤起对话界面
### 实战教程
- [Youtube GitHub Copilot Series](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt)
- [Pragmatic techniques to get the most out of GitHub Copilot](https://www.youtube.com/watch?v=CwAzIpc4AnA)
- [How I used GitHub Copilot to build a browser extension](https://github.blog/2023-05-12-how-i-used-github-copilot-to-build-a-browser-extension/)
- [Youtube GitHub Copilot 系列](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt)
- [实用技巧:充分利用 GitHub Copilot](https://www.youtube.com/watch?v=CwAzIpc4AnA)
- [我如何使用 GitHub Copilot 构建浏览器扩展](https://github.blog/2023-05-12-how-i-used-github-copilot-to-build-a-browser-extension/)
### 上下文信息的种类
<!--rehype:wrap-class=col-span-2 row-span-1-->
@ -86,13 +87,13 @@ Quick Chat| 在顶部唤起对话界面
### 上下文:文件
> Copilot会查看编辑器中当前和紧邻打开的文件以分析上下文并提供适当的建议。
Copilot会查看编辑器中当前和紧邻打开的文件以分析上下文并提供适当的建议。
---
> - 1、避免打开过多的文件以便Copilot能够更好地理解你的代码。
> - 2、打开的文件尽量相关且有共性。
> - 3、如果是新项目可以打开一些模版代码、数据文件以及参考文档等相关示例文件。以便Copilot能够更好地理解你的期望。等已经开发了一些代码后这些示例文件就可以删除了。
- 1、避免打开过多的文件以便Copilot能够更好地理解你的代码。
- 2、打开的文件尽量相关且有共性。
- 3、如果是新项目可以打开一些模版代码、数据文件以及参考文档等相关示例文件。以便Copilot能够更好地理解你的期望。等已经开发了一些代码后这些示例文件就可以删除了。
### 上下文: 注释: 顶部注释
@ -275,7 +276,7 @@ dailogs = [
...
```
三、快捷键
快捷键
----
<!--rehype:body-class=cols-2-->
@ -287,6 +288,7 @@ dailogs = [
<!--rehype:wrap-class=col-span-2 row-span-1-->
#### Copilot 中 Inline Suggestions 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -300,6 +302,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot 中 Completions Panel 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -310,6 +313,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot 中 其他命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -324,6 +328,7 @@ dailogs = [
<!--rehype:wrap-class=col-span-2 row-span-1-->
#### Copilot Chat 中 Chat 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -334,6 +339,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot Chat 中 Inline Chat 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -345,6 +351,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot Chat 中 Quick Chat 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -353,6 +360,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot Chat 中 Editor Chat 相关命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -360,6 +368,7 @@ dailogs = [
<!--rehype:className=show-header wrap-text left-align-->
#### Copilot Chat 其他命令
<!--rehype:style=text-align: left;-->
| 命令 |说明 | 快捷键 | Mac 快捷键 |
|-|:-|:-|:-|
@ -368,10 +377,10 @@ dailogs = [
`github.copilot.ghpr.applySuggestion`|为Github Pull Request提供代码建议|-|-
<!--rehype:className=show-header wrap-text left-align-->
四、Copilot Chat 的 Slash Commands 使用技巧
Copilot Chat 的 Slash Commands 使用技巧
----
> 在聊天对话框中可以通过`/`开头的命令来与Copilot Chat进行交互。
在聊天对话框中可以通过`/`开头的命令来与Copilot Chat进行交互。
### Slash Commands 示例
<!--rehype:wrap-class=col-span-1 row-span-1-->
@ -393,9 +402,9 @@ dailogs = [
@vscode /api 请解释 inlineChat.start 的作用
@workspace /explain def helloworld():...
```
在每一行代码末尾添加注释进行解释
```
#### Agent
@ -420,7 +429,7 @@ dailogs = [
---
> 通过命令 `github.copilot.interactiveEditor.generate` 触发
通过命令 "github.copilot.interactiveEditor.generate" 触发
|命令 |说明 |
|- |:-|
@ -430,32 +439,34 @@ dailogs = [
> 当然也可以直接选中区域然后在inline chat中输入指令执行 copilot会对选中区域进行指令操作
|常用指令|
| - |
|在每一行代码末尾添加注释进行解释|
|使代码满足PEP484要求|
<!--rehype:className=show-header wrap-text left-align-->
#### 常用指令
- 在每一行代码末尾添加注释进行解释
- 使代码满足PEP484要求
<!--rehype:className=style-round-->
### Silde Chat 的 Slash Commands
<!--rehype:wrap-class=col-span-1 row-span-2-->
> 通过命令 `workbench.action.chat.openInSidebar` 触发 `chat` 后使用
> 或点击侧边栏上的Copilot聊天按钮
> 在Chat输入框中还允许指定Agent(即环境)
- 通过命令 `workbench.action.chat.openInSidebar` 触发 `chat` 后使用
- 或点击侧边栏上的Copilot聊天按钮
- 在Chat输入框中还允许指定Agent(即环境)
<!--rehype:className=style-round-->
#### Slash Commands
|命令 |说明 |
|- |:-|
/api |回答vscode扩展插件开发的问题
/explain |对选中的代码进行解释
/fix |修复此选中的代码
/new |创建新项目workspace
/newNotebook |创建新的Jupyter Notebook
/terminal |解释命令行里的命令
/tests |为选中的代码生成单元测试
/help |帮助说明
/clear |清除会话
`/api` |回答vscode扩展插件开发的问题
`/explain` |对选中的代码进行解释
`/fix` |修复此选中的代码
`/new` |创建新项目workspace
`/newNotebook` |创建新的Jupyter Notebook
`/terminal` |解释命令行里的命令
`/tests` |为选中的代码生成单元测试
`/help` |帮助说明
`/clear` |清除会话
<!--rehype:className=left-align-->
### `/terminal`特有的变量, 以`#`号开头
@ -471,13 +482,12 @@ dailogs = [
- Quick Chat 与 Chat 的 Slash Commands相同
- Editor Chat 与 Chat 的 Slash Commands相同
<!--rehype:className=style-round-->
五、参数设置
参数设置
----
打开vscode 命令面板, 输入`Preferences:Open Settings` 打开配置文件在文件模式下配置相关参数.
完整参数说明可以查看 `copilot``copilot chat` 两个[插件目录](https://code.visualstudio.com/docs/editor/extension-marketplace#_where-are-extensions-installed)下的 `package.json` 文件获知。
打开 VSCode 命令面板输入 `Preferences: Open Settings` 打开配置文件在文件模式下,您可以配置相关参数。要获取完整的参数说明,请查看 `copilot``copilot chat` 两个插件目录下的 `package.json` 文件,具体位置可以参考 [VSCode 扩展市场](https://code.visualstudio.com/docs/editor/extension-marketplace#_where-are-extensions-installed)。
### 完整配置参考
@ -532,49 +542,59 @@ dailogs = [
### 参数说明
<!--rehype:wrap-class=col-span-2 row-span-1-->
#### 代理参数
<!--rehype:style=text-align: left;-->
|设置参数 |值类型|说明 |
|:--|:--|:--|
`"http.proxy"`| string |配置网络代理地址
<!--rehype:className=left-align-->
#### Copilot Chat 参数
<!--rehype:style=text-align: left;-->
|设置参数 |值类型|说明 |
|:--|:--|:--|
`"github.copilot.chat.localeOverride"`| string | 设置Copilot本地语言
`"github.copilot.chat.welcomeMessage"`| string |Copilot Chat 是否显示欢迎语<br>`first`: 仅第一次启动时, `always`: 总是, `never`: 从不
<!--rehype:className=left-align-->
#### Copilot 基本参数
<!--rehype:style=text-align: left;-->
|设置参数 |值类型|说明 |
|:--|:--|:--|
`"editor.inlineSuggest.enabled"`| boolean |启用内联建议
`"github.copilot.editor.iterativeFixing"`| boolean| 允许 Copilot 提供迭代修复建议
`"github.copilot.editor.enableAutoCompletions"`| boolean |允许 Copilot 提供自动补全
`"github.copilot.editor.enableCodeActions"`| boolean|允许 Copilot 代码操作建议,这些操作可能包括重构代码、优化代码结构、修复错误等
| `"editor.inlineSuggest.enabled"` | boolean | 启用内联建议 |
| `"github.copilot.editor.iterativeFixing"` | boolean | 允许 Copilot 提供迭代修复建议 |
| `"github.copilot.editor.enableAutoCompletions"` | boolean | 允许 Copilot 提供自动补全 |
| `"github.copilot.editor.enableCodeActions"` | boolean | 允许 Copilot 提供代码操作建议包括重构优化代码结构、修复错误等 |
<!--rehype:className=left-align-->
#### 设置 Copilot 生效的文件类型
<!--rehype:style=text-align: left;-->
|设置参数 |值类型|说明 |
|:--|:--|:--|
`"github.copilot.enable"`| json |请将 `"*": true` 放到末尾 <br>[语言](https://code.visualstudio.com/docs/languages/identifiers)后设置 `false` 表示禁用copilot, 设置 `true` 表示启用
<!--rehype:className=left-align-->
#### Copilot 高级参数
<!--rehype:style=text-align: left;-->
> github.copilot.advanced 可以控制模型参数,最终影响到代码生成. 其值为json
`github.copilot.advanced` 可以控制模型参数,最终影响到代码生成其值为json
|设置参数 |值类型|说明 |
|:--|:--|:--|
`"length"`| integer | 生成代码字数, 默认为 `500`
`"top_p"`| number | 控制模型候选范围,默认值为 `1`范围为`0.0~1.0`
`"temperature"`| string | 控制模型创造性,默认值为 `""`,值越大越不可预测,范围为`0.0~1.0`
`"inlineSuggestCount"`| integer | 内联提示的个数, 默认为`3`
`"listCount"`| integer | 控制`Completions Panel`中建议个数,默认为 `10`
`"stops"`| json | 控制模型代码生成时停止标志,可按[语言](https://code.visualstudio.com/docs/languages/identifiers)控制
`"indentationMode"`| json | 指定[语言](https://code.visualstudio.com/docs/languages/identifiers)是否用该语言的缩模式,由此可能会与stops冲突,比如采用`\{\}`缩近时,设置该参数时需要综合考虑
`"debug.showScores"`| boolean | 在代码建议列表中显示每个建议的分数
<!--rehype:className=wrap-text -->
| 设置参数 | 值类型 | 说明 |
|----------|----------|----------|
| `"length"` | 整数 integer | 生成代码字数默认为 `500` |
| `"top_p"` | 数字 number | 控制模型候选范围,默认值为 `1`,范围为 `0.0~1.0` |
| `"temperature"` | 字符串 string | 控制模型创造性,默认值为,值越大越不可预测,范围为 `0.0~1.0` |
| `"inlineSuggestCount"` | 整数 integer | 内联提示的个数默认为 `3` |
| `"listCount"` | 整数 integer | `Completions Panel` 中建议个数,默认为 `10` |
| `"stops"` | JSON | 控制模型代码生成时停止标志,可按[语言](https://code.visualstudio.com/docs/languages/identifiers)控制 |
| `"indentationMode"` | JSON | 指定[语言](https://code.visualstudio.com/docs/languages/identifiers)是否使用该语言的缩模式,可能与 stops 冲突 |
| `"debug.showScores"` | 布尔值 boolean | 在代码建议列表中显示每个建议的分数 |
<!--rehype:className=left-align-->
END... ENJOY YOURSELF
----

View File

@ -279,13 +279,26 @@ u := uint(i)
s := string(i)
```
#### 如何获取int字符串
#### 字符串与其他类型的相互转换
```go
i := 90
// 需要导入“strconv”
s := strconv.Itoa(i)
fmt.Println(s) // Outputs: 90
// 字符串转其他类型
str := "90"
// 整数类型
i, err := strconv.Atoi(str)
if err != nil {
fmt.Println("转换错误:", err)
} else {
fmt.Println(i)
}
// 浮点类型
f, err := strconv.ParseFloat(str, 64)
// []byte 类型
bytes := []byte(str)
// 其他类型转字符串
str = strconv.Itoa(i)
str = strconv.FormatFloat(f, 'f', 2, 64)
str = string(bytes[:])
```
Golang 字符串

View File

@ -242,10 +242,12 @@ sb.append("!");
### 比较
```java
String s1 = new String("QuickRef");
String s1 = "QuickRef";
String s2 = new String("QuickRef");
s1 == s2 // false
s1.equals(s2) // true
s1 == s2 // false
s1.equals(s2) // true
// intern 方法获得字符串常量池中的惟一引用
s1 == s2.intern() // true
"AB".equalsIgnoreCase("ab") // true
```
@ -310,7 +312,7 @@ int[] a3 = new int[]{1, 2, 3};
int[] a4 = new int[3];
a4[0] = 1;
a4[2] = 2;
a4[3] = 3;
a4[3] = 3; // 会出现索引越界异常
```
### 修改 Modify
@ -1344,7 +1346,7 @@ Consumer<String> test = System.out::println;
```java
Comparator<Integer> comparator = Math::max;
int result = comparator.compare(1, 2);
int result = comparator.compare(1, 2);
// 返回 2
```
@ -1353,7 +1355,7 @@ int result = comparator.compare(1, 2);
```java
String str = "HELLO";
String lowerCase = str::toLowerCase;
String lowerCase = str::toLowerCase;
// 返回 "hello"
```
@ -1362,7 +1364,7 @@ String lowerCase = str::toLowerCase;
```java
Supplier<String> supplier = String::new;
String str = supplier.get();
String str = supplier.get();
// 返回一个空字符串
```
@ -1372,7 +1374,7 @@ String str = supplier.get();
Function<Integer, String[]> function = String[]::new;
String[] array = function.apply(5);
String[] array = function.apply(5);
// 返回 5 个空字符串的数组
```
<!--rehype:className=wrap-text-->
@ -1382,7 +1384,7 @@ String[] array = function.apply(5);
```java
String someStr = "HELLO";
String lowerCase = someStr::toLowerCase;
String lowerCase = someStr::toLowerCase;
// 返回 "hello"
```
@ -1391,7 +1393,7 @@ String lowerCase = someStr::toLowerCase;
```java
SomeClass someObject = new SomeClass();
int result = someObject::staticMethod;
int result = someObject::staticMethod;
// 调用静态方法
```
@ -1558,6 +1560,118 @@ int frequency = Collections
.frequency(list, 2); // frequency = 2
```
操纵数据库
----
### JDBC
```java
String url = "jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC";
String user = "root";
String password = "123456";
String sql = "SELECT 1 as a, '2' as b";
String preparedSql = "SELECT * FROM t_user WHERE id = ?";
Connection conn = null;
Statement sm = null;
ResultSet rs = null;
try {
// 1.注册驱动
Class.forName("com.mysql.cj.jdbc.Driver");
} catch (ClassNotFoundException e) {
// 驱动找不到
throw new RuntimeException(e);
}
// 2.建立连接
try (Connection connection = DriverManager.getConnection(url, user, password)) {
conn = connection;
// 3.创建Statement对象
try (Statement statement = connection.createStatement()) {
sm = statement;
// 4.执行SQL语句
try (ResultSet resultSet = statement.executeQuery(sql)) {
rs = resultSet;
// 5.处理结果集
while (resultSet.next()) {
// 按照列名取值
System.out.println(resultSet.getLong("a"));
// 按照索引取值
System.out.println(resultSet.getString(2));
}
}
}
// 3.创建PreparedStatement对象
try (PreparedStatement preparedStatement = connection.prepareStatement(preparedSql)) {
sm = preparedStatement;
preparedStatement.setLong(1, 1_000L);
// 4.执行SQL语句
try (ResultSet resultSet = preparedStatement.executeQuery()) {
rs = resultSet;
// 5.处理结果集
while (resultSet.next()) {
System.out.println(resultSet.getLong("id"));
System.out.println(resultSet.getString(2));
}
}
}
} catch (SQLException e) {
// 数据库异常
throw new RuntimeException(e);
} finally {
// 6.关闭资源
// 上面的try块里已经自动关闭否则JDK 7以前按照以下顺序关闭
// 先打开的后关闭,后打开的先关闭
if (null != rs) {
try {
rs.close();
} catch (SQLException ignored) {
}
}
if (null != sm) {
try {
sm.close();
} catch (SQLException ignored) {
}
}
if (null != conn) {
try {
conn.close();
} catch (SQLException ignored) {
}
}
// 也可以直接工具类, 注意顺序
IOUtils.close(rs);
IOUtils.close(sm);
IOUtils.close(conn);
}
```
### JDBC注册驱动
```java
Class.forName("com.mysql.cj.jdbc.Driver");
DriverManager.registerDriver(new org.postgresql.Driver());
// 支持多个同时注册
System.setProperty("jdbc.drivers", "com.mysql.cj.jdbc.Driver:org.postgresql.Driver");
```
另见
---

View File

@ -27,8 +27,8 @@ JSON 备忘清单
"salary": 70000,
"married": true,
"children": [
{"name": "Tom", "age": 9, "gender":"M"},
{"name": "Ava", "age": 7, "gender":"F"}
{"name": "Tom", "age": 9},
{"name": "Ava", "age": 7}
]
}
```
@ -66,7 +66,7 @@ JSON 备忘清单
{
"url": "https://jaywcjlove.github.io",
"msg" : "Hi,\n\"Quick Reference\"",
"intro": "Share quick reference and cheat sheet for developers."
"intro": "为开发人员分享快速参考和备忘单"
}
```
@ -198,6 +198,124 @@ Have to be delimited by double quotes
}
```
JSON 5
----
### Objects
对象键可以是 ECMAScript 5.1 [IdentifierName](https://www.ecma-international.org/ecma-262/5.1/#sec-7.6)
```json
{
width: 1920,
height: 1080,
}
```
数组可以有一个尾随逗号
```json
[
1,
true,
'three',
]
```
### 允许单行和多行注释
```js
{
// 一行注释
"name": "Kenny"
}
```
多行注释
```js
{
/* 这是一个
多行注释 */
"name": "Kenny"
}
```
### 允许附加空白字符
代码点 | 描述
:-- | ---
`U+0009` | 水平制表符
`U+000A` | 换行符
`U+000B` | 垂直制表符
`U+000C` | 换页符
`U+000D` | 回车符
`U+0020` | 空格
`U+00A0` | 不间断空格
`U+2028` | 行分隔符
`U+2029` | 段落分隔符
`U+FEFF` | 字节顺序标记
Unicode Zs 类别 | 空格分隔符 Unicode 类别中的任何其他字符
<!--rehype:className=left-align-->
### 数字
数字可能有前导或尾随小数点
```json
{
integer: 123,
withFractionPart: 123.456,
onlyFractionPart: .456,
withExponent: 123e-456,
}
```
数字可以是十六进制
```json
{
positiveHex: 0xdecaf,
negativeHex: -0xC0FFEE,
}
```
数字可以是正无穷大、负无穷大和 NaN。
```json
{
positiveInfinity: Infinity,
negativeInfinity: -Infinity,
notANumber: NaN,
}
```
数字可以以明确的加号开头
### 字符串
<!--rehype:wrap-class=col-span-2-->
```js
'Lorem ipsum dolor sit amet, \
consectetur adipiscing elit.'
```
以下是代表相同的意思
```js
'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
```
```json
'\A\C\/\D\C'
```
以下是代表相同的意思
```json
'AC/DC'
```
在 JavaScript 中访问 JSON
----

149
docs/jupyter.md Normal file
View File

@ -0,0 +1,149 @@
Jupyter 备忘清单
===
Jupyter 备忘清单是 [Jupyter](http://jupyter.org) 编程工具的单页参考表
入门
----
### Jupyter 简介
Jupyter/ˈdʒuːpɪtər/是一个非营利组织致力于为多种编程语言的交互式计算开发开源软件、开放标准和服务。Jupyter 于 2014 年由 Fernando Pérez 从 `IPython` 衍生出来支持几十种编程语言的执行环境。Jupyter 项目主要开发并支持 `Jupyter Notebook`.ipynb 文件格式)、`JupyterHub``JupyterLab` 等交互式计算产品。
### 安装 Jupyter
安装 Jupyter 可以通过 pip 或 conda 来完成。
`pip install jupyter` or `conda install jupyter`
mamba 安装
`mamba install -c conda-forge jupyterlab`
### 启动 Jupyter Notebook
在命令行中输入
`jupyter notebook`
`jupyter lab` (如果使用 `Jupyter Lab`)来启动服务。
### 创建新的 Notebook
<!--rehype:wrap-class=col-span-2-->
- 打开浏览器,访问本地服务器地址(通常是 <http://localhost:8888/tree> or <http://localhost:8888/lab/tree>
- 右击文件夹,选择 `New` -> `Python 3` (或你安装的其他内核)。
- 保存 `Notebook`
- 使用菜单栏中的 `File` -> `Save and Checkpoint` 或者按快捷键 Ctrl+S (Cmd+S on Mac)。
### 关闭 Notebook
使用菜单栏中的 `File` -> `Close and Halt`
Jupyter Notebook 快捷键
---
### 命令模式 (按键 Esc 开启)
| 按键 | 操作 |
| ----------- | ---------------------------- |
| `Enter` | 转入编辑模式 |
| `Shift` `Enter` | 运行本单元,选中下个单元 |
| `Ctrl` `Enter` | 运行本单元 |
| `Alt` `Enter` | 运行本单元,在其下插入新单元 |
| `y` | 单元转入代码状态 |
| `m` | 单元转入markdown状态 |
| `R` | 单元转入raw状态 |
| `1` | 设定 1 级标题 |
| `2` | 设定 2 级标题 |
| `3` | 设定 3 级标题 |
| `4` | 设定 4 级标题 |
| `5` | 设定 5 级标题 |
| `6` | 设定 6 级标题 |
| `Up` | 选中上方单元 |
| `k` | 选中上方单元 |
| `Down` | 选中下方单元 |
| `j` | 选中下方单元 |
| `Shift` `K` | 扩大选中上方单元 |
| `Shift` `J` | 扩大选中下方单元 |
| `a` | 在上方插入新单元 |
| `b` | 在下方插入新单元 |
| `x` | 剪切选中的单元 |
| `c` | 复制选中的单元 |
| `Shift` `V` | 粘贴到上方单元 |
| `zz` | 恢复删除的最后一个单元 |
| `dd` | 删除选中的单元 |
| `Shift` `M` | 合并选中的单元 |
| `Ctrl` `S` | 文件存盘 |
| `L` | 转换行号 |
| `O` | 转换输出 |
| `Shift` `O` | 转换输出滚动 |
| `Esc` | 关闭页面 |
| `Q` | 关闭页面 |
| `H` | 显示快捷键帮助 |
| `0,0` | 重启Notebook内核 |
| `I,I` | 中断Notebook内核 |
| `Shift` | 忽略 |
| `Shift` `Space` | 向上滚动 |
| `Space` | 向下滚动 |
<!--rehype:className=shortcuts-->
### 编辑模式 ( Enter 键启动)
| 按键 | 操作 |
| ------------------- | ---------------------------- |
| `Tab` | 代码补全或缩进 |
| `Shift` `Tab` | 提示 |
| `Ctrl` `]` | 缩进 |
| `Ctrl` `[` | 解除缩进 |
| `Ctrl` `A` | 全选 |
| `Ctrl` `Z` | 复原 |
| `Ctrl` `Shift` `Z` | 再做 |
| `Ctrl` `Y` | 再做 |
| `Ctrl` `Home` | 跳到单元开头 |
| `Ctrl` `Up` | 跳到单元开头 |
| `Ctrl` `End` | 跳到单元末尾 |
| `Ctrl` `Down` | 跳到单元末尾 |
| `Ctrl` `Left` | 跳到左边一个字首 |
| `Ctrl` `Right` | 跳到右边一个字首 |
| `Ctrl` `Backspace` | 删除前面一个字 |
| `Ctrl` `Delete` | 删除后面一个字 |
| `Esc` | 进入命令模式 |
| `Ctrl` `M` | 进入命令模式 |
| `Shift` `Enter` | 运行本单元,选中下一单元 |
| `Ctrl` `Enter` | 运行本单元 |
| `Alt` `Enter` | 运行本单元,在下面插入一单元 |
| `Ctrl` `Shift` `-` | 分割单元 |
| `Ctrl` `Shift` `Subtract` | 分割单元 |
| `Ctrl` `S` | 文件存盘 |
| `Shift` | 忽略 |
| `Up` | 光标上移或转入上一单元 |
| `Down` | 光标下移或转入下一单元 |
<!--rehype:className=shortcuts-->
高级功能
---
### 魔法命令
`Jupyter Notebook` 支持一系列以 `%``%%`开头的魔法命令,这些命令可以提供特殊功能。例如,`%matplotlib inline` 可以在 `Notebook` 中内嵌绘图;`%%time` 可以测量代码执行时间。
调用 `python` 文件,可以使用 `%run` 命令来调用 `python` 文件。例如,`%run my_script.py` 可以运行当前目录下名为 `my_script.py` 的 python 文件。
### 环境管理
`Jupyter Notebook` 支持使用虚拟环境来隔离不同的项目依赖。你可以使用 `conda``venv``Python 3` 自带的虚拟环境管理工具)来创建和管理虚拟环境,并在 `Notebook` 中选择使用哪个环境。
### 扩展插件
`JupyterLab` 支持通过安装扩展插件来增强功能。你可以通过 `JupyterLab` 的扩展管理器搜索和安装扩展插件,例如代码格式化、主题更改、`Git` 集成等。
Jupyter 资源
---
### 参考资料
- [Jupyter 官方文档](https://docs.jupyter.org/)
- [Jupyter 社区](https://jupyter.org/)
- [Jupyter github](https://github.com/jupyter/jupyter)
- [Jupyterlab github](https://github.com/jupyterlab/jupyterlab)

View File

@ -24,6 +24,7 @@ Linux 命令速查表
**`w`** | 显示系统中当前登录的用户
**`whoami`** | 显示您的登录身份
**`finger username`** | 显示有关用户的信息
**`sed -ri 's/.*swap.*/#&/' /etc/fstab && swapoff -a`** | 关闭swap
<!--rehype:className=style-list-->
### 硬件
@ -154,6 +155,9 @@ Linux 命令速查表
**`tar -xf files.tar`** | 解压档案文件"files.tar"
**`tar -zcvf home.tar.gz source-folder`** | 从源文件夹创建压缩的tar存档文件
**`gzip file`** | 压缩扩展名为.gz的文件
**`zip -r compressed.zip folder/`** | 递归压缩目录`folder`为压缩文件`compressed.zip`
**`unzip compressed.zip -d folder/`** | 在目录`folder`下解压文件
**`unzip -v compressed.zip`** | 查看但不解压文件
<!--rehype:className=style-list-->
### 搜索
@ -329,6 +333,24 @@ Linux 命令速查表
`Ctrl`+`N` (Down) | 下一条命令
<!--rehype:className=left-align shortcuts-->
技巧
---
### linux技巧
<!--rehype:wrap-class=row-span-2 col-span-2-->
:--- | :---
:----------------------------------------------| :---
**`du -h / \| sort -rh \| head -20`** | 最大20个文件
**`grep -Ev '^\s*($\|#\|;)' example.conf`** | 查看去掉注释和空行
**`echo <passwd> \| passwd root --stdin`** | 单行改密码
**`find /data/app/tmp -mtime +30 -name "*.flv" -exec rm -Rf {} \;`** | 删除30天前文件
**`for file in $(ls); do sed -i 's/nmg/sz/g' "$file"; done`** | 当前目录修改字符串
**`ssh -NfR remote_port:localhost:local_port user@remote_server`** | ssh代理
**`find . -wholename "*.sh" -exec dos2unix {} \;`** | 修复脚本格式错误
**`rsync -avz /source/ user@remote:/destination/`** | 同步文件和目录到远程服务器,支持压缩和增量传输
<!--rehype:className=left-align shortcuts-->
另见
---

View File

@ -652,7 +652,7 @@ local g = math.max(1, 2, 3) -- 3
local h = math.min(1, 2, 3) -- 1
-- 返回参数的平方根
local r = math.sqrt(3) -- 9
local r = math.sqrt(9) -- 3
```
### 工具方法
@ -701,10 +701,10 @@ math.cos(math.pi) -- -1.0
math.tan(math.pi / 4) -- 1.0
-- 反正弦方法(以下皆是以弧度表示)
math.acos(1.0) -- 0.0
math.asin(1.0) -- 1.5707963267949
-- 反余弦方法
math.acos(1.0) -- 1.5707963267949
-- 反正方法
math.acos(1.0) -- 0.0
-- 反正方法
math.atan(1.0) -- 0.78539816339745
-- 角度转换为弧度

235
docs/minio.md Normal file
View File

@ -0,0 +1,235 @@
MinIO 备忘清单
===
这是 MinIO 语法的快速参考备忘单
MinIO 快速参考
----
### 基本概念
- **对象存储**:存储非结构化数据,如图片、视频等。
- **桶Bucket**MinIO中存储对象的容器类似于文件夹。
- **对象Object**:桶中存储的具体数据。
### 安装MinIO
- 从[MinIO官网](https://min.io/download)下载对应平台的MinIO服务器。
- 根据操作系统的指南进行安装。
### 启动MinIO服务
- 运行MinIO服务器通常使用以下命令
```shell
minio server /export/data1 /export/data2 /export/data3 /export/data4
```
- 其中`/export/data1`等是存储数据的路径。
### 访问MinIO
- 使用Web界面访问MinIO通常是`http://127.0.0.1:9000`。
- 使用客户端工具,如`mc`命令行工具。
### minio client 安装
<!--rehype:wrap-class=row-span-2 col-span-2-->
#### windows
下载
```bash
https://dl.min.io/client/mc/release/windows-amd64/mc.exe
\path\to\mc.exe --help
```
#### mac
安装
```bash
brew install minio/stable/mc
mc --help
```
#### linux
```sh
curl https://dl.min.io/client/mc/release/linux-amd64/mc \
--create-dirs \
-o $HOME/minio-binaries/mc
chmod +x $HOME/minio-binaries/mc
export PATH=$PATH:$HOME/minio-binaries/
```
版本比较多,请去官网查找安装步骤
### mc 连接服务操作
列出所有别名
```bash
mc alias list
```
添加服务别名
```bash
mc alias set myminio https://myminio.example.net minioadminuser minioadminpassword
```
删除服务别名
```bash
mc alias rm myminio
```
### mc 桶操作
创建桶
```sh
mc mb myminio/mybucket
```
删除桶
```sh
mc rb myminio/mybucket
```
设置桶策略
```sh
mc policy set download myminio/mybucket
```
设置桶生命周期
```sh
mc ilm import myminio/mybucket
```
### mc 文件操作
<!--rehype:wrap-class=row-span-2-->
列出文件
```sh
mc ls myminio/mybucket
```
上传文件
```sh
mc cp /path/to/file myminio/mybucket/file
```
下载文件
```sh
mc cp myminio/mybucket/file /path/to/destination
```
删除文件
```sh
mc rm myminio/mybucket/file
```
移动文件
```sh
mc mv myminio/mybucket/file myminio/mybucket/newfile
```
拷贝文件
```sh
mc cp myminio/mybucket/file myminio/mybucket/newfile
```
查找文件
```sh
mc find myminio/mydata --name "*.jpg"
```
### mc 文件夹操作
<!--rehype:wrap-class=row-span-2-->
列出文件夹
```sh
mc ls myminio/mybucket/folder
```
创建文件夹
```sh
mc mb myminio/mybucket/folder
```
删除文件夹
```sh
mc rb myminio/mybucket/folder
```
移动文件夹
```sh
mc mv myminio/mybucket/folder myminio/mybucket/newfolder
```
拷贝文件夹
```sh
mc cp myminio/mybucket/folder myminio/mybucket/newfolder
```
删除文件夹中的所有文件
```sh
mc rm --recursive myminio/mybucket/folder
```
列出文件夹中的所有文件
```sh
mc ls --recursive myminio/mybucket/folder
```
列出文件夹中的所有文件,包括子文件夹
```sh
mc ls --recursive --include-folders myminio/mybucket/folder
```
### mc 其他操作
列出所有桶
```sh
mc ls myminio
```
显示帮助信息
```sh
mc help
```
版本信息
```sh
mc version
```
另见
---
- [MinIO官方文档](https://min.io/docs/minio/kubernetes/upstream/) _(min.io)_
- [MinIO github 源码](https://github.com/minio/minio) _(github.com)_

View File

@ -167,10 +167,11 @@ ALTER TABLE t DROP constraint;
ALTER TABLE t1 RENAME TO t2;
```
将列c1重命名为c2
将列 c1 重命名为 c2
```sql
ALTER TABLE t1 RENAME c1 TO c2 ;
ALTER TABLE t1 CHANGE c1 c2 datatype;
ALTER TABLE table_name RENAME COLUMN c1 TO c2;
```
将列c1的数据类型改为datatype

View File

@ -892,6 +892,89 @@ location = /robots.txt {
}
```
### 获取请求ip
<!--rehype:wrap-class=col-span-3-->
```nginx
server {
listen 80;
server_name xxx.top;
location / {
access_log /data/logs/nginx/json_ip.log json;
proxy_set_header Host $http_host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:9999;
}
}
server {
listen 9999;
location / {
access_log off;
default_type application/json;
return 200 "{\"ip\":\"$http_X_Real_Ip\"}";
}
}
```
### 判断请求参数
<!--rehype:wrap-class=col-span-3-->
```nginx
# 判断多个参数示例
set $flagts 0;
if ( $arg_aaa ~ "^aaa" ) {
set $flagts "${flagts}1";
}
if ( $arg_bbb ~ "^bbb" ) {
set $flagts "${flagts}1";
}
if ( $flagts = "011" ) {
return 200;
}
```
### 流量镜像配置
<!--rehype:wrap-class=col-span-3-->
```nginx
server {
listen 80;
server_name 192.168.1.1;
location = /mirror1 {
internal;
#### address1 ####
proxy_set_header Host mirror1.com;
proxy_pass http://127.0.0.1:8008/api/service/list;
}
location = /mirror2 {
internal;
#### address2 ####
proxy_set_header Host mirror2.com;
proxy_pass http://127.0.0.1:8009/api/service/list;
}
# 只转发这个接口
location /api/service/list {
access_log /data/logs/nginx/json_test_to_mirror.log json;
mirror /mirror1;
mirror /mirror2;
proxy_pass http://127.0.0.1:8007;
}
location / {
access_log /data/logs/nginx/json_test.log json;
proxy_pass http://192.168.1.1:8007;
}
}
```
另见
---

316
docs/ports.md Normal file
View File

@ -0,0 +1,316 @@
常用端口 备忘清单
===
这是一份常见端口的对照清单。
端口对照清单
----
### 最常用端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ---- | -------------- | ------------------------------------------------------------ |
| `1` | TCP | tcpmux | TCP端口服务多路复用 |
| `5` | TCP | rje | 远程作业入口 |
| `7` | TCP | echo | Echo服务 |
| `9` | TCP | discard | 用于连接测试的空服务 |
| `11` | TCP | systat | 用于列举连接了的端口的系统状态 |
| `13` | TCP | daytime | 给请求主机发送日期和时间 |
| `17` | TCP | qotd | 给连接了的主机发送每日格言 |
| `18` | TCP | msp | 消息发送协议 |
| `19` | TCP | chargen | 字符生成服务;发送无止境的字符流 |
| `20` | TCP | ftp-data | FTP数据端口 |
| `21` | TCP | ftp | 文件传输协议FTP端口有时被文件服务协议FSP使用 |
| `22` | TCP | ssh | 安全ShellSSH服务 |
| `23` | TCP | telnet | Telnet服务 |
| `25` | TCP | smtp | 简单邮件传输协议SMTP |
| `37` | TCP | time | 时间协议 |
| `39` | TCP | rlp | 资源定位协议 |
| `42` | TCP | nameserver | 互联网名称服务 |
| `43` | TCP | nicname | WHOIS目录服务 |
| `49` | TCP | tacacs | 用于基于TCP/IP验证和访问的终端访问控制器访问控制系统 |
| `50` | TCP | re-mail-ck | 远程邮件检查协议 |
| `53` | TCP | domain | 域名服务如BIND |
| `63` | TCP | whois++ | WHOIS++被扩展了的WHOIS服务 |
| `67` | TCP | bootps | 引导协议BOOTP服务还被动态主机配置协议DHCP服务使用 |
| `68` | TCP | bootpc | BootstrapBOOTP客户还被动态主机配置协议DHCP客户使用 |
| `69` | TCP | tftp | 小文件传输协议TFTP |
| `70` | TCP | gopher | Gopher互联网文档搜寻和检索 |
| `71` | TCP | netrjs-1 | 远程作业服务 |
| `72` | TCP | netrjs-2 | 远程作业服务 |
| `73` | TCP | netrjs-3 | 远程作业服务 |
| `73` | TCP | netrjs-4 | 远程作业服务 |
| `79` | TCP | finger | 用于用户联系信息的Finger服务 |
| `80` | TCP | http | 用于万维网WWW服务的超文本传输协议HTTP |
| `88` | TCP | kerberos | Kerberos网络验证系统 |
| `95` | TCP | supdup | Telnet协议扩展 |
| `101` | TCP | hostname | SRI-NIC机器上的主机名服务 |
| `102` | TCP | iso-tsap | ISO开发环境ISODE网络应用 |
| `105` | TCP | csnet-ns | 邮箱名称服务器也被CSO名称服务器使用 |
| `107` | TCP | rtelnet | 远程Telnet |
| `109` | TCP | pop2 | 邮局协议版本2 |
| `110` | TCP | pop3 | 邮局协议版本3 |
| `111` | TCP | sunrpc | 用于远程命令执行的远程过程调用RPC协议被网络文件系统NFS使用 |
| `113` | TCP | auth | 验证和身份识别协议 |
| `115` | TCP | sftp | 安全文件传输协议SFTP服务 |
| `117` | TCP | uucp-path | Unix到Unix复制协议UUCP路径服务 |
| `119` | TCP | nntp | 用于USENET讨论系统的网络新闻传输协议NNTP |
| `123` | TCP | ntp | 网络时间协议NTP |
| `137` | TCP | netbios-ns | 在红帽企业Linux中被Samba使用的NETBIOS名称服务 |
| `138` | TCP | netbios-dgm | 在红帽企业Linux中被Samba使用的NETBIOS数据报服务 |
| `139` | TCP | netbios-ssn | 在红帽企业Linux中被Samba使用的NET BIOS会话服务 |
| `143` | TCP | imap | 互联网消息存取协议IMAP |
| `161` | TCP | snmp | 简单网络管理协议SNMP |
| `162` | TCP | snmptrap | SNMP的陷阱 |
| `163` | TCP | cmip-man | 通用管理信息协议CMIP |
| `164` | TCP | cmip-agent | 通用管理信息协议CMIP |
| `174` | TCP | mailq | MAILQ |
| `177` | TCP | xdmcp | X显示管理器控制协议 |
| `178` | TCP | nextstep | NeXTStep窗口服务器 |
| `179` | TCP | bgp | 边界网络协议 |
| `191` | TCP | prospero | Cliffod Neuman的Prospero服务 |
| `194` | TCP | irc | 互联网中继聊天IRC |
| `199` | TCP | smux | SNMP UNIX多路复用 |
| `201` | TCP | at-rtmp | AppleTalk选路 |
| `202` | TCP | at-nbp | AppleTalk名称绑定 |
| `204` | TCP | at-echo | AppleTalk echo服务 |
| `206` | TCP | at-zis | AppleTalk区块信息 |
| `209` | TCP | qmtp | 快速邮件传输协议QMTP |
| `210` | TCP | z39.50 | NISO Z39.50数据库 |
| `213` | TCP | ipx | 互联网络分组交换协议IPX被Novell Netware环境常用的数据报协议 |
| `220` | TCP | imap3 | 互联网消息存取协议版本3 |
| `245` | TCP | link | LINK |
| `347` | TCP | fatserv | Fatmen服务器 |
| `363` | TCP | rsvp_tunnel | RSVP隧道 |
| `369` | TCP | rpc2portmap | Coda文件系统端口映射器 |
| `370` | TCP | codaauth2 | Coda文件系统验证服务 |
| `372` | TCP | ulistproc | UNIX Listserv |
| `389` | TCP | ldap | 轻型目录存取协议LDAP |
| `427` | TCP | svrloc | 服务位置协议SLP |
| `434` | TCP | mobileip-agent | 可移互联网协议IP代理 |
| `435` | TCP | mobilip-mn | 可移互联网协议IP管理器 |
| `443` | TCP | https | 安全超文本传输协议HTTP |
| `444` | TCP | snpp | 小型网络分页协议 |
| `445` | TCP | microsoft-ds | 通过TCP/IP的服务器消息块SMB |
| `464` | TCP | kpasswd | Kerberos口令和钥匙改换服务 |
| `468` | TCP | photuris | Photuris会话钥匙管理协议 |
| `487` | TCP | saft | 简单不对称文件传输SAFT协议 |
| `488` | TCP | gss-http | 用于HTTP的通用安全服务GSS |
| `496` | TCP | pim-rp-disc | 用于协议独立的多址传播PIM服务的会合点发现RP-DISC |
| `500` | TCP | isakmp | 互联网安全关联和钥匙管理协议ISAKMP |
| `535` | TCP | iiop | 互联网内部对象请求代理协议IIOP |
| `538` | TCP | gdomap | GNUstep分布式对象映射器GDOMAP |
| `546` | TCP | dhcpv6-client | 动态主机配置协议DHCP版本6客户 |
| `547` | TCP | dhcpv6-server | 动态主机配置协议DHCP版本6服务 |
| `554` | TCP | rtsp | 实时流播协议RTSP |
| `563` | TCP | nntps | 通过安全套接字层的网络新闻传输协议NNTPS |
| `565` | TCP | whoami | whoami |
| `587` | TCP | submission | 邮件消息提交代理MSA |
| `610` | TCP | npmp-local | 网络外设管理协议NPMP本地/分布式排队系统DQS |
| `611` | TCP | npmp-gui | 网络外设管理协议NPMPGUI/分布式排队系统DQS |
| `612` | TCP | hmmp-ind | HMMP指示/DQS |
| `631` | TCP | ipp | 互联网打印协议IPP |
| `636` | TCP | ldaps | 通过安全套接字层的轻型目录访问协议LDAPS |
| `674` | TCP | acap | 应用程序配置存取协议ACAP |
| `694` | TCP | ha-cluster | 用于带有高可用性的群集的心跳服务 |
| `749` | TCP | kerberos-adm | Kerberos版本5v5的“kadmin”数据库管理 |
| `750` | TCP | kerberos-iv | Kerberos版本4v4服务 |
| `765` | TCP | webster | 网络词典 |
| `767` | TCP | phonebook | 网络电话簿 |
| `873` | TCP | rsync | rsync文件传输服务 |
| `992` | TCP | telnets | 通过安全套接字层的TelnetTelnetS |
| `993` | TCP | imaps | 通过安全套接字层的互联网消息存取协议IMAPS |
| `994` | TCP | ircs | 通过安全套接字层的互联网中继聊天IRCS |
| `995` | TCP | pop3s | 通过安全套接字层的邮局协议版本3POPS3 |
<!--rehype:className=show-header left-align-->
### UNIX特有的端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ---- | ------------------------ | ----------------------------------------------------- |
| `512` | TCP | exec | 用于对远程执行的进程进行验证 |
| `512` | UDP | biff[comsat] | 异步邮件客户biff和服务comsat |
| `513` | TCP | login | 远程登录rlogin |
| `513` | UDP | who[whod] | 登录的用户列表 |
| `514` | TCP | shell[cmd] | 不必登录的远程shellrshell和远程复制rcp |
| `514` | UDP | syslog | UNIX系统日志服务 |
| `515` | TCP | printer[spooler] | 打印机lpr假脱机 |
| `517` | UDP | talk | 远程对话服务和客户 |
| `518` | UDP | ntalk | 网络交谈ntalk远程对话服务和客户 |
| `519` | TCP | utime[unixtime] | UNIX时间协议utime |
| `520` | TCP | efs | 扩展文件名服务器EFS |
| `520` | UDP | router[route,routed] | 选路信息协议RIP |
| `521` | TCP | ripng | 用于互联网协议版本6IPv6的选路信息协议 |
| `525` | TCP | timed[timeserver] | 时间守护进程timed |
| `526` | TCP | tempo[newdate] | Tempo |
| `530` | TCP | courier[rpc] | Courier远程过程调用RPC协议 |
| `531` | TCP | conference[chat] | 互联网中继聊天 |
| `532` | TCP | netnews | Netnews |
| `533` | UDP | netwall | 用于紧急广播的Netwall |
| `540` | TCP | uucp[uucpd] | Unix到Unix复制服务 |
| `543` | TCP | klogin | Kerberos版本5v5远程登录 |
| `544` | TCP | kshell | Kerberos版本5v5远程shell |
| `548` | TCP | afpovertcp | 通过传输控制协议TCP的Appletalk文件编制协议AFP |
| `556` | TCP | remotefs[rfs_server,rfs] | Brunhoff的远程文件系统RFS |
<!--rehype:className=show-header left-align-->
### 注册的端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ------- | ----------------------- | ----------------------------------------------------- |
| `1080` | TCP | socks | SOCKS网络应用程序代理服务 |
| `1236` | TCP | bvcontrol[rmtcfg] | Garcilis Packeten远程配置服务器 |
| `1300` | TCP | h323hostcallsc | H.323电话会议主机电话安全 |
| `1433` | TCP | ms-sql-s | Microsoft SQL服务器 |
| `1434` | TCP | ms-sql-m | Microsoft SQL监视器 |
| `1494` | TCP | ica | Citrix ICA客户 |
| `1512` | TCP | wins | Microsoft Windows互联网名称服务器 |
| `1524` | TCP | ingreslock | Ingres数据库管理系统DBMS锁定服务 |
| `1525` | TCP | prospero-np | 无特权的Prospero |
| `1645` | TCP | datametrics[old-radius] | Datametrics/从前的radius项目 |
| `1646` | TCP | sa-msg-port[oldradacct] | sa-msg-port/从前的radacct项目 |
| `1649` | TCP | kermit | Kermit文件传输和管理服务 |
| `1701` | TCP | l2tp[l2f] | 第2层隧道服务LT2P/第2层转发L2F |
| `1718` | TCP | h323gatedisc | H.323电讯守门装置发现机制 |
| `1719` | TCP | h323gatestat | H.323电讯守门装置状态 |
| `1720` | TCP | h323hostcall | H.323电讯主持电话设置 |
| `1758` | TCP | tftp-mcast | 小文件FTP组播 |
| `1759` | TCP | mtftp | 组播小文件FTPMTFTP |
| `1789` | TCP | hello | Hello路由器通信端口 |
| `1812` | TCP | radius | Radius拨号验证和记帐服务 |
| `1813` | TCP | radius-acct | Radius记帐 |
| `1911` | TCP | mtp | Starlight网络多媒体传输协议MTP |
| `1985` | TCP | hsrp | Cisco热备用路由器协议 |
| `1986` | TCP | licensedaemon | Cisco许可管理守护进程 |
| `1997` | TCP | gdp-port | Cisco网关发现协议GDP |
| `2049` | TCP | nfs[nfsd] | 网络文件系统NFS |
| `2102` | TCP | zephyr-srv | Zephyr通知传输和发送服务器 |
| `2103` | TCP | zephyr-clt | Zephyr serv-hm连接 |
| `2104` | TCP | zephyr-hm | Zephyr主机管理器 |
| `2401` | TCP | cvspserver | 并行版本系统CVS客户/服务器操作 |
| `2430` | TCP/UDP | venus | 用于Coda文件系统codacon端口的Venus缓存管理器 |
| `2431` | TCP/UDP | venus-se | Venus传输控制协议TCP的副作用 |
| `2432` | UDP | codasrv | Coda文件系统服务器端口 |
| `2433` | TCP/UDP | codasrv-se | Coda文件系统TCP/UDP副作用 |
| `2600` | TCP | hpstgmgr[zebrasrv] | HPSTGMGRZebra选路 |
| `2601` | TCP | discp-client[zebra] | discp客户Zebra集成的shell |
| `2602` | TCP | discp-server[ripd] | discp服务器选路信息协议守护进程ripd |
| `2603` | TCP | servicemeter[ripngd] | 服务计量用于IPv6的RIP守护进程 |
| `2604` | TCP | nsc-ccs[ospfd] | NSC CCS开放式短路径优先守护进程ospfd |
| `2605` | TCP | nsc-posa | NSC POSA边界网络协议守护进程bgpd |
| `2606` | TCP | netmon[ospf6d] | Dell Netmon用于IPv6的OSPF守护进程ospf6d |
| `2809` | TCP | corbaloc | 公共对象请求代理体系CORBA命名服务定位器 |
| `3130` | TCP | icpv2 | 互联网缓存协议版本2v2被Squid代理缓存服务器使用 |
| `3306` | TCP | mysql | MySQL数据库服务 |
| `3346` | TCP | trnsprntproxy | Trnsprnt代理 |
| `4011` | TCP | pxe | 执行前环境PXE服务 |
| `4321` | TCP | rwhois | 远程Whoisrwhois服务 |
| `4444` | TCP | krb524 | Kerberos版本5v5到版本4v4门票转换器 |
| `5002` | TCP | rfe | 无射频以太网RFE音频广播系统 |
| `5308` | TCP | cfengine | 配置引擎Cfengine |
| `5999` | TCP | cvsup[CVSup] | CVSup文件传输和更新工具 |
| `6000` | TCP | x11[X] | X窗口系统服务 |
| `7000` | TCP | afs3-fileserver | Andrew文件系统AFS文件服务器 |
| `7001` | TCP | afs3-callback | 用于给缓存管理器回电的AFS端口 |
| `7002` | TCP | afs3-prserver | AFS用户和组群数据库 |
| `7003` | TCP | afs3-vlserver | AFS文件卷位置数据库 |
| `7004` | TCP | afs3-kaserver | AFS Kerberos验证服务 |
| `7005` | TCP | afs3-volser | AFS文件卷管理服务器 |
| `7006` | TCP | afs3-errors | AFS错误解释服务 |
| `7007` | TCP | afs3-bos | AFS基本监查进程 |
| `7008` | TCP | afs3-update | AFS服务器到服务器更新器 |
| `7009` | TCP | afs3-rmtsys | AFS远程缓存管理器服务 |
| `9876` | TCP | sd | 会话指引器 |
| `10080` | TCP | amanda | 高级Maryland自动网络磁盘归档器Amanda备份服务 |
| `11371` | TCP | pgpkeyserver | 良好隐私PGP/GNU隐私卫士GPG公钥服务器 |
| `11720` | TCP | h323callsigalt | H.323调用信号交替 |
| `13720` | TCP | bprd | Veritas NetBackup请求守护进程bprd |
| `13721` | TCP | bpdbm | Veritas NetBackup数据库管理器bpdbm |
| `13722` | TCP | bpjava-msvc | Veritas NetBackup Java/Microsoft Visual C++(MSVC)协议 |
| `13724` | TCP | vnetd | Veritas网络工具 |
| `13782` | TCP | bpcd | Vertias NetBackup |
| `13783` | TCP | vopied | Veritas VOPIED协议 |
| `22273` | TCP | wnn6[wnn4] | 假名/汉字转换系统 |
| `26000` | TCP | quake | Quake以及相关的多人游戏服务器 |
| `26208` | TCP | wnn6-ds | - |
| `33434` | TCP | traceroute | Traceroute网络跟踪工具 |
<!--rehype:className=show-header left-align-->
### 数据报传递协议端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ---- | -------- | ------------------ |
| `1` | DDP | rtmp | 路由表管理协议 |
| `2` | DDP | nbp | 名称绑定协议 |
| `4` | DDP | echo | AppleTalk Echo协议 |
| `6` | DDP | zip | 区块信息协议 |
<!--rehype:className=show-header left-align-->
### Kerberos工程Athena/MIT端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ---- | --------------- | ----------------------------------- |
| `751` | TCP | kerberos_master | Kerberos验证 |
| `752` | TCP | passwd_server | Kerberos口令kpasswd服务器 |
| `754` | TCP | krb5_prop | Kerberos v5从属传播 |
| `760` | TCP | krbupdate[kreg] | Kerberos注册 |
| `1109` | TCP | kpop | Kerberos邮局协议KPOP |
| `2053` | TCP | knetd | Kerberos多路分用器 |
| `2105` | TCP | eklogin | Kerberos v5加密的远程登录rlogin |
<!--rehype:className=show-header left-align-->
### 未注册的端口
<!--rehype:wrap-class=col-span-4-->
| 端口号 | 协议 | 使用程序 | 备注/用途 |
| ------ | ---- | ------------------------ | ----------------------------------------------------------- |
| `15` | TCP | netstat | 网络状态netstat |
| `98` | TCP | linuxconf | Linuxconf Linux管理工具 |
| `106` | TCP | poppassd | 邮局协议口令改变守护进程POPPASSD |
| `465` | TCP | smtps | 通过安全套接字层的简单邮件传输协议SMTPS |
| `616` | TCP | gii | 使用网关的(选路守护进程)互动界面 |
| `808` | TCP | omirr[omirrd] | 联机镜像Omirr文件镜像服务 |
| `871` | TCP | supfileserv | 软件升级协议SUP服务器 |
| `901` | TCP | swat | Samba万维网管理工具SWAT |
| `953` | TCP | rndc | Berkeley互联网名称域版本9BIND 9远程名称守护进程配置工具 |
| `1127` | TCP | sufiledbg | 软件升级协议SUP调试 |
| `1178` | TCP | skkserv | 简单假名到汉字SKK日文输入服务器 |
| `1313` | TCP | xtel | 法国Minitel文本信息系统 |
| `1529` | TCP | support[prmsd,gnatsd] | GNATS错误跟踪系统 |
| `2003` | TCP | cfinger | GNU Finger服务 |
| `2150` | TCP | ninstall | 网络安装服务 |
| `2988` | TCP | afbackup | afbackup客户-服务器备份系统 |
| `3128` | TCP | squid | Squid万维网代理缓存 |
| `3455` | TCP | prsvp | RSVP端口 |
| `5432` | TCP | postgres | PostgreSQL数据库 |
| `4557` | TCP | fax | FAX传输服务旧服务 |
| `4559` | TCP | hylafax | HylaFAX客户-服务器协议(新服务) |
| `5232` | TCP | sgi-dgl | SGI分布式图形库 |
| `5354` | TCP | noclog | NOCOL网络操作中心记录守护进程noclogd |
| `5355` | TCP | hostmon | NOCOL网络操作中心主机监视 |
| `5680` | TCP | canna | Canna日文字符输入界面 |
| `6010` | TCP | x11-ssh-offset | 安全ShellSSHX11转发偏移 |
| `6667` | TCP | ircd | 互联网中继聊天守护进程ircd |
| `7100` | TCP | xfs | X字体服务器XFS |
| `7666` | TCP | tircproxy | Tircproxy IRC代理服务 |
| `8008` | TCP | http-alt | 超文本传输协议HTTP的另一选择 |
| `8080` | TCP | webcache | 万维网WWW缓存服务 |
| `8081` | TCP | tproxy | 透明代理 |
| `9100` | TCP | jetdirect[laserjet,hplj] | Hewlett-Packard(HP)JetDirect网络打印服务 |
| `9359` | TCP | mandelspawn[mandelbrot] | 用于X窗口系统的并行Mandelbrot生成程序 |
| `10081` | TCP | kamanda | 使用Kerberos的Amanda备份服务 |
| `10082` | TCP | amandaidx | Amanda备份服务 |
| `10083` | TCP | amidxtape | Amanda备份服务 |
| `20011` | TCP | isdnlog | 综合业务数字网ISDN登录系统 |
| `20012` | TCP | vboxd | ISDN音箱守护进程vboxd |
| `22305` | TCP | wnn4_Kr | kWnn韩文输入系统 |
| `22289` | TCP | wnn4_Cn | cWnn中文输入系统 |
| `22321` | TCP | wnn4_Tw | tWnn中文输入系统台湾 |
| `24554` | TCP | binkp | Binkley TCP/IP Fidonet邮寄程序守护进程 |
| `27374` | TCP | asp | 地址搜索协议 |
| `60177` | TCP | tfido | Ifmail FidoNet兼容邮寄服务 |
| `60179` | TCP | fido | FidoNet电子邮件和新闻网络 |
<!--rehype:className=show-header left-align-->

View File

@ -177,7 +177,7 @@ SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_sch
SELECT * FROM pg_catalog.pg_tables
```
表表架
出表结
```sql
\d <table_name>

418
docs/powershell.md Normal file
View File

@ -0,0 +1,418 @@
PowerShell 备忘清单
===
PowerShell 用于自动化任务和配置管理的常用命令的备忘清单,可帮助系统管理员快速参考常用操作。
常用操作
---
### 辅助命令
<!--rehype:wrap-class=row-span-2-->
**_PowerShell 的命令遵循动词-名词格式_** 一些常见的动词:
| 动词 | 描述 |
| ------- | ------------------------ |
| Get | 用于检索信息 |
| Set | 用于配置或更改设置 |
| New | 用于创建新对象实例 |
| Remove | 用于删除或移除项目 |
| Invoke | 用于执行特定的操作或动作 |
| Start | 用于启动进程或操作 |
| Stop | 用于停止或终止进程或操作 |
| Enable | 用于激活或启用功能 |
| Disable | 用于停用或禁用功能 |
| Test | 用于执行测试或检查 |
| Update | 用于更新或刷新数据或配置 |
列出可用模块
```PowerShell
Get-Module --ListAvailable
```
列出可用的 cmdlet 和函数
```PowerShell
Get-Command -Module ActiveDirectory
```
列出别名及其对应的 cmdlet 名称
```PowerShell
Get-Alias | Select-Object Name, Definition
```
获取帮助
```PowerShell
Get-Help <cmd>
Get-Help <cmd> -Examples
Get-Help -Name Get-Process -Parameter Id
```
**Get-Member:** 显示对象的属性和方法
```PowerShell
Get-Process | Get-Member
```
### 对象操作
<!--rehype:wrap-class=col-span-2-->
**Select-Object:** 选择对象的特定属性或自定义其显示
```PowerShell
Get-Process | Select-Object Name, CPU
```
**Where-Object:** 根据指定条件过滤对象
```PowerShell
Get-Service | Where-Object { $PSItem.Status -eq 'Running' }
#OR
Get-Service | ? { $_.Status -eq 'Running' }
```
**Measure-Object:** 计算对象属性的统计信息,如总和、平均值和计数
```PowerShell
Get-Process | Measure-Object -Property WorkingSet -Sum
```
**ForEach-Object:** 对集合中的每个对象执行操作(注意:以下命令将为当前目录中的文件/文件夹添加前缀)
```PowerShell
Get-ChildItem | ForEach-Object { Rename-Item $_ -NewName "Prefix_$_" }
```
**Sort-Object:** 按指定属性对对象进行排序
```PowerShell
Get-ChildItem | Sort-Object Length -Descending
```
**Format-Table:** 将输出格式化为带有指定列的表格
```PowerShell
Get-Service | Format-Table -AutoSize # ft alias
```
**Format-List:** 将输出格式化为属性和值的列表
```PowerShell
Get-Process | Format-List -Property Name, CPU # fl alias
```
### 文件系统
<!--rehype:wrap-class=col-span-2-->
```PowerShell
New-Item -path file.txt -type 'file' -value 'contents'
New-Item -path file.txt -type 'dir'
Copy-Item <src> -destination <dest>
Move-Item -path <src> -destination <dest>
Remove-Item <file>
Test-Path <path>
Rename-Item -path <path> -newname <newname>
# using .NET Base Class Library
[System.IO.File]::WriteAllText('test.txt', '')
[System.IO.File]::Delete('test.txt')
Get-Content -Path "test.txt"
Get-Process | Out-File -FilePath "processes.txt"# 输出到文件
Get-Process | Export-Csv -Path "processes.csv" # 输出到 CSV
$data = Import-Csv -Path "data.csv" # 从 CSV 导入
```
系统管理
---
### 获取信息
```PowerShell
# 获取 BIOS 信息
Get-CimInstance -ClassName Win32_BIOS
# 获取本地连接的物理磁盘设备信息
Get-CimInstance -ClassName Win32_DiskDrive
# 获取安装的物理内存RAM信息
Get-CimInstance -ClassName Win32_PhysicalMemory
# 获取安装的网络适配器(物理 + 虚拟)信息
Get-CimInstance -ClassName Win32_NetworkAdapter
# 获取安装的图形/显卡GPU信息
Get-CimInstance -ClassName Win32_VideoController
```
### 命名空间 & 类
列出所有类名
```PowerShell
Get-CimClass | Select-Object -ExpandProperty CimClassName
```
<!--rehype:className=wrap-text-->
探索 root\cimv2 命名空间中的各种 WMI 类
```PowerShell
Get-CimClass -Namespace root\cimv2
```
<!--rehype:className=wrap-text-->
探索 root\cimv2 命名空间下的子 WMI 命名空间
```PowerShell
Get-CimInstance -Namespace root -ClassName __NAMESPACE
```
<!--rehype:className=wrap-text-->
### 网络管理
```PowerShell
# 测试与远程主机的网络连接
Test-Connection -ComputerName google.com
# 获取网络适配器信息
Get-NetAdapter
# 获取 IP 地址信息
Get-NetIPAddress
# 获取路由表信息
Get-NetRoute
# 测试远程主机上的端口是否开放
Test-NetConnection google.com -Port 80
```
### 用户和组管理
```PowerShell
# 获取本地用户账户信息
Get-LocalUser
# 创建新的本地用户账户
New-LocalUser -Name NewUser -Password (ConvertTo-SecureString "Password123" -AsPlainText -Force)
# 删除本地用户账户
Remove-LocalUser -Name UserToRemove
# 获取本地组信息
Get-LocalGroup
# 将成员添加到本地组
Add-LocalGroupMember -Group Administrators -Member UserToAdd
```
### 安全性和权限
获取文件/目录的访问控制列表
```PowerShell
Get-Acl C:\Path\To\File.txt
```
设置文件/目录的访问控制列表
```PowerShell
Set-Acl -Path C:\Path\To\File.txt -AclObject $aclObject
```
<!--rehype:className=wrap-text-->
### 注册表管理
```PowerShell
# 获取注册表键值
Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Select DisplayName, DisplayVersion
# 设置注册表键值
Set-ItemProperty -Path "HKLM:\Software\MyApp" -Name "SettingName" -Value "NewValue"
# 创建新的注册表键值
New-ItemProperty -Path "HKCU:\Software\MyApp" -Name "NewSetting" -Value "NewValue" -PropertyType String
# 删除注册表键值
Remove-ItemProperty -Path "HKCU:\Software\MyApp" -Name "SettingToRemove"
# 检查注册表键是否存在
Test-Path "HKLM:\Software\MyApp"
```
## 脚本
### 变量
初始化变量,指定或不指定类型:
```PowerShell
$var = 0
[int] $var = 'Trevor' # (抛出异常)
[string] $var = 'Trevor' # (不会抛出异常)
$var.GetType()
# 多重赋值
$a,$b,$c = 'a','b','c'
# 创建数组
$arrayvar = @('va1','va2')
# 创建字典
$dict = @{k1 = 'test'; k2 = 'best'}
```
变量命令
```PowerShell
New-Variable -Name FirstName -Value Trevor
New-Variable FirstName -Value Trevor -Option <ReadOnly/Constant>
Get-Variable
Get-Variable | ? { $PSItem.Options -contains 'constant' }
Get-Variable | ? { $PSItem.Options -contains 'readonly' }
Remove-Variable -Name firstname
# 删除只读变量
Remove-Variable -Name firstname -Force
```
变量类型int32, int64, string, bool
### 运算符
```PowerShell
# 运算符
# (a <op> b)
= , += / -= , ++ / --
-eq / -ne , -lt / -gt , -le / -ge
$FirstName = 'Trevor'
$FirstName -like 'T*'
$true; $false # 布尔值 true/false
# 三元运算符
$FoodToEat = $BaconIsYummy ? 'bacon' : 'beets'
# -notin 或 -in
'Celery' -in @('Bacon', 'Sausage', 'Steak')
# 输出: True
5 -is [int32]
# 正则表达式匹配,可以使用数组
'Trevor' -match '^T\w*'
# 查找多个匹配项
$regex = [regex]'(\w*)'
$regex.Matches('this is test').Value
```
### Structure
#### 输入输出操作
```PowerShell
"This displays a string"
Write-Host "color" -ForegroundColor Red
$age = Read-host "Enter age"
$pwd = Read-host "password" -asSecureString
Clear-Host
```
#### 流控制
```PowerShell
IF(<#Condition#>){
<#Commands#>}ELSEIF(){}ELSE{}
Switch($var){
"val1"{<#Commands#>; break}
"val2"{<#Commands#>; break}
}
For($ct=0;$ct -le 3;$ct++){}
ForEach($var in $arr){}
while($var -ne 0){}
Do{}While()
```
### 函数 / 模块
#### 示例 1
```PowerShell
function funcname{
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[String]$user
)
Write-Host "welcome " $user
return "value"
}
$var = funcname -user pcb
```
#### 示例 2
```PowerShell
function Get-EvenNumbers {
[CmdletBinding()]
param (
[Parameter(ValueFromPipeline = $true)]
[int] $Number
)
begin {<#command#>}
process {
if ($Number % 2 -eq 0) {
Write-Output $Number
}
}
end {<#command#>}
}
1..10 | Get-EvenNumbers
```
#### 模块
```PowerShell
# PowerShell 在路径中查找模块
$env:PSModulePath
# 列出系统上安装的所有模块
Get-Module -ListAvailable
# 列出当前会话中导入的模块
Get-Module
Import-Module <moduleName>
Remove-Module <moduleName>
Find-Module -Tag cloud
Find-Module -Name ps*
# 创建一个内存中的 PowerShell 模块
New-Module -Name trevor -ScriptBlock {
function Add($a,$b) { $a + $b } }
```
### 注意
- 在大多数语言中,转义字符是反斜杠 **\\**,而在 PowerShell 中是反引号 **`**
## 参考
- [Microsoft PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/samples/sample-scripts-for-administration?view=powershell-7.3) _(learn.microsoft.com)_
- [cheatsheets](https://cheatsheets.zip/powershell)

View File

@ -404,7 +404,15 @@ export const Student = (
| `快捷键` | 说明 |
<!--rehype:className=shortcuts-->
添加 `<!--rehype:className=shortcuts-->` 样式类,展示快捷键样式。
列添加 `<!--rehype:className=shortcuts-->` 样式类,展示快捷键样式。
| Key | value |
| ---- | ---- |
| 说明 | `快捷键` |
| 说明 | `快捷键` |
<!--rehype:className=shortcuts-last-->
列尾添加 `<!--rehype:className=shortcuts-last-->` 样式类,展示快捷键样式。
### 代码行号
@ -479,7 +487,8 @@ const school = <div>学校</div>;
---- | ----
`<!--rehype:className=wrap-text-->` | 强制`换行`
`<!--rehype:className=show-header-->` | 展示表格`表头`
`<!--rehype:className=shortcuts-->` | `快捷键`样式
`<!--rehype:className=shortcuts-->` | 首列`快捷键`样式
`<!--rehype:className=shortcuts-last-->` | 尾列`快捷键`样式
`<!--rehype:className=auto-wrap-->` | 隐藏表头强制小尺寸`自动换行`
`<!--rehype:className=style-list-arrow-->` | 列表`箭头`样式展示表格
`<!--rehype:className=style-list-->` | `列表`样式展示表格
@ -1009,7 +1018,7 @@ H2 部分 - 5列效果展示
...
```
[#示例](https://github.com/jaywcjlove/reference/blob/ee03850619440e3700ed68ccc2ed21d3591a1490/docs/quickreference.md?plain=1#L986-L991)<!--rehype:target=__blank-->
[#示例](https://github.com/jaywcjlove/reference/blob/8ae69f23860c1854a81aeceb81a6cc0bc0998fc4/docs/quickreference.md?plain=1#L1012-L1021)<!--rehype:target=__blank-->
### Two

View File

@ -16,7 +16,7 @@ React 备忘清单
React 是一个用于构建用户界面的 JavaScript 库
- [React 官方文档](https://reactjs.org/) _(reactjs.org)_
- [React 官方文档](https://react.dev) _(react.dev)_
- [Styled Components 备忘清单](./styled-components.md) _(jaywcjlove.github.io)_
- [TypeScript JSX 备忘清单](./typescript.md#jsx) _(jaywcjlove.github.io)_
@ -542,6 +542,150 @@ function CustomButton() {
}
```
Props
---
### Props 的 Spread 运算符
扩展运算符可用于一次传递所有 Props。
```jsx
function Profile(props) {
return <p>{props.name}, {props.age}</p>;
}
const user = { name: "John", age: 25 };
<Profile {...user}/>
```
### 什么是 Props
- Props“properties”的缩写用于将数据从父组件传递到子组件。
- 它们是只读的,不能在子组件内修改。
```jsx
<MyComponent propName="value" />
```
### 将 Pros 传递给组件
您可以通过 JSX 中的属性将 props 从父组件传递到子组件。
```jsx
function ParentComponent() {
return <ChildComponent name="John" age={25} />;
}
function ChildComponent (props) {
return <div>Hello{props.name}. You are {props.age} years old. </div>;
}
```
### 解构 props
props 可以解构以便于访问。
```jsx
function Greeting({ name }) {
return <h1>Hello, {name}!</h1>;
}
```
### 访问功能组件中的 Props
可以使用 props 对象在功能组件中访问 Props。
```jsx
function Greeting(props) {
return <h1>Hello, {props.name}!</h1>;
}
```
### 使用 Pros 进行条件渲染
道具可用于组件内部的条件渲染。
```jsx
function Greeting({ name, isLoggedIn }) {
return isLoggedIn ? <hl>Welcome back, {name}</h1>: <h1>Please log in</h1>;
}
```
### Prop Drilling属性传递
<!--rehype:wrap-class=row-span-2-->
```js
function Parent() {
const name = "John";
return <Child name={name}/>;
}
function Child({ name }) {
return <Grandchild name={name} />
}
function Grandchild({ name }) {
return <p>{name}</p>;
}
```
将属性props在多个组件层级中逐层传递可能会变得繁琐。这种方式称为属性传递prop drilling
### Props 与 State
<!--rehype:wrap-class=row-span-2-->
- `props` 被传递给组件并且是不可变的。
- `State` 是组件的本地状态,可以更改。
```jsx
function ChildComponent({ name }) {
return <h2>Hi,my name is {name}.</h2>;
}
function ParentComponent() {
// State to manage the name value
const name, setName= usestate('John');
const changeName = () => {
setName('Jane');
};
return (
<div>
<ChildComponent name={name}/>
<button onClick={changeName}>
Change Names
</button>
</div>
);
}
```
### 默认 props
```jsx
function Greeting({ name = "Bob" } = 0}) {
return <h1>Hello, {name}!</h1>;
}
// Renders "Hello, Bob!"
< Greeting />
```
您可以为 `props` 设置默认值。
### 使用 prop 处理事件
你可以将事件处理程序作为 props 传递给 handle 用户交互。
```jsx
function Button({ onClick }) {
return < button onClick={onClick}>Click me</button>;
}
function App() {
const handleClick = () => alert("Button clicked!"):
return <Button onClick={handleClick} />;
}
```
JSX
---
@ -1213,7 +1357,7 @@ useEffect(
`componentDidMount()` | 在组件挂载后(插入 DOM 树中)立即调用 [#](https://reactjs.org/docs/react-component.html#componentdidmount)
`UNSAFE_componentWillMount()` | 在挂载之前被调用,建议使用 `constructor()` [#](https://zh-hans.reactjs.org/docs/react-component.html#unsafe_componentwillmount)
在 `constructor()` 上设置初始状态。在 `componentDidMount()` 上添加 DOM 事件处理程序、计时器等),然后在 `componentWillUnmount()` 上删除它们。
在 `constructor()` 上设置初始状态。在 `componentDidMount()` 上添加 DOM 事件处理程序、计时器(等),然后在 `componentWillUnmount()` 上删除它们。
### 卸载

View File

@ -65,7 +65,7 @@ spring:
url: jdbc:mysql://localhost:3306/mydatabase
username: root
password: password
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver # 这里是 MySQL8.0 版本配置5.0 则是 com.mysql.jdbc.Driver
```
#### 说明

288
docs/sqlite.md Normal file
View File

@ -0,0 +1,288 @@
SQLite 备忘清单
===
本备忘单旨在快速理解 [SQLite](https://sqlite.com/) 所涉及的主要概念提供了最常用的SQL语句供您参考。
入门
---
### 介绍
SQLite 是一个轻量级的嵌入式关系数据库管理系统,遵循 ACID 原则,广泛用于浏览器、操作系统等应用中,实现本地数据存储。
### 安装
<!--rehype:wrap-class=col-span-2 row-span-2-->
#### windows
- 从 [SQLite](https://www.sqlite.org/download.html) 下载两个压缩文件:`sqlite-tools-win32-*.zip``sqlite-dll-win32-*.zip`
- 创建文件夹 `C:\sqlite`,将这两个压缩文件解压到该文件夹下。
- 解压后,您将看到 3 个文件: `sqlite3.def``sqlite3.dll``sqlite3.exe`
- 将 C:\sqlite 添加到 PATH 环境变量中,以便在命令行中使用 SQLite。
<!--rehype:className=style-timeline-->
#### linux
linux 自带 `sqlite3`,或者通过 `apt-get/yum/brew` 等安装。
#### macOS
`brew install sqlite` 安装
### 连接 SQLite 数据库
SQLite 通常无需复杂配置,当指定的数据库文件不存在时,它会自动创建一个新文件。
```bash
sqlite3 mydatabase.db
```
若数据库文件不存在则会自动创建
数据库操作
---
### 显示数据库名称及对应文件
```shell
sqlite> .databases
main: /home/user/sqlite/database.db r/w
```
### 备份数据库
```shell
sqlite> .backup back
```
### 显示已经设置的值
<!--rehype:wrap-class=row-span-3-->
```shell
sqlite> .show
echo: off
eqp: off
explain: auto
headers: off
mode: list
nullvalue: ""
output: stdout
colseparator: "|"
rowseparator: "\n"
stats: off
width:
filename: api.db
```
### 备份单张表
```shell
sqlite> .dump user
```
### 退出
```shell
sqlite> .exit
```
### 以 sql 的形式 dump 数据库
<!--rehype:wrap-class=col-span-2-->
```shell
sqlite> .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE api (
id INTEGER PRIMARY KEY AUTOINCREMENT,
host TEXT NOT NULL,
port INTEGER NOT NULL,
path TEXT NOT NULL
);
INSERT INTO api VALUES(1,'example.com',8080,'/api/v1');
```
### 导入与导出数据库
#### 导出数据库
<!--rehype:style=text-align: left;-->
```bash
sqlite3 mydatabase.db .dump > backup.sql
```
#### 导入数据库
<!--rehype:style=text-align: left;-->
```bash
sqlite3 mydatabase.db < backup.sql
```
### 输出模式设置
<!--rehype:wrap-class=col-span-2-->
#### 设置输出模式为 csv
```sh
sqlite> .mode csv
sqlite> select * from api;
id,host,port,path
1,example.com,8080,/api/v1
```
#### 输出为 markdown
```sh
sqlite> select * from api;
| id | host | port | path |
|----|-----------------|------|---------|
| 1 | example.com | 8080 | /api/v1 |
```
支持 ascii box column csv html insert json line list markdown qbox quote table tabs tcl 等类型
数据表操作
---
### 常用表操作
#### 创建表
<!--rehype:style=text-align: left;color: var(--primary-color);-->
```sh
sqlite> create table user(id integer primary key, name text);
```
<!--rehype:className=wrap-text-->
#### 查看所有表
<!--rehype:style=text-align: left;color: var(--primary-color);-->
```sh
sqlite> .tables
```
#### 查看表结构
<!--rehype:style=text-align: left;color: var(--primary-color);-->
```sh
sqlite> .schema user
```
#### 导入文件到表中
<!--rehype:style=text-align: left;color: var(--primary-color);-->
```sh
sqlite> .import user.csv user
```
#### 设置查询显示列名称
<!--rehype:style=text-align: left;color: var(--primary-color);-->
```sh
sqlite> .head on
```
### 常用 SQL
<!--rehype:wrap-class=col-span-2 row-span-2-->
```sql
-- 创建表
create table user(id integer primary key, name text);
-- 删除表
drop table user;
-- 重命名表
alter table user rename to user_new;
-- 插入
-- 单条
insert into user(name) values('test');
-- 多条
insert into user(name) values('test1'),('test2');
-- 查询
select * from user;
-- 去重查询
select distinct name from user;
-- 统计
select count(id) from user;
-- limit
select * from user limit 2;
-- 条件查询
select * from user where id > 1;
-- 模糊查询
select * from user where name like '%test%';
-- group by
select name, count(id) from user group by name;
-- 排序
select * from user order by id desc;
-- 聚合函数
select max(id) from user;
-- 更新
update user set name='test3' where id=1;
-- 删除
delete from user where id=1;
```
### 事务支持
**事务**具有原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持久性(Durability)四个标准属性,缩写为 ACID。
```sql
-- 开始事务
begin transaction;
-- 操作
update user set name='test4' where id=1;
-- 回滚
rollback;
-- 提交
commit;
```
### 命令行帮助
<!--rehype:wrap-class=col-span-3-->
|命令|描述|
|:---|:---|
|.backup ?DB? FILE |备份 DB 数据库(默认是 "main")到 FILE 文件。|
|.bail ON\|OFF |发生错误后停止。默认为 OFF。|
|.databases |列出数据库的名称及其所依附的文件。
|.dump ?TABLE? |以 SQL 文本格式转储数据库。如果指定了 TABLE 表,则只转储匹配 LIKE 模式的 TABLE 表。
|.echo ON\|OFF |开启或关闭 echo 命令。
|.exit |退出 SQLite 提示符。
|.explain ON\|OFF |开启或关闭适合于 EXPLAIN 的输出模式。如果没有带参数,则为 EXPLAIN on即开启 EXPLAIN。
|.header(s) ON\|OFF |开启或关闭头部显示。
|.help |显示消息。
|.import FILE TABLE |导入来自 FILE 文件的数据到 TABLE 表中。
|.indices ?TABLE? |显示所有索引的名称。如果指定了 TABLE 表,则只显示匹配 LIKE 模式的 TABLE 表的索引。
|.load FILE ?ENTRY? |加载一个扩展库。
|.log FILE\|off |开启或关闭日志。FILE 文件可以是 stderr标准错误/stdout标准输出
|.nullvalue STRING |在 NULL 值的地方输出 STRING 字符串。
|.output FILENAME |发送输出到 FILENAME 文件。
|.output stdout |发送输出到屏幕。
|.print STRING... |逐字地输出 STRING 字符串。
|.prompt MAIN CONTINUE |替换标准提示符。
|.quit |退出 SQLite 提示符。
|.read FILENAME |执行 FILENAME 文件中的 SQL。
|.schema ?TABLE? |显示 CREATE 语句。如果指定了 TABLE 表,则只显示匹配 LIKE 模式的 TABLE 表。
|.separator STRING |改变输出模式和 .import 所使用的分隔符。
|.show |显示各种设置的当前值。
|.stats ON\|OFF |开启或关闭统计。
|.tables ?PATTERN? |列出匹配 LIKE 模式的表的名称。
|.timeout MS |尝试打开锁定的表 MS 毫秒。
|.width NUM |NUM 为 "column" 模式设置列宽度。
|.timer ON\|OFF |开启或关闭 CPU 定时器。
|.mode MODE | 设置输出模式MODE 可以是下列之一 `:csv` 逗号分隔的值 <br/>column 左对齐的列 <br/>html HTML 的 \<table\> 代码 <br/>insert TABLE 表的 SQL 插入insert语句 <br/>line 每行一个值 <br/>list 由 .separator 字符串分隔的值 <br/>tabs 由 Tab 分隔的值 <br/> tcl TCL 列表元素<br/>
<!--rehype:className=left-align-->
在命令行中通过 `.help` 命令显示帮助文档
另见
--------
- [百科](https://zh.wikipedia.org/wiki/SQLite)
- [SQLite](https://www.sqlite.org/)
- [菜鸟教程](https://www.runoob.com/sqlite/sqlite-tutorial.html)

View File

@ -925,7 +925,7 @@ const styles = stylex.create({
TypeScript 类型
---
### 样式 props 类型
### StyleXStyles 样式 props 类型
```ts
import type {StyleXStyles} from '@stylexjs/stylex';
@ -953,7 +953,7 @@ function MyComponent(
```
<!--rehype:className=wrap-text-->
### 禁止属性
### StyleXStylesWithout 禁止属性
<!--rehype:wrap-class=col-span-2 row-span-3-->
```ts
@ -1044,3 +1044,60 @@ type Props = {
};
```
<!--rehype:className=wrap-text-->
### VarGroup
```ts
import * as stylex from '@stylexjs/stylex';
export const vars = stylex.defineVars({
color: 'red',
backgroundColor: 'blue',
});
export type Vars = typeof vars;
/*
Vars = VarGroup<{
color: string,
backgroundColor: string,
}>
*/
```
VarGroup 是调用 `stylex.defineVars` 生成的对象的类型。它将键映射到 CSS 自定义属性的引用
### StaticStyles
```ts
import type {StaticStyles} from '@stylexjs/stylex';
type Props = {
// ...
style?: StaticStyles<{
color?: 'red' | 'blue' | 'green';
padding?: 0 | 4 | 8 | 16 | 32;
backgroundColor?: string;
borderColor?: string;
borderTopColor?: string;
borderEndColor?: string;
borderBottomColor?: string;
borderStartColor?: string;
}>;
};
```
不允许使用函数定义的动态样式
### Theme
```ts
import type {VarGroup} from '@stylexjs/stylex';
import * as stylex from '@stylexjs/stylex';
import {vars} from './vars.stylex';
export const theme: Theme<typeof vars> = stylex.createTheme(vars, {
color: 'red', // OK
backgroundColor: 'blue', // OK
});
```

View File

@ -11,7 +11,7 @@ Swift 备忘清单
```swift
var score = 0 // 变量
let pi = 3.14 // 常
let pi = 3.14 // 常
var greeting = "Hello"
var numberOfToys = 8
@ -169,7 +169,7 @@ numberOfToys += 1
print(numberOfToys) // 打印“9”
```
### 常
### 常量声明
常量用 `let` 声明:
@ -187,7 +187,7 @@ let numberOfToys: Int = 8
let isMorning: Bool = true
```
常量是不可变的。它们的值不能改变:
常量 `let` 一旦设定,在程序运行时就无法改变其值:
```swift
let numberOfToys: Int = 8
@ -195,7 +195,7 @@ numberOfToys += 1
// ❌ 错误numberOfToys 不可变
```
### 计算变量get 和 set
### 计算属性get 和 set
<!--rehype:wrap-class=row-span-3-->
```swift
@ -521,6 +521,10 @@ let zeroToThree = 0...3
// zeroToThree: 0, 1, 2, 3
```
- `a...b` 闭区间 (Closed Range) 包括a和b
- `a..<b` 半开区间 (Half-Open Range) 包括a不包括b
- `...b` 单侧区间 (One-Sided Range) 包括b
### stride() 函数
```swift
@ -577,15 +581,17 @@ for char in "supercalifragilistice" {
// 打印: r
```
`break` 关键字中断当前循环
### 使用下划线
```swift
for _ in 1...3 {
print("Olé")
print("Ole")
}
// 打印: Olé
// 打印: Olé
// 打印: Olé
// 打印: Ole
// 打印: Ole
// 打印: Ole
```
### 遍历指定范围
@ -684,6 +690,16 @@ var snowfall = [2.4, 3.6, 3.4, 1.8, 0.0]
var temp: [Int] = [33, 31, 30, 38, 44]
```
### 用默认值初始化
```swift
var teams = [Int](repeating: 0, count: 3)
print(teams) // 打印: [0, 0, 0]
// 或者Array类型
var sizes = Array<Int>(repeating: 0, count: 3)
print(sizes) // 打印: [0, 0, 0]
```
### .append() 方法和 += 运算符
```swift
@ -1077,7 +1093,7 @@ func convertFracToDec(numerator: Double, denominator: Double) -> Double {
}
let decimal = convertFracToDec(numerator: 1.0, denominator: 2.0)
print(decimal) // Prints: 0.5
print(decimal) // 打印: 0.5
```
### 省略参数标签
@ -1691,6 +1707,22 @@ currentTraffic.reportAccident()
扩展
---
### 什么是扩展
扩展是向现有的类、结构体、枚举或协议类型添加新功能的方法。包括添加新的方法、属性、初始化方法等。
### 为什么要使用扩展
扩展让开发者可以以一种非侵入的方式来增强类型的功能,当我们无法直接修改原始类或结构体时(例如,系统库的类),扩展允许我们在不改变原始源代码的情况下添加新功能。
### 基础语法
```swift
extension SomeType {
// 添加新功能
}
```
### 声明扩展
```swift
@ -1707,6 +1739,34 @@ extension Person: SomeProtocol {
}
```
### 扩展计算属性
```swift
// 扩展可以添加计算属性,不能添加存储属性
extension Double {
var km: Double { self * 1000 }
var m: Double { self }
var cm: Double { self / 100.0 }
var mm: Double { self / 1000.0 }
}
let metric: Double = 30.48.cm
print("1 metric is \(metric.m) meter")
print("1 metric is \(metric.km) kilometer")
```
### 扩展可变实例方法
```swift
extension Double {
mutating func cube() {
self = self * self * self
}
}
var boxCube: Double = 2.0
boxCube.cube()
print(boxCube)
```
### 扩展构造器
<!--rehype:wrap-class=col-span-2-->
@ -1726,19 +1786,50 @@ let frame = CGRect(center: CGPoint(x: 100, y: 100),
print("Origin is \(frame.origin)")
```
### 扩展可变实例方法
### 扩展协议
<!--rehype:wrap-class=row-span-3-->
它的工作方式与抽象类类似,适用于在所有实现某种协议的类中提供某些功能的情况(而不需要从一个公共的基类继承)。
```swift
extension Double {
mutating func cube() {
self = self * self * self
// 定义协议
protocol Drawable {
func draw()
}
// 使用协议扩展为 draw 方法提供默认实现
extension Drawable {
func draw() {
print("绘制形状")
}
}
var boxCube: Double = 2.0
boxCube.cube()
print(boxCube)
// 定义一个符合 Drawable 协议的类 Circle
class Circle: Drawable {
// Circle 可以使用默认的 draw 实现
// 或者覆盖它
}
// 定义另一个符合 Drawable 协议的类 Square
class Square: Drawable {
// 重写 draw 方法以提供自定义实现
func draw() {
print("画一个正方形")
}
}
// 使用示例
let circle = Circle()
circle.draw() // 打印: 绘制形状
let square = Square()
square.draw() // 打印: 画一个正方形
```
你可以使用协议扩展来给协议的任意方法或者计算属性要求提供默认实现。如果遵循类型给这个协议的要求提供了它自己的实现,那么它就会替代扩展中提供的默认实现。
### 扩展方法
<!--rehype:wrap-class=col-span-2-->
@ -1755,21 +1846,6 @@ extension String {
print("Hello World".deletingPrefix("He"))
```
### 扩展计算属性
```swift
// 扩展可以添加计算属性,不能添加存储属性
extension Double {
var km: Double { self * 1000 }
var m: Double { self }
var cm: Double { self / 100.0 }
var mm: Double { self / 1000.0 }
}
let metric: Double = 30.48.cm
print("1 metric is \(metric.m) meter")
print("1 metric is \(metric.km) kilometer")
```
### 扩展存储属性
<!--rehype:wrap-class=col-span-2-->
@ -1789,6 +1865,152 @@ extension UIColor {
}
```
泛型
---
### 什么是泛型
在Swift中泛型是一个允许我们创建可以使用任何数据类型的函数、类、结构和协议的特性。
### 为什么使用泛型
泛型使我们能够编写清晰简洁的代码,并能够与任何数据类型一起工作。通过使用占位符(如 `T`),可以减少引入错误的风险。
### 泛型函数
<!--rehype:wrap-class=row-span-2-->
```swift
// 接受两个类型相同的参数并交换它们
func swapTwoValues<T>(_ a: inout T, _ b: inout T) {
let temp = a
a = b
b = temp
}
var a = 10
var b = 20
swapTwoValues(&a, &b)
print(a) // 打印: 20
print(b) // 打印: 10
var c = "Hello"
var d = "World"
swapTwoValues(&c, &d)
print(c) // 打印: "World"
print(d) // 打印: "Hello"
```
### 基础用法
```swift
func foo<T, U>(a: T, b: U) {
// ...
}
struct Foo<T, U> {
var a: T
// ...
}
```
在这个例子中,`T``U`是一个类型占位符,它表示任何类型,写在尖括号内(如`<T>`
### 泛型结构体
```swift
// 定义一个泛型结构体 Box
// 它有一个名为 value 的泛型属性
struct Box<T> {
var value: T
}
let intBox = Box(value: 10)
let stringBox = Box(value: "Hello")
print(intBox.value) // 打印: 10
print(stringBox.value) // 打印: "Hello"
```
### 泛型约束
有时我们希望限制泛型的类型范围,可以使用泛型约束。比如,限制泛型类型必须是遵循某个协议的类型
```swift
struct Box<T: Numeric> {
var value: T
// 计算 value 的平方函数
func square() -> T {
return value * value
}
}
let intBox = Box(value: 10)
print(intBox.square()) // 输出 100
let floatBox = Box(value: 5.0)
print(floatBox.square()) // 输出 25.0
// 以下代码会报错因为String不遵循Numeric协议
// let stringBox = Box(value: "Hello")
```
### 泛型类型别名
<!--rehype:wrap-class=col-span-2-->
为泛型类型创建别名`typealias`,这样可以给泛型类型起一个更具体的名字,使得代码更加清晰易懂
- 示例1
```swift
// 定义一个泛型类型别名 'IntBox'
typealias IntBox = Box<Int>
// 使用类型别名创建一个存储 Int 类型值的 Box 实例
let intBox = IntBox(value: 42)
print(intBox.value) // 输出 42
```
- 示例2
```swift
// 定义一个泛型类型别名 'StringBox',其中 T 被约束为 String
typealias StringBox<T> = Box<T> where T: StringProtocol
// 使用类型别名创建一个存储 String 类型值的 Box 实例
let stringBox = StringBox(value: "Hello, world!")
print(stringBox.value) // 输出 "Hello, world!"
```
### 泛型协议
```swift
protocol Storage {
associatedtype Item
func store(item: Item)
func retrieve() -> Item?
}
class SimpleStorage<T>: Storage {
private var items: [T] = []
func store(item: T) {
items.append(item)
}
func retrieve() -> T? {
return items.isEmpty ? nil : items.removeLast()
}
}
let intStorage = SimpleStorage<Int>()
intStorage.store(item: 42)
print(intStorage.retrieve() ?? "Empty")
// 打印: 42
```
另见
----

View File

@ -233,23 +233,9 @@ Map(coordinateRegion: $region,
Layout(布局)
----
### Background
将图像用作背景
```swift
Text("Hello World")
.font(.largeTitle)
.background(
Image("hello_world")
.resizable()
.frame(width: 100, height: 100)
)
```
### VStack
垂直线排列其子项的视图
`VStack``垂直` 堆栈布局,用于将子视图垂直排列。默认将子视图从上到下排列
```swift
VStack (alignment: .center, spacing: 20){
@ -259,13 +245,11 @@ VStack (alignment: .center, spacing: 20){
}
```
创建静态可滚动列表。文档 - [VStack](https://developer.apple.com/documentation/swiftui/vstack)
文档 - [VStack](https://developer.apple.com/documentation/swiftui/vstack)
### HStack
将其子级排列在一条水平线上的视图。
创建静态可滚动列表
`HStack``水平` 堆栈布局,用于将子视图水平排列。默认将子视图从左到右排列
```swift
HStack (alignment: .center, spacing: 20){
@ -277,9 +261,22 @@ HStack (alignment: .center, spacing: 20){
文档 - [HStack](https://developer.apple.com/documentation/swiftui/hstack)
### LazyVStack
### ZStack
`iOS 14` 一种视图,将其子级排列在垂直增长的线中,仅在需要时创建项。
`ZStack``层叠` 堆栈布局,用于将子视图重叠在一起。按照添加的顺序从下到上排列子视图,即先添加的视图会在下面,后添加的视图会覆盖在上面
```swift
ZStack {
Text("Hello")
Text("World")
}
```
文档 - [ZStack](https://developer.apple.com/documentation/swiftui/zstack)
### 懒加载 Lazy
`iOS 14.0` 之后新增的视图,仅在需要时才会创建和渲染
```swift
ScrollView {
@ -291,58 +288,30 @@ ScrollView {
}
```
文档 - [LazyVStack](https://developer.apple.com/documentation/swiftui/lazyvstack)
- 懒加载:只有当子视图进入可视区域时,才会被创建和渲染
- 自适应:子视图的宽高可以自适应
- 性能优化:适用于大量子视图或动态内容的场景
<!--rehype:className=style-round-->
### LazyHStack
<!--rehype:wrap-class=col-span-2-->
将子项排列在水平增长的线中的视图,仅在需要时创建项。
```swift
ScrollView(.horizontal) {
LazyHStack(alignment: .center, spacing: 20) {
ForEach(1...100, id: \.self) {
Text("Column \($0)")
}
}
}
```
文档 - [LazyHStack](https://developer.apple.com/documentation/swiftui/lazyhstack)
### ZStack
覆盖其子项的视图,使子项在两个轴上对齐。
```swift
ZStack {
Text("Hello")
.padding(10)
.background(Color.red)
.opacity(0.8)
Text("World")
.padding(20)
.background(Color.red)
.offset(x: 0, y: 40)
}
```
文档 - [ZStack](https://developer.apple.com/documentation/swiftui/zstack)
- 文档 - [LazyVStack](https://developer.apple.com/documentation/swiftui/lazyvstack)
- 文档 - [LazyHStack](https://developer.apple.com/documentation/swiftui/lazyhstack)
### LazyVGrid
<!--rehype:wrap-class=col-span-2-->
容器视图,将其子视图排列在垂直增长的网格中,仅在需要时创建项目
容器视图,将其子视图排列在`垂直`增长的网格中,仅在需要时创建项目
```swift
var columns: [GridItem] = Array(repeating: .init(.fixed(20)), count: 5)
var columns: [GridItem] =
Array(
repeating: .init(.fixed(20)), count: 5
)
ScrollView {
LazyVGrid(columns: columns) {
ForEach((0...100), id: \.self) {
Text("\($0)").background(Color.pink)
}
LazyVGrid(columns: columns) {
ForEach((0...100), id: \.self) {
Text("\($0)").background(Color.pink)
}
}
}
```
@ -350,7 +319,7 @@ ScrollView {
### LazyHGrid
一种容器视图,将其子视图排列在水平增长的网格中,仅在需要时创建项目
容器视图,将其子视图排列在`水平`增长的网格中,仅在需要时创建项目
```swift
var rows: [GridItem] =
@ -360,8 +329,8 @@ var rows: [GridItem] =
ScrollView(.horizontal) {
LazyHGrid(rows: rows, alignment: .top) {
ForEach((0...100), id: \.self) {
Text("\($0)").background(Color.pink)
ForEach((0...100), id: \.self) {
Text("\($0)").background(Color.pink)
}
}
}
@ -397,6 +366,20 @@ HStack {
文档 - [Divider](https://developer.apple.com/documentation/swiftui/divider)
### Background
将图像用作背景
```swift
Text("Hello World")
.font(.largeTitle)
.background(
Image("hello_world")
.resizable()
.frame(width: 100, height: 100)
)
```
Input(输入)
---

View File

@ -15,7 +15,7 @@ Symbol 特殊符号
<!--rehype:className=wrap-text-->
### 特殊符号
<!--rehype:wrap-class=row-span-3-->
<!--rehype:wrap-class=row-span-4-->
#### 国际象棋符号列表视图
@ -87,6 +87,25 @@ Symbol 特殊符号
```
<!--rehype:className=wrap-text&style=font-size: 28px;-->
### 键盘符号
<!--rehype:wrap-class=row-span-2-->
- `⌘` command
- `⌥` otptin
- `⎋` escap
- `⌫` backspace
- `⌦` delete
- `↑` up
- `→` right
- `←` left
- `↓` down
- `⇥` tab
- `⇧` shift
- `⇪` capslock
- `⌃` control
- `⏎` reternkey
<!--rehype:className=cols-2 shortcuts style-none-->
### 爱心符号
```
@ -95,7 +114,7 @@ Symbol 特殊符号
<!--rehype:className=wrap-text&style=font-size: 28px;-->
### 动物符号
<!--rehype:wrap-class=row-span-3-->
<!--rehype:wrap-class=row-span-4-->
```
𓃥 𓃠 𓃰 𓃱 𓃯 𓃭 𓃸 𓃵 𓃗 𓃘 𓃙 𓃟 𓄀 𓄁 𓄂 𓄃 𓃚 𓃛 𓃜 𓃝 𓃞 𓃒 𓃓 𓃔 𓃕 𓃖 𓃡 𓃢 𓃦 𓃩 𓃫 𓃬 𓃮 𓃲 𓃴 𓃶 𓃷 𓃹 𓃻 𓃽 𓃾 𓃿 𓄄 𓄅 𓄆 𓄇 𓆇 𓆈 𓆉 𓆌 𓆏 𓆗 𓆘 𓆙 𓆚 𓆐 𓆑 𓆒 𓆓 𓆔 𓆕 𓆖 𓆊 𓆍 𓆣 𓆤 𓆥 𓆦 𓆧 𓆨 𓆛 𓆜 𓆝 𓆞 𓆟 𓆠 𓆡 𓆢 𓄿 𓅀 𓅁 𓅂 𓅃 𓅄 𓅅 𓅆 𓅇 𓅈 𓅉 𓅊 𓅋 𓅌 𓅍 𓅎 𓅏𓅐 𓅑 𓅒 𓅓 𓅔 𓅕𓅖 𓅗 𓅘 𓅙𓅚 𓅛 𓅜 𓅝 𓅞 𓅟 𓅠 𓅡 𓅢 𓅣 𓅤 𓅥 𓅦 𓅧 𓅨 𓅩 𓅪 𓅫 𓅬 𓅭 𓅮 𓅯 𓅰 𓅱 𓅲 𓅳 𓅴 𓅵 𓅶 𓅷 𓅸 𓅹 𓅺 𓅻 𓅼 𓅽 𓅾 𓅿 𓆀 𓆁 𓆂 𓆃 𓆆
@ -118,13 +137,6 @@ Symbol 特殊符号
```
<!--rehype:className=wrap-text&style=font-size: 28px;-->
#### 花卉符号
```
✻ ✼ ✾ ✿ ❀ ❁ ❃ ❇ ❈ ❉ ❊ ✢ ✣ ✤ ✥ ꕥ 𓇬 ⚘ 𓆸 𓆹 𓆼 𓇊 𓇚 𓇕 𓇗 𓋇 𓁙 𓁋 ֍ ֎ 𓆭 𓆰 𓆱 𓇋𓇑 𓇛 𓇟 𓇣꧁ ꧂
```
<!--rehype:className=wrap-text&style=font-size: 28px;-->
### 箭头符号
<!--rehype:wrap-class=col-span-2 row-span-2-->
@ -134,12 +146,20 @@ Symbol 特殊符号
<!--rehype:className=wrap-text&style=font-size: 28px;-->
### 货币符号
<!--rehype:wrap-class=col-span-3-->
```
$ ¢ € £ ¥ ₩ ₽ ₹ ¤ ₱ ₦ ƒ ₮ ৲ ৳ ₨ ௹ ฿ ៛ ₪ ₫ ₭ ₲ ₴ ₵ ﷼ ≋ ₿ Ł Ð ₳
```
<!--rehype:className=wrap-text&style=font-size: 28px;-->
#### 花卉符号
```
✻ ✼ ✾ ✿ ❀ ❁ ❃ ❇ ❈ ❉ ❊ ✢ ✣ ✤ ✥ ꕥ 𓇬 ⚘ 𓆸 𓆹 𓆼 𓇊 𓇚 𓇕 𓇗 𓋇 𓁙 𓁋 ֍ ֎ 𓆭 𓆰 𓆱 𓇋𓇑 𓇛 𓇟 𓇣꧁ ꧂
```
<!--rehype:className=wrap-text&style=font-size: 28px;-->
图形符号
----

View File

@ -1551,6 +1551,7 @@ type Age2 = Person["age"];
```
### 范型推导出列表字面量
<!--rehype:wrap-class=row-span-2-->
```ts
const a = <T extends string>(t: T) => t;
@ -1559,11 +1560,18 @@ const c = <T extends boolean>(t: T) => t;
const d = a("a"); // const d: 'a'
const e = b(1); // const d: 1
const f = c(true); // const d: true
```
// 这里t的类型用了一个展开运算
这里t的类型用了一个展开运算
```ts
const g =
<T extends string[]>(t: [...T]) => t;
// 类型变成["111", "222"]了
<T extends string[]>(t: [...T]) => t;
```
类型变成["111", "222"]了
```ts
const h = g(["111", "222"]);
```
@ -1580,6 +1588,19 @@ keys.forEach(key => {
});
```
### 保留一段时间字符串常量类型
<!--rehype:wrap-class=col-span-2-->
```ts
type Color = "primary" | "secondary" | string;
```
修改成下面代码,有代码下拉提示
```ts
type Color = "primary" | "secondary" | (string & {});
```
.d.ts 模版
---

View File

@ -53,52 +53,52 @@ G gg H M L k j ▶ print("to")
快捷方式 | 说明
:- | -
`h` \| `j` \| `k` \| `l` | 方向键
`<C-u>` _/_ `<C-d>` | 上/下半页
`<C-b>` _/_ `<C-f>` | 向上/向下翻页
<!--rehype:className=shortcuts-->
方向键 | `h` \| `j` \| `k` \| `l`
上/下半页 | `<C-u>` _/_ `<C-d>`
向上/向下翻页 | `<C-b>` _/_ `<C-f>`
<!--rehype:className=shortcuts-last-->
#### 字(词)
快捷方式 | 说明
:- | -
`b` _/_ `w` | 上一个/下一个单词
`ge` _/_ `e` | 上一个/下一个词尾
<!--rehype:className=shortcuts-->
上一个/下一个单词 | `b` _/_ `w`
上一个/下一个词尾 | `ge` _/_ `e`
<!--rehype:className=shortcuts-last-->
#### 行
快捷方式 | 说明
:- | -
`0` _(zero)_ _/_ `$` | 行的开始/结束
`^` | 行开头 _(非空白)_
<!--rehype:className=shortcuts-->
行的开始/结束 | `0` _(zero)_ _/_ `$`
行开头 _(非空白)_ | `^`
<!--rehype:className=shortcuts-last-->
#### 字符串
快捷方式 | 说明
:- | -
`Fe` _/_ `fe` | 移动到上一个/下一个`e`
`To` _/_ `to` | 在上一个/下一个`o`之前/之后移动
`\|` _/_ `n\|` | 转到第一个/`n`
<!--rehype:className=shortcuts-->
移动到上一个/下一个`e` | `Fe` _/_ `fe`
在上一个/下一个`o`之前/之后移动 | `To` _/_ `to`
转到第一个/`n`列 | `\|` _/_ `n\|`
<!--rehype:className=shortcuts-last-->
#### 文档
快捷方式 | 说明
:- | -
`gg` _/_ `G` | 第一行/最后一行
`:n` \| `nG` | 转到第 `n`
`}` _/_ `{` | 下一个/上一个空行
<!--rehype:className=shortcuts-->
第一行/最后一行 | `gg` _/_ `G`
转到第 `n` | `:n` \| `nG`
下一个/上一个空行 | `}` _/_ `{`
<!--rehype:className=shortcuts-last-->
#### 窗口
快捷方式 | 说明
:- | -
`H` _/_ `M` _/_ `L` | 上/中/下屏幕
`zt` _/_ `zz` _/_ `zb` | 上/中/下这条线
<!--rehype:className=shortcuts-->
上/中/下屏幕 | `H` _/_ `M` _/_ `L`
上/中/下这条线 | `zt` _/_ `zz` _/_ `zb`
<!--rehype:className=shortcuts-last-->
### 插入模式
@ -117,17 +117,17 @@ G gg H M L k j ▶ print("to")
快捷方式 | 说明
:- | -
`:w` | 保存
`:q` | 关闭文件
`:wq` \| `:x` \| `ZZ` | 保存并退出
`:wqa` | 保存并退出所有文件
`:q!` \| `ZQ` | 强制退出
`:qa` | 关闭所有文件
`:qa!` | 强制退出所有文件
`:w` new.txt | 写入`new.txt`
`:sav` new.txt | 保存并编辑`new.txt`
`:w` !sudo tee % | 写入只读文件
<!--rehype:className=shortcuts-->
保存 | `:w`
关闭文件 | `:q`
保存并退出 | `:wq` \| `:x` \| `ZZ`
保存并退出所有文件 | `:wqa`
强制退出 | `:q!` \| `ZQ`
关闭所有文件 | `:qa`
强制退出所有文件 | `:qa!`
写入`new.txt` | `:w` new.txt
保存并编辑`new.txt` | `:sav` new.txt
写入只读文件 | `:w` !sudo tee %
<!--rehype:className=shortcuts-last-->
### 正常模式
@ -368,6 +368,7 @@ Vim 多个文件
`<C-w>` `-` _/_ `+` | 减少/增加高度
`<C-w>` `<` _/_ `>` | 减少/增加宽度
`<C-w>` `\|` | 最大宽度
`<C-w>` `_` | 最大高度
`<C-w>` `=` | 同样高和宽
`<C-w>` `h` _/_ `l` | 转到左/右窗口
`<C-w>` `j` _/_ `k` | 转到上/下窗口

View File

@ -510,15 +510,53 @@ watch(count, function() {
```
<!--rehype:className=wrap-text-->
### 监听多个值
<!--rehype:wrap-class=col-span-2 row-span-2-->
```html
<template>
<h1> {{ count1 }} </h1>
<h1> {{ count2 }} </h1>
<button @click="count1++">count1</button>
<button @click="count2++">count2</button>
</template>
<script setup>
import { watch, ref } from 'vue';
const count1 = ref(0)
const count2 = ref(0)
watch(
// 监听的表达式或函数
() => ({
count1: count1.value,
count2: count2.value
}),
// 回调函数
(newValue, oldValue) => {
// 在这里执行需要的逻辑
console.log('count1 或 count2 变化了:', newValue);
},
// immediate: true 表示在初始渲染时立即执行一次回调函数,以便处理初始的状态。
// deep: true 表示深度监听,即对 newValue 和 oldValue 进行深层比较,而不是简单的引用比较。
{ immediate: true, deep: true }
);
</script>
<style scoped>
</style>
```
### 计算状态
<!--rehype:wrap-class=col-span-2-->
```html
<script setup>
import { ref, computed } from 'vue';
const text = ref('')
// computed 的回调函数里,会根据已有并用到的状态计算出新的状态
// computed 的回调函数里
// 会根据已有并用到的状态计算出新的状态
const capital = computed(function(){
return text.value.toUpperCase();
})
@ -683,6 +721,390 @@ const value = inject(ProvideKey)
<!--rehype:className=wrap-text -->
## 路由
### 1. 路由的基本使用
#### 开启命名空间后组件中读取state数据
方式一:自己直接读取
```javascript
this.$store.state.personAbout.list
```
方式二:借助 mapState 读取:
```js
...mapState('countAbout',[
'sum','school','subject'
]),
```
#### 开启命名空间后组件中读取getters数据
方式一:自己直接读取
```javascript
this.$store.getters[
'personAbout/firstPersonName'
]
```
方式二:借助 mapGetters 读取:
```js
...mapGetters('countAbout',['bigSum'])
```
#### 开启命名空间后组件中调用dispatch
方式一:自己直接 dispatch
```javascript
this.$store.dispatch(
'personAbout/addPersonWang', person
)
```
方式二借助mapActions:
```js
...mapActions('countAbout',{
incrementOdd:'jia0dd',
incrementWait:'jiaWait'
})
```
#### 开启命名空间后组件中调用commit
方式一:自己直接 commit
```javascript
this.$store.commit(
'personAbout/ADD_PERSON', person
)
```
方式二:借助 mapMutations:
```js
...mapMutations('countAbout', {
increment:'JIA',decrement:'JIAN'
}),
```
### 2. 路由的使用
```javascript
import VueRouter from 'vue-router'
// 引入Luyou 组件
import About from '../components/About'
import Home from '../components/Home'
// 创建router实例对象去管理一组一组的路由规则
const router = new VueRouter({
routes: [
path: '/about',
component: About
path: '/home',
component: Home
]
})
// 暴露 router
export default router
```
实现切换active-class可配置高亮样式
```html
<router-link
active-class="active"
to="/about">
About
</router-link>
```
指定展示位置
```html
<router-diew></router-view>
```
几个注意点
- 路由组件通常存放在pages文件夹一般组件通常存放在components文件夹。
- 通过切换,“隐藏”了的路由组件,默认是被销毁掉的,需要的时候再去挂载。
- 每个组件都有自己的$route属性里面存储着自己的路由信息。
- 整个应用只有一个router可以通过组件的srouter 属性获取到。
<!--rehype:className=style-list-arrow-->
### 3.路由的query
```html
<template>
<div>
<ul class="list">
<!-- to的对象写法 -->
<li v-for="item of data" :key="item.id">
<router-link
class="link"
:to="{
path:'/home/message/mes',
query: { id:item.id, title:item.mes }
}"
>{{item.mes}}</router-link>
</li>
</ul>
<hr>
<router-view></router-view>
</div>
</template>
<script>
export default {
name:'HomeChild1',
data() {
return {
data:[
{id:1,mes:"消息1"},
{id:2,mes:"消息2"},
{id:3,mes:"消息3"}
]
}
},
}
</script>
<style scoped>
.list { margin-left:80px; }
.link{
color: orange;
text-decoration: none;
background-color: skyblue;
}
</style>
```
> 接收参数 `{{$route.query.id}}`
#### 跳转路由并携带参数
```html
<li v-for="item of data" :key="item.id">
<router-link
class="link"
:to="`/home/message/mes?id=${item.id}&title=${item.mes}`"
>
{{item.mes}}
</router-link>
</li>
```
### 4. 命名路由
```javascript
routes:[
{ path:'/about', component:AboutBody },
{
path:'/home',
component:HomeBody,
children:[
{ path:'news', component:HomeChild },
{
path:'message',
component:HomeChild1,
//多级路由
children:[
{ name:'richu', path:'mes', component:HomeMessage }
]
}
]
}
]
```
使用
```html
<router-link :to="{
name:'',
path:'/home/message/mes',
query:{ id:item.id,title:item.mes }
}">
```
### 5.params参数的使用
#### 1. 声明接收
```javascript
children:[
{
name:'richu',
path:'mes/:id/:title',
component:HomeMessage
}
]
```
#### 2. 传递
```html
<li v-for="item of data" :key="item.id">
<router-link
class="link"
:to="`/home/message/mes/${item.id}/${item.mes}`"
>{{item.mes}}
</router-link>
</li>
```
#### 3. 接收
```html
<li>编号{{$route.params.id}}</li>
<li>标题{{$route.params.title}}</li>
```
### 6.props的使用
路由的props配置
```js
{
name: 'xiangqing',
path:'detail/:id',
component:Detail
}
```
作用:让路由组件更方便的收到参数
```javascript
//第一种写法props值为对象该对象中所有的key-value的组合最终都会通过props传给Detai1组件
// props:{a:900]
//第二种写法props值为布尔值布尔值为true则把路由收到的所有params参数通过props传给Detai1组件
// props:true
//第三种写法props值为函数该函数返回的对象中每一组key-value都会通过props传给Detail组件
props(route){
return {
id:route.query.id,
title:route.query.title
}
}
```
\<router-link> 的 replace 属性
1. 作用:控制路由跳转时操作浏览器历史记录的模式
2. 浏览器的历史记录有两种写入方式:分别为 push和replace,默认为push
3. 如何开启replace 模式: `push` 是追加历史记录,`replace` 是替换当前记录[路由跳转时候 `<router-link replace>News\</router-link>`]
### 7. 编程式路由导航
作用不借助router-link实现路由跳转让跳转更加灵活
```javascript
this.$router.push({
name:'xiangqing',
params:{
id: xxx,
title: xxx
// 实现路由跳转,让路由跳转更加灵活
}
})
this.$router.replace({
name:'xiangqing',
params:{
id:xxx,
title:xxx
}
})
this.$router.forward();
this.$router.back();
this.$router.go(3);
```
### 8.缓存路由组件
让不展示的路由组件保持挂载,不被销毁,示例:
```html
<keep-alive include="news">
<router-view></router-view>
</keep-alive>
```
- `include` 里面写模块名,用于保存指定的模块
### 9.新生命周期钩子
> 作用:路由组件独有的,用于捕获路由组件的激活状态
- `activated` 路由组件被激活时触发
- `deactivated` 路由组件失活时触发
## 路由守卫
### 1.前置路由守卫
```javascript
route.beforeEach((from,to,next)=>{
if (to.meta.isAuth){
alert("1");
next();
}else{
next();
}
})
```
前置路由
### 2.后置路由守卫
```javascript
route.afterEach((from,to)=>{
console.log(to);
document.title=from.meta.title;
})
```
后置路由
### 3.独享路由守卫
```javascript
{
path:'news',
component:HomeChild,
meta:{title:"新闻"},
beforeEnter: (from,to,next)=>{
}
},
```
独享路由守卫只有前置路由守卫没有后置路由守卫
### 4.组件内路由守卫
通过路由规则,进入该组件时被调用
```javascript
beforeRouteEnter (to, from, next) {
// ...
}
```
通过路由规则,离开组件时被调用
```js
beforeRouteLeave (to, from, next) {
// ...
}
```
Vue 中使用 TypeScript
---

253
docs/yazi.md Normal file
View File

@ -0,0 +1,253 @@
Yazi 备忘清单
===
这份快速参考备忘单提供了Yazi 快速的终端文件管理的简要概述,以及 Yazi的基本操作
入门
----
### 功能特点
- <code>**跨平台支持**</code>Yazi 支持 Linux、macOS 和 Windows提供一致的跨平台体验
- <code>**轻量高效**</code>:简洁设计,启动和操作快速,资源消耗低
- <code>**插件扩展**</code>:支持插件安装,灵活扩展功能
- <code>**文件操作**</code>:支持复制、剪切、粘贴、删除、重命名等操作,且支持批量和多选功能,提升效率
### 安装
| 系统 | 安装方法 |
| ----- | ----- |
| 使用 Cargo 安装 | `cargo install yazi` |
| Arch Linux | `yay -S yazi` |
| Debian/Ubuntu | 可以使用 `Cargo` 进行安装 |
| macOS (使用 Homebrew) | `brew install yazi` |
| Windows (使用 Carg) | `cargo install yazi` |
| Windows (使用 Scoop) | `scoop install yazi` |
### 使用方法
#### 命令启动 Yazi
```sh
yazi
```
#### 查看 Yazi 的帮助文档
```sh
yazi --help
```
## 常用的快捷键
<!--rehype:body-class=cols-2-->
### 导航
:- | :-
:- | :-
| `h` | 返回上一级目录 |
| `j` | 向下移动选中项 |
| `k` | 向上移动选中项 |
| `l` | 进入选中的目录或打开文件 |
<!--rehype:className=shortcuts-->
### 文件操作
:- | :-
:- | :-
| `y` | 复制选中的文件或目录 |
| `d` | 剪切选中的文件或目录 |
| `p` | 粘贴文件或目录 |
| `x` | 删除选中的文件或目录 |
| `r` | 重命名选中的文件或目录 |
<!--rehype:className=shortcuts-->
### 搜索与过滤
:- | :-
:- | :-
| `/` | 开始搜索模式 |
| `n` | 在搜索模式中跳到下一个匹配项 |
| `N` | 在搜索模式中跳到上一个匹配项 |
<!--rehype:className=shortcuts-->
### 视图操作
:- | :-
:- | :-
| `gg` | 跳到列表的顶部 |
| `G` | 跳到列表的底部 |
| `Ctrl+f` | 向下滚动一页 |
| `Ctrl+b` | 向上滚动一页 |
<!--rehype:className=shortcuts-->
## 自定义配置
### 自定义配置
通过编辑配置文件来自定义 `Yazi`,配置文件通常位于 `$HOME/.config/yazi/xxx.toml`,可修改默认设置如快捷键、主题等。
- `yazi.toml` - 常规配置
- `keymap.toml` - 快捷键绑定
- `theme.toml` - 主题配置
### 配置文件示例yazi.toml
<!--rehype:wrap-class=row-span-2-->
```toml
[general]
# 设置主界面主题为 dark 或 light
theme = "dark"
# 启动时的默认路径
default_path = "~"
# 是否启用自动保存配置
auto_save_config = true
[keybindings]
# 自定义快捷键绑定
quit = "q" # 退出
copy = "y" # 复制文件
paste = "p" # 粘贴文件
delete = "d" # 删除文件
[ui]
# 界面相关配置
preview_enabled = true # 是否启用文件预览
show_hidden_files = true # 显示隐藏文件
columns = 2 # 文件列表列数
[search]
# 搜索行为配置
case_sensitive = false # 搜索是否区分大小写
search_timeout = 30 # 搜索超时时间(秒)
[sorting]
# 排序规则配置
sort_by = "name" # 排序方式: name,size,date
reverse_sort = false # 是否反向排序
[plugins]
# 插件加载配置
enabled_plugins = ["git", "archive"]
```
### keymap.toml 配置示例
<!--rehype:wrap-class=row-span-2-->
```toml
# 全局快捷键配置
[global]
# 全局退出应用程序
quit = "Ctrl+Q"
# 打开文件或目录
open = "Enter"
# 返回上级目录
back = "Backspace"
# 搜索功能触发
search = "/"
# 复制路径
copy_path = "Ctrl+C"
# 窗口控制快捷键
[window]
# 切换窗口
switch_window = "Tab"
# 新建窗口
new_window = "Ctrl+N"
# 关闭窗口
close_window = "Ctrl+W"
# 文件操作快捷键
[file]
# 删除文件
delete_file = "D"
# 重命名文件
rename_file = "R"
# 复制文件
copy_file = "Y"
# 粘贴文件
paste_file = "P"
# 移动文件
move_file = "M"
# 文件选择快捷键
[selection]
# 全选
select_all = "Ctrl+A"
# 取消所有选择
deselect_all = "Ctrl+D"
# 反选
invert_selection = "Ctrl+I"
# 选择当前文件/目录
select_item = "Space"
# 页面导航快捷键
[navigation]
# 向上移动光标
move_up = "K"
# 向下移动光标
move_down = "J"
# 向左切换标签
move_left = "H"
# 向右切换标签
move_right = "L"
# 自定义命令触发键
[custom]
# 触发自定义功能
custom_action_1 = "Ctrl+1"
custom_action_2 = "Ctrl+2"
custom_action_3 = "Ctrl+3"
```
### theme.toml 配置示例
```toml
[general]
# 设置主界面配色方案
background_color = "#1e1e2e" # 背景颜色
foreground_color = "#cdd6f4" # 文本颜色
cursor_color = "#89dceb" # 光标颜色
selection_color = "#585b70" # 选中项背景颜色
highlight_color = "#fab387" # 高亮颜色
# 字体设置
font_family = "FiraCode" # 字体名称
font_size = 14 # 字体大小
[ui]
# 界面边框与间距
border_color = "#45475a" # 边框颜色
padding = 4 # 界面内容的内边距
[file_browser]
# 文件浏览器颜色配置
directory_color = "#89b4fa" # 目录名称颜色
file_color = "#cdd6f4" # 普通文件颜色
symlink_color = "#f5c2e7" # 符号链接颜色
hidden_file_color = "#6c7086" # 隐藏文件颜色
[status_bar]
# 状态栏颜色
background_color = "#313244" # 状态栏背景
foreground_color = "#a6adc8" # 状态栏文字
error_color = "#f38ba8" # 状态栏错误信息
[search]
# 搜索结果配色
match_color = "#a6e3a1" # 搜索结果的匹配高亮
current_match_color = "#fab387" # 当前匹配项的高亮
[progress_bar]
# 进度条的配色
filled_color = "#89dceb" # 已填充部分
empty_color = "#313244" # 未填充部分
```
另见
----
- [Yazi 官方文档](https://yazi-rs.github.io/) _(yazi-rs.github.io)_
- [Yazi Github](https://github.com/sxyazi/yazi) _(github.com)_

5
icons/favicon.svg Normal file
View File

@ -0,0 +1,5 @@
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" height="180" width="180">
<path d="m21.66 10.44-.98 4.18c-.84 3.61-2.5 5.07-5.62 4.77-.5-.04-1.04-.13-1.62-.27l-1.68-.4c-4.17-.99-5.46-3.05-4.48-7.23l.98-4.19c.2-.85.44-1.59.74-2.2 1.17-2.42 3.16-3.07 6.5-2.28l1.67.39c4.19.98 5.47 3.05 4.49 7.23Z" fill="#c9d1d9"></path>
<path d="M15.06 19.39c-.62.42-1.4.77-2.35 1.08l-1.58.52c-3.97 1.28-6.06.21-7.35-3.76L2.5 13.28c-1.28-3.97-.22-6.07 3.75-7.35l1.58-.52c.41-.13.8-.24 1.17-.31-.3.61-.54 1.35-.74 2.2l-.98 4.19c-.98 4.18.31 6.24 4.48 7.23l1.68.4c.58.14 1.12.23 1.62.27Zm2.43-8.88c-.06 0-.12-.01-.19-.02l-4.85-1.23a.75.75 0 0 1 .37-1.45l4.85 1.23a.748.748 0 0 1-.18 1.47Z" fill="#228e6c"></path>
<path d="M14.56 13.89c-.06 0-.12-.01-.19-.02l-2.91-.74a.75.75 0 0 1 .37-1.45l2.91.74c.4.1.64.51.54.91-.08.34-.38.56-.72.56Z" fill="#228e6c"></path>
</svg>

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
icons/touch-icon-ipad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
icons/touch-icon-iphone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -1,6 +1,6 @@
{
"name": "@wcj/reference",
"version": "1.44.0",
"version": "1.46.0",
"description": "为开发人员分享快速参考备忘单(主要是方便自己)。",
"author": "jaywcjlove",
"license": "MIT",
@ -31,7 +31,7 @@
"husky": "^9.0.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"refs-cli": "^1.5.1",
"refs-cli": "^1.8.0",
"markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0"
},