Skip to content

Commit 7b14d5a

Browse files
authored
Merge pull request #21 from YuYuCong/develop
sync
2 parents 1cf7894 + 1df54ac commit 7b14d5a

File tree

156 files changed

+1888
-1016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+1888
-1016
lines changed

_posts/.obsidian/core-plugins.json

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
[
2-
"file-explorer",
3-
"global-search",
4-
"switcher",
5-
"graph",
6-
"backlink",
7-
"canvas",
8-
"outgoing-link",
9-
"tag-pane",
10-
"page-preview",
11-
"daily-notes",
12-
"templates",
13-
"note-composer",
14-
"command-palette",
15-
"editor-status",
16-
"bookmarks",
17-
"outline",
18-
"word-count",
19-
"file-recovery"
20-
]
1+
{
2+
"file-explorer": true,
3+
"global-search": true,
4+
"switcher": true,
5+
"graph": true,
6+
"backlink": true,
7+
"outgoing-link": true,
8+
"tag-pane": true,
9+
"page-preview": true,
10+
"daily-notes": true,
11+
"templates": true,
12+
"note-composer": true,
13+
"command-palette": true,
14+
"slash-command": false,
15+
"editor-status": true,
16+
"markdown-importer": false,
17+
"zk-prefixer": false,
18+
"random-note": false,
19+
"outline": true,
20+
"word-count": true,
21+
"slides": false,
22+
"audio-recorder": false,
23+
"workspaces": false,
24+
"file-recovery": true,
25+
"publish": false,
26+
"sync": false,
27+
"canvas": true,
28+
"properties": false,
29+
"bookmarks": true,
30+
"webviewer": false
31+
}

_posts/.obsidian/graph.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"repelStrength": 20,
5454
"linkStrength": 1,
5555
"linkDistance": 158,
56-
"scale": 0.22264717991933022,
57-
"close": true
56+
"scale": 0.3339707698789951,
57+
"close": false
5858
}

_posts/Algorithm/2021-02-09-ACO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ $$
206206

207207
## Code
208208

209-
// todo(congyu)
210209

211210

212211

_posts/Algorithm/2021-02-10-GA.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ Copyleft! 2021 William Yu. Some rights reserved.
141141

142142
## Code
143143

144-
// todo(congyu)
145-
144+
./GA.py
146145

147146

148147

_posts/Algorithm/2021-04-09-2-3-tree.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ template <class T>
9191
- 向一个父节点为 2- 节点的 3- 节点中插入新节点
9292
- 向一个父节点为 3- 节点的 3- 节点中插入新节点
9393

94-
| 插入方式 | 描述 | |
95-
| -------------------------------------------- | ---- | ---- |
96-
| 向 2- 节点中插入新节点 | | |
97-
| 向一棵只含 3- 节点的树中插入新节点 | | |
98-
| 向一个父节点为 2- 节点的 3- 节点中插入新节点 | | |
99-
| 向一个父节点为 3- 节点的 3- 节点中插入新节点 | | |
94+
| 插入方式 | 描述 | |
95+
| -------------------------------------------- | ---- | --- |
96+
| 向 2- 节点中插入新节点 | | |
97+
| 向一棵只含 3- 节点的树中插入新节点 | | |
98+
| 向一个父节点为 2- 节点的 3- 节点中插入新节点 | | |
99+
| 向一个父节点为 3- 节点的 3- 节点中插入新节点 | | |
100100

101101
### 向 2- 节点中插入新节点
102102

_posts/Linux/2020-07-09-git_basic_use.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "git 使用笔记"
55
categories: [Linux]
66
tags: [git,Linux]
77
redirect_from:
8-
- /2018/05/13/
8+
- /2020/07/09/
99
---
1010

1111
[TOC]
@@ -63,6 +63,10 @@ cd .git/
6363
cat config
6464
可以修改各项配置
6565
比如commit的创建人名与邮箱等
66+
67+
$ git config --local user.name <github’s Name>
68+
$ git config --local user.email <user@email.com>
69+
$ git config --list
6670
```
6771

6872
```shell

_posts/Linux/2020-07-10-git_release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ git log --graph --decorate --first-parent <上一个tag名称>..HEAD
230230
- e.g. 预计同期发布两个产品Release/Ch_v2.6.0和Release/En_v2.4.0
231231
- Release/En_v2.4已经定完版,理应合并回develop,此时发现尚有未定完版的Ch_v2.6,则应提pr合并到Release/Ch_v2.6
232232
- 如有冲突,解决冲突,再commit
233-
- 待CI 编译check通过之后,merge到develop即可
233+
- 待CI 编译check通过之后,merge到develop(**选择普通合并Merge Pull Request**
234234

235235

236236

_posts/Linux/2021-12-21-docker.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,18 @@ docker run <各项参数> <镜像> <命令>
361361
- **-e username="ritchie":** 设置环境变量;
362362
- **--env-file=[]:** 从指定文件读入环境变量;
363363
- **--cpuset="0-2" or --cpuset="0,1,2":** 绑定容器到指定CPU运行;
364-
- **-m :**设置容器使用内存最大值;
364+
- **-m:**设置容器使用内存最大值;
365365
- **--net="bridge":** 指定容器的网络连接类型,支持 bridge/host/none/container: 四种类型;
366366
- **--link=[]:** 添加链接到另一个容器;
367367
- **--expose=[]:** 开放一个端口或一组端口;
368368
- **--volume , -v:** 绑定一个卷
369369
370+
##### 列出所有容器
371+
372+
```shell
373+
docker container ls
374+
```
375+
370376
##### 启动容器
371377
372378
```shell

_posts/Linux/2021-12-23-video-tool.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ ffmpeg -ss 2 -t 10 -i output.avi -s 320x240 -r 15 output.gif
5555
- -r 表示视频帧率
5656

5757

58+
##### 调整视频速率
59+
60+
视频的倍速主要是通过控制`filter`中的`setpts`来实现,`setpts`是视频滤波器通过改变每一个`pts`时间戳来实现倍速的效果,如下只要把`PTS`缩小一半就可以实现2倍速,相反的是`PTS`增加一倍就达到2倍慢放的效果。
61+
实现:
62+
`ffmpeg -i test.mp4 -an -filter:v "setpts=0.5*PTS" output.mp4`
63+
`ffmpeg -i test.mp4 -an -filter:v "setpts=2*PTS" output.mp4`
64+
注意:视频调整的速度倍率范围为:[0.25, 4]
65+
66+
如果只调整视频的话最好把音频禁掉。
67+
68+
对视频进行加速时,如果不想丢帧,可以用-r 参数指定输出视频FPS,方法如下:
69+
`ffmpeg -i test.mp4 -an -r 60 -filter:v "setpts=2.0*PTS" output.mp4`
70+
71+
5872

5973
## ffmpeg 视频格式转码
6074

0 commit comments

Comments
 (0)