-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
139 additions
and
39 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 各种秘籍 | ||
|
||
import DocCardList from '@theme/DocCardList'; | ||
|
||
<DocCardList /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 架构师必须掌握的技术 | ||
|
||
![](https://img-blog.csdnimg.cn/20200404104031260.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 大数据我们该学点什么 | ||
|
||
![](https://img-blog.csdnimg.cn/20200404105052489.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 区块链技术大合集 | ||
|
||
![](https://img-blog.csdnimg.cn/2020040410571812.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# golang基础 | ||
|
||
![](https://img-blog.csdnimg.cn/2020040410590241.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 思维导图 | ||
|
||
import DocCardList from '@theme/DocCardList'; | ||
|
||
<DocCardList /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# java必须掌握的技术 | ||
|
||
![](https://img-blog.csdnimg.cn/20200404104308533.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 你所不知道的前端技术 | ||
|
||
![](https://img-blog.csdnimg.cn/2020040411005491.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 必须掌握的设计模式 | ||
|
||
![](https://img-blog.csdnimg.cn/20200404104728815.png) |
8 changes: 6 additions & 2 deletions
8
docs/tips/01-db-primary-foregin-keys.md → ...tSheet/tips/01-db-primary-foregin-keys.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
小知识系列:数据库的主键和外键 | ||
--- | ||
slug: /01-db-primary-foregin-keys | ||
--- | ||
|
||
# 1. 小知识系列:数据库的主键和外键 | ||
|
||
|
||
[toc] | ||
|
||
# 简介 | ||
|
||
|
6 changes: 5 additions & 1 deletion
6
docs/tips/01-googleCloud-azure-aws.md → ...eatSheet/tips/01-googleCloud-azure-aws.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/tips/02-new-gitbook-to-pdf.md → .../cheatSheet/tips/02-new-gitbook-to-pdf.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
docs/tips/03-semantic-version.md → docs/cheatSheet/tips/03-semantic-version.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
docs/tips/03-swagger-to-html-pdf.md → ...cheatSheet/tips/03-swagger-to-html-pdf.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
docs/tips/04-unicode-sorting.md → docs/cheatSheet/tips/04-unicode-sorting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
开发小技巧之:unicode的排序和正则匹配 | ||
--- | ||
slug: /04-unicode-sorting | ||
--- | ||
|
||
[toc] | ||
# 7. 开发小技巧之:unicode的排序和正则匹配 | ||
|
||
# 简介 | ||
|
||
|
6 changes: 4 additions & 2 deletions
6
docs/tips/05-git-personal-access-token.md → ...heet/tips/05-git-personal-access-token.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
使用账号密码来操作github? NO! | ||
--- | ||
slug: /05-git-personal-access-token | ||
--- | ||
|
||
[toc] | ||
# 8. 使用账号密码来操作github? NO! | ||
|
||
# 简介 | ||
|
||
|
6 changes: 4 additions & 2 deletions
6
docs/tips/06-jetbrains-fleet.md → docs/cheatSheet/tips/06-jetbrains-fleet.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
JetBrains又出神器啦!Fleet,体验飞一般的感觉 | ||
--- | ||
slug: /06-jetbrains-fleet | ||
--- | ||
|
||
[toc] | ||
# 9. JetBrains又出神器啦!Fleet,体验飞一般的感觉 | ||
|
||
# 简介 | ||
|
||
|
6 changes: 4 additions & 2 deletions
6
docs/tips/07-git-largefile.md → docs/cheatSheet/tips/07-git-largefile.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Github又悄悄升级了,这次的变化是大文件的存储方式 | ||
--- | ||
slug: /07-git-largefile | ||
--- | ||
|
||
[toc] | ||
# 10. Github又悄悄升级了,这次的变化是大文件的存储方式 | ||
|
||
# 简介 | ||
|
||
|
5 changes: 5 additions & 0 deletions
5
docs/tips/beidou-how-to-work.md → .../cheatSheet/tips/08-beidou-how-to-work.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
slug: /beidou-how-to-work | ||
--- | ||
|
||
# 11. 北斗系统和他的工作原理 | ||
|
||
# 简介 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# 使用find命令递归查找所有.md文件 | ||
find . -type f -name "*.md" | while read -r file; do | ||
# 获取文件所在的目录和带后缀的文件名 | ||
dir=$(dirname -- "$file") | ||
filename_with_ext=$(basename -- "$file") | ||
|
||
# 去除文件名开头的数字和短横线,并获取不带后缀的文件名 | ||
# filename=$(echo "$filename_with_ext" | sed -E 's/^[0-9-]+//') | ||
filename=$(echo "$filename_with_ext") | ||
filename="${filename%.md}" # 去除.md后缀 | ||
|
||
# 构造要插入的三行代码 | ||
header="--- | ||
slug: /${filename} | ||
--- | ||
" | ||
echo "$header"; | ||
|
||
# 将这三行代码插入到文件的开头 | ||
{ | ||
echo "$header"; | ||
cat "$file"; | ||
} > "${file}.tmp" && mv "${file}.tmp" "$file" | ||
|
||
echo "已更新文件: $file" | ||
done | ||
|
||
echo "所有.md文件已更新完成。" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# 初始化计数器 | ||
count=0 | ||
|
||
# 列出当前目录下的所有 .md 文件 | ||
for file in *.md; do | ||
# 如果文件存在 | ||
if [ -f "$file" ]; then | ||
# 计数器加1 | ||
count=$((count+1)) | ||
# 构造要添加的文本 | ||
text="# $count. " | ||
# 使用 sed 命令在文件的第一行前添加文本 | ||
gsed -i "1s|^|$text|" "$file" | ||
fi | ||
done | ||
|
||
echo "Finished adding numbering to .md files." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 小技巧 | ||
|
||
import DocCardList from '@theme/DocCardList'; | ||
|
||
<DocCardList /> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.