-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
211 lines (114 loc) · 38.9 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>青蓝🎏</title>
<link href="https://hexo-sage-nu.vercel.app/atom.xml" rel="self"/>
<link href="https://hexo-sage-nu.vercel.app/"/>
<updated>2023-05-04T07:47:42.000Z</updated>
<id>https://hexo-sage-nu.vercel.app/</id>
<author>
<name>青蓝🎏</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>Hugo自动化发布</title>
<link href="https://hexo-sage-nu.vercel.app/posts/dbb7b38f.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/dbb7b38f.html</id>
<published>2023-05-03T23:26:54.000Z</published>
<updated>2023-05-04T07:47:42.000Z</updated>
<content type="html"><![CDATA[<p>把博客发布系统植入 Ob,打造输入 & 输出的流水线。</p><span id="more"></span><p>Ob 的发布分享一直都是一个蛋疼问题,官方的发布实在是太贵了。这个时候静态博客就成了一个不错的替代,配合 ob 自带的一些插件就可以实现全自动发布,实现零压力输出。</p><hr><h2 id="git">git</h2><ul><li><a href="https://git-scm.com/">git 下载</a></li><li>git 仓库创建</li></ul><hr><h3 id="git-基础命令">git 基础命令</h3><ul><li><a href="https://getquicker.net/Sharedaction?code=d49471e9-8176-4f5a-d1c3-08d8423ccd55">ssh key 获取</a></li></ul><p><code>ssh-keygen</code> + 三次<strong>回车</strong></p><ul><li>公钥查看</li></ul><p><code>cat ~/.ssh/id_rsa.pub</code></p><ul><li>公钥添加</li></ul><p><img src="https://s1.vika.cn/space/2023/05/02/e8e568e5f63440c5a1f428ebd78c2371" alt="image.png"></p><ul><li>git 上传<ul><li><code>git config --global user.email "<你的邮箱>"</code></li><li><code>git config --global user.name "<你的用户名>"</code></li><li><code>git init</code></li><li><code>git add .</code></li><li><code>git commit -m "first push"</code></li><li><code>git remote add origin <你复制的HTTPS></code></li><li><code>git push -u origin master</code></li><li><code>git push</code></li></ul></li></ul><p><img src="https://s1.vika.cn/space/2023/05/02/1ed1d5cbb34344f4838c03ee5935d31d" alt="image.png"></p><ul><li>token 获取</li></ul><p><img src="https://s1.vika.cn/space/2023/05/02/965656c721f34261a9926286f7c2f4a2" alt="image.png"></p><ul><li>github actions</li></ul><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Sample workflow for building and deploying a Hugo site to GitHub Pages</span></span><br><span class="line"><span class="attr">name:</span> <span class="string">Deploy</span> <span class="string">Hugo</span> <span class="string">site</span> <span class="string">to</span> <span class="string">Pages</span></span><br><span class="line"></span><br><span class="line"><span class="attr">on:</span></span><br><span class="line"> <span class="comment"># Runs on pushes targeting the default branch</span></span><br><span class="line"> <span class="attr">push:</span></span><br><span class="line"> <span class="attr">branches:</span> [<span class="string">"master"</span>]</span><br><span class="line"></span><br><span class="line"> <span class="comment"># Allows you to run this workflow manually from the Actions tab</span></span><br><span class="line"> <span class="attr">workflow_dispatch:</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages</span></span><br><span class="line"><span class="attr">permissions:</span></span><br><span class="line"> <span class="attr">contents:</span> <span class="string">read</span></span><br><span class="line"> <span class="attr">pages:</span> <span class="string">write</span></span><br><span class="line"> <span class="attr">id-token:</span> <span class="string">write</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.</span></span><br><span class="line"><span class="comment"># However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.</span></span><br><span class="line"><span class="attr">concurrency:</span></span><br><span class="line"> <span class="attr">group:</span> <span class="string">"pages"</span></span><br><span class="line"> <span class="attr">cancel-in-progress:</span> <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Default to bash</span></span><br><span class="line"><span class="attr">defaults:</span></span><br><span class="line"> <span class="attr">run:</span></span><br><span class="line"> <span class="attr">shell:</span> <span class="string">bash</span></span><br><span class="line"></span><br><span class="line"><span class="attr">jobs:</span></span><br><span class="line"> <span class="comment"># Build job</span></span><br><span class="line"> <span class="attr">build:</span></span><br><span class="line"> <span class="attr">runs-on:</span> <span class="string">ubuntu-latest</span></span><br><span class="line"> <span class="attr">env:</span></span><br><span class="line"> <span class="attr">HUGO_VERSION:</span> <span class="number">0.108</span><span class="number">.0</span></span><br><span class="line"> <span class="attr">steps:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Install</span> <span class="string">Hugo</span> <span class="string">CLI</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">|</span></span><br><span class="line"><span class="string"> wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \</span></span><br><span class="line"><span class="string"> && sudo dpkg -i ${{ runner.temp }}/hugo.deb</span></span><br><span class="line"><span class="string"></span> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Install</span> <span class="string">Dart</span> <span class="string">Sass</span> <span class="string">Embedded</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">sudo</span> <span class="string">snap</span> <span class="string">install</span> <span class="string">dart-sass-embedded</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Checkout</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/checkout@v3</span></span><br><span class="line"> <span class="attr">with:</span></span><br><span class="line"> <span class="attr">submodules:</span> <span class="string">recursive</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Setup</span> <span class="string">Pages</span></span><br><span class="line"> <span class="attr">id:</span> <span class="string">pages</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/configure-pages@v3</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Install</span> <span class="string">Node.js</span> <span class="string">dependencies</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">"[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Build</span> <span class="string">with</span> <span class="string">Hugo</span></span><br><span class="line"> <span class="attr">env:</span></span><br><span class="line"> <span class="comment"># For maximum backward compatibility with Hugo modules</span></span><br><span class="line"> <span class="attr">HUGO_ENVIRONMENT:</span> <span class="string">production</span></span><br><span class="line"> <span class="attr">HUGO_ENV:</span> <span class="string">production</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">|</span></span><br><span class="line"><span class="string"> hugo \</span></span><br><span class="line"><span class="string"> --minify \</span></span><br><span class="line"><span class="string"> --baseURL "${{ steps.pages.outputs.base_url }}/"</span></span><br><span class="line"><span class="string"></span> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Upload</span> <span class="string">artifact</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/upload-pages-artifact@v1</span></span><br><span class="line"> <span class="attr">with:</span></span><br><span class="line"> <span class="attr">path:</span> <span class="string">./public</span></span><br><span class="line"></span><br><span class="line"> <span class="comment"># Deployment job</span></span><br><span class="line"> <span class="attr">deploy:</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">github-pages</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">${{</span> <span class="string">steps.deployment.outputs.page_url</span> <span class="string">}}</span></span><br><span class="line"> <span class="attr">runs-on:</span> <span class="string">ubuntu-latest</span></span><br><span class="line"> <span class="attr">needs:</span> <span class="string">build</span></span><br><span class="line"> <span class="attr">steps:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Deploy</span> <span class="string">to</span> <span class="string">GitHub</span> <span class="string">Pages</span></span><br><span class="line"> <span class="attr">id:</span> <span class="string">deployment</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/deploy-pages@v2</span></span><br></pre></td></tr></table></figure><hr><h2 id="hugo">hugo</h2><ul><li>框架了解<ul><li>archetypes</li><li>content</li><li>data</li><li>static</li><li>themes</li><li>config.toml</li></ul></li></ul><hr><h2 id="obsidian">obsidian</h2><ul><li>Image auto upload Plugin<ul><li>丝滑的复制、粘贴体验</li></ul></li><li>图床</li><li>templeter<ul><li>文章撰写、yaml 区字段生成</li></ul></li><li>obsidian git<ul><li>自动提交</li></ul></li></ul><hr><h2 id="quicker">quicker</h2><ul><li><a href="https://getquicker.net/Sharedaction?code=8dfe1e68-33f0-4329-14ae-08da4a84097c">智能备份</a></li></ul>]]></content>
<summary type="html"><p>把博客发布系统植入 Ob,打造输入 &amp; 输出的流水线。</p></summary>
<category term="折腾" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%8A%98%E8%85%BE/"/>
</entry>
<entry>
<title>用 Obsidian & Anki 实现渐进阅读的探索</title>
<link href="https://hexo-sage-nu.vercel.app/posts/b0a92a61.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/b0a92a61.html</id>
<published>2023-04-13T06:12:11.000Z</published>
<updated>2023-05-03T07:26:04.970Z</updated>
<content type="html"><![CDATA[<p>如果想用 Anki 实现 SuperMemo 般的渐进阅读……</p><span id="more"></span><hr><h2 id="SuperMemo-Anki-的优缺点比较">SuperMemo & Anki 的优缺点比较</h2><table><thead><tr><th>软件</th><th>优点</th><th>缺点</th></tr></thead><tbody><tr><td>SuperMemo</td><td>算法先进,可渐进阅读</td><td>单平台,只有 PC 端</td></tr><tr><td>Anki</td><td>多平台</td><td>卡片大爆炸,算法落后,不可渐进阅读</td></tr></tbody></table><hr><h2 id="最小的渐进阅读系统">最小的渐进阅读系统</h2><ul><li>交叉</li><li>摘录</li><li>挖空/问答</li><li>优先级排序</li><li>间隔重复</li></ul><hr><h2 id="用-Obsidian-Anki-实现渐进阅读的探索">用 Obsidian & Anki 实现渐进阅读的探索</h2><ul><li>算法落后&卡片堆积的解决方案:<ul><li><a href="https://github.com/open-spaced-repetition/fsrs4anki">FSRS 算法</a>(<em>叶哥</em>):更先进,可<strong>提前</strong>或<strong>推迟</strong></li></ul></li><li>渐进阅读解决方案探索:<ul><li><a href="https://github.com/st3v3nmw/obsidian-spaced-repetition">Spaced Repetition 插件</a> :文章的排期(<em>交叉</em>)</li><li><a href="https://apps.ankiweb.net/">Anki</a> & <a href="https://github.com/reuseman/flashcards+obsidian/wiki">flashcards 插件</a>:摘录、挖空/问答、 间隔重复</li><li>Quicker 动作:<a href="https://getquicker.net/Sharedaction?code=48ac555e-fe67-44b7-8a38-08db25feb013">迭代改卡</a></li><li>文件夹结构:优先级排序(<em>相对的</em>)</li></ul></li></ul>]]></content>
<summary type="html"><p>如果想用 Anki 实现 SuperMemo 般的渐进阅读……</p></summary>
<category term="折腾" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%8A%98%E8%85%BE/"/>
</entry>
<entry>
<title>全平台无痛 Markdown</title>
<link href="https://hexo-sage-nu.vercel.app/posts/350fd8a3.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/350fd8a3.html</id>
<published>2023-04-13T01:28:29.000Z</published>
<updated>2023-05-03T07:26:04.931Z</updated>
<content type="html"><![CDATA[<p>在我们使用 Markdown 的过程中总是会被 Markdown 相对复杂的语法所困扰,不同设备、不同软件之间,输入方式各不相同,那么有没有一种方式可以把所有的设备输入 Markdown 的方式都统一起来呢?直到我发现了<strong>它</strong>。</p><span id="more"></span><hr><h2 id="讯飞输入法">讯飞输入法</h2><p>通过在词库中添加个性短语,使得我们可以将复杂 Markdown 语法输入简化到极其简单的两个步骤:</p><ol><li>打出首字母。</li><li>选择并确定。</li></ol><p>因为讯飞输入法是全平台同步的,你几乎可以在任何设备上共享你的个性短语,从而完全抛弃快捷键(<em>当然高亮、加粗、斜体除外</em>),真正地做到<strong>无痛 Markdown</strong>。</p><p><img src="https://s1.vika.cn/space/2023/04/13/ad86b8ba395c45febceade94ac60c8d2" alt="image.png"></p><hr><p>下面是我的一些个性短语设置,大家可以参考一下。</p><h2 id="Markdown-个性短语表">Markdown 个性短语表</h2><table><thead><tr><th>快捷键</th><th>个性短语</th><th>候选栏位置</th><th>字母选取原因解释</th></tr></thead><tbody><tr><td>h</td><td><code># </code></td><td>1</td><td>一级标题</td></tr><tr><td>h</td><td><code>## </code></td><td>2</td><td>二级标题</td></tr><tr><td>h</td><td><code>### </code></td><td>3</td><td>三级标题</td></tr><tr><td>l</td><td><code>- </code></td><td>1</td><td>取自 list 首字母</td></tr><tr><td>k</td><td><code>1. </code></td><td>1</td><td>紧靠 list,便于输入</td></tr><tr><td>j</td><td><code>- [ ] </code></td><td>1</td><td>紧靠 list,便于输入</td></tr><tr><td>b</td><td><code>> </code></td><td>1</td><td>取自 blockquote 首字母</td></tr><tr><td>q</td><td><code>> [!Quote] </code></td><td>1</td><td>首字母</td></tr><tr><td>a</td><td><code>> [!Abstract] </code></td><td>1</td><td>首字母</td></tr><tr><td>e</td><td><code>> [!Example] </code></td><td>1</td><td>首字母</td></tr><tr><td>p</td><td><code>+ </code></td><td>1</td><td>advanced slides 插件专用,取自 plus 首字母</td></tr><tr><td>o</td><td><code>1) </code></td><td>1</td><td>advanced slides 插件专用,紧靠 plus,便于输入</td></tr></tbody></table>]]></content>
<summary type="html"><p>在我们使用 Markdown 的过程中总是会被 Markdown 相对复杂的语法所困扰,不同设备、不同软件之间,输入方式各不相同,那么有没有一种方式可以把所有的设备输入 Markdown 的方式都统一起来呢?直到我发现了<strong>它</strong>。</p></summary>
<category term="折腾" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%8A%98%E8%85%BE/"/>
</entry>
<entry>
<title>关于博客的一些感想</title>
<link href="https://hexo-sage-nu.vercel.app/posts/6d4222b2.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/6d4222b2.html</id>
<published>2023-04-12T07:44:33.000Z</published>
<updated>2023-05-03T07:26:05.013Z</updated>
<content type="html"><![CDATA[<p>我觉得博客自动化部署后最舒服的地方就是有了一个可以随时随地、自由表达的地方,不用再去造轮子了,而是专注于创作本身,回归自我。</p><span id="more"></span><p>日常生活中发布一些私人的内容时,总是需要顾及各个方面的影响,或是家人、或是朋友、抑或是同事……</p><p>我们的表达欲在反复的纠结中被逐渐消磨殆尽。</p><p>我想说的是,我们每个人都应该去捍卫自己的表达权,我们每个人都应该有一个记录自己所思所想的空间。要不然,凭何缅怀?正如泰戈尔所说:天空中没有痕迹, 而我已经飞过。</p><p>人生短短几十年,总得留下些什么,不是么?</p>]]></content>
<summary type="html"><p>我觉得博客自动化部署后最舒服的地方就是有了一个可以随时随地、自由表达的地方,不用再去造轮子了,而是专注于创作本身,回归自我。</p></summary>
<category term="日常" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%97%A5%E5%B8%B8/"/>
</entry>
<entry>
<title>Hugo in Obsidian</title>
<link href="https://hexo-sage-nu.vercel.app/posts/ea47c8fc.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/ea47c8fc.html</id>
<published>2023-04-12T05:06:56.000Z</published>
<updated>2023-05-03T07:26:04.981Z</updated>
<content type="html"><![CDATA[<p>尝试用 quicker 的<strong>智能备份</strong>推送 Hugo 文件到 github 并且利用 github action 自动构建 github page,效果还不错。</p><span id="more"></span><p>究其原因是 Hugo 的文件夹体系不太适合知识管理, obsidian git 我用来备份我的知识库了,直接用来 push Hugo 文件的话我的文件夹体系就破坏了,所以选择了将 Hugo 文件放到了 Calendar 文件夹里面,利用 quicker 的智能备份动作推送 Hugo 文件到 github ,速度也挺快的。</p><p>要是 obsidian git 插件可以同时提交两个 git 仓库就好了,那将绝杀,直接形成输入和输出的 pipline,实现<strong>真 all in one</strong>!</p><p><img src="https://s1.vika.cn/space/2023/04/12/ed4dd1b558434b3f85f943c74e9bac4e" alt="图片"></p>]]></content>
<summary type="html"><p>尝试用 quicker 的<strong>智能备份</strong>推送 Hugo 文件到 github 并且利用 github action 自动构建 github page,效果还不错。</p></summary>
<category term="日常" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%97%A5%E5%B8%B8/"/>
</entry>
<entry>
<title>正则表达式</title>
<link href="https://hexo-sage-nu.vercel.app/posts/2f57a694.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/2f57a694.html</id>
<published>2023-02-18T03:36:57.000Z</published>
<updated>2023-05-03T07:26:04.938Z</updated>
<content type="html"><![CDATA[<p>掌握正则表达式,让你的文本处理事半功倍!</p><span id="more"></span><hr><h2 id="正则表达式">正则表达式</h2><table><thead><tr><th>符号</th><th>含义</th></tr></thead><tbody><tr><td><code>^</code></td><td>幂符号表示匹配<strong>每一行开始</strong> 是 xxx 的</td></tr><tr><td><code>$</code></td><td>美元符号表示匹配<strong>每一行结束</strong> 是 xxx 的</td></tr><tr><td><code>*</code></td><td>表示匹配任意次数</td></tr><tr><td><code>?</code></td><td>有一次或没有都可以</td></tr><tr><td><code>+</code></td><td>必须要有一次</td></tr><tr><td><code>-></code></td><td>代表替换掉意思</td></tr><tr><td><code>\</code></td><td>转义字符,可以把正则语法中的关键字转化为字符</td></tr><tr><td><code>{n,m}</code></td><td>匹配次数在 n 次到 m 次区间内,用以限定字符长度。</td></tr><tr><td><code>{n,}</code></td><td>匹配 n 次及以上,n 是任意数字</td></tr><tr><td><code>{n}</code></td><td>匹配 n 次,n 是任意数字</td></tr><tr><td><code>(xyz)</code></td><td>小括号表示顺序匹配,一个括号代表一个组</td></tr><tr><td><code>[]</code></td><td>中括号表示乱序匹配</td></tr><tr><td><code>"[a-z]"</code></td><td>匹配一行中任意数量的小写字符</td></tr><tr><td><code>|</code></td><td>或,表示前后都可以匹配,这里转义了</td></tr><tr><td><code>\n</code></td><td>匹配一个换行符(就是<em>一行空行</em>)</td></tr><tr><td><code>$1</code></td><td>加数字绝对引用,<em>引用括号匹配</em>的第一个组,可以用来替换</td></tr><tr><td><code>.</code></td><td>匹配除了换行符的内容,任意字符都可以匹配(适用于<em>挨在一起的部分</em>)</td></tr></tbody></table><hr><table><thead><tr><th>简写</th><th>描述(大写表示非)</th></tr></thead><tbody><tr><td><code>\s</code></td><td>匹配空格<code>[a-zA-Z0-9_]</code></td></tr><tr><td><code>\d</code></td><td>匹配数字<code>[0-9]</code></td></tr><tr><td><code>\w</code></td><td>匹配所有字符数字<code>[\t\n\f\r\p{Z}]</code></td></tr><tr><td><code>\b</code></td><td>表示单词字符的边界</td></tr></tbody></table><hr><table><thead><tr><th>修饰符</th><th>描述</th></tr></thead><tbody><tr><td><code>i</code></td><td>不区分大小写</td></tr><tr><td><code>g</code></td><td>全局搜索</td></tr><tr><td><code>m</code></td><td>多行匹配</td></tr></tbody></table>]]></content>
<summary type="html"><p>掌握正则表达式,让你的文本处理事半功倍!</p></summary>
<category term="折腾" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%8A%98%E8%85%BE/"/>
</entry>
<entry>
<title>LaTex公式入门</title>
<link href="https://hexo-sage-nu.vercel.app/posts/95b23513.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/95b23513.html</id>
<published>2023-02-03T16:00:00.000Z</published>
<updated>2023-05-03T07:26:04.949Z</updated>
<content type="html"><![CDATA[<ul><li>LaTex公式是建立在Tex式上的格式,用于排版。它内置了大量的公式,为用户提供了极大的便利。</li></ul><span id="more"></span><ul><li>命令以 <code>\</code> 开头,用 <code>$</code> 符号括起。</li></ul><h2 id="希腊字母">希腊字母</h2><h3 id="小写字母">小写字母</h3><ul><li>按照<strong>希腊字母对照表</strong>。</li></ul><h3 id="大写字母">大写字母</h3><ul><li>只需将对应<strong>小写字母的首字母大写</strong>。<br><img src="https://s1.vika.cn/space/2023/02/02/ea59026d8d6a4f3783285161c53f9ef1" alt="普通运算符.png"></li></ul><h2 id="上下标">上下标</h2><h3 id="下标">下标</h3><ul><li>使用下划线 <code>-</code></li></ul><h3 id="上标">上标</h3><ul><li>使用 <code>^</code></li></ul><blockquote><p>[!Tips]<br>当上下标多于一个字符时,需要用<strong>大括号括起</strong>。</p></blockquote><ul><li><code>$x^2$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/a0ef07bc21e4474aa7caa74e73441ae2" alt="image.png"></li></ul></li><li><code>$x_i$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/2ae1ffea897e4a40bfe72160bfc1e5e9" alt="image.png"></li></ul></li><li><code>$e^{x+y+z}$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/06287b63582c47fc89fc7a53e58f78c2" alt="image.png"></li></ul></li></ul><h2 id="分式与根式">分式与根式</h2><h3 id="分式">分式</h3><ul><li>采用 <code>\frac{}{}</code> 来表示,其中第一个 <code>{}</code> 为分子,第二个 <code>{}</code> 为分母。</li></ul><h3 id="根式">根式</h3><ul><li>采用 <code>\sqrt[]{}</code> 表示,其中第一个 <code>[]</code> 表示开几次方根,第二个 <code>{}</code> 表示被开方数。</li><li><code>$\frac{ a }{ b }$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/1f2129d4f8de48e29e5b96ffc3e6b493" alt="image.png"></li></ul></li><li><code>$\sqrt{ 2 }$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/ac2fd13413d74889a38517ccd45904fd" alt="image.png"></li></ul></li><li><code>$\sqrt[ 3 ]{ 4 }$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/ea379defa7374a58a634cdfd312fb0bb" alt="image.png"></li></ul></li></ul><h2 id="普通运算符">普通运算符</h2><h3 id="二元关系符">二元关系符</h3><ul><li>所有的二元关系符都可以加<code>\not</code>前缀得到相反意义的关系符,例如<code>\not=</code>就得到不等号(同<code>\ne</code> )。<br><img src="https://s1.vika.cn/space/2023/02/04/282afcddc60343719e1baf1e0a7b449b" alt="image.png"></li></ul><h3 id="二元运算符">二元运算符</h3><p><img src="https://s1.vika.cn/space/2023/02/04/0141a23336034042a189538e8ba0ea6a" alt="image.png"></p><h2 id="大型运算符">大型运算符</h2><ul><li>注意,通常情况下,求和 <code>/</code> 求积符号的上下界条件显示在符号的右侧如果想让其显示在下侧,需要在求和号后加 <code>\limits</code> 做限制。</li><li><code>$\sum_{i=O}^{n}x_i$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/435b7a2ecaef47be800bea8aa018866f" alt="image.png"></li></ul></li><li><code>$\sum\limits_{i=O}^{n}x_i$</code><ul><li><img src="https://s1.vika.cn/space/2023/02/04/fe53f51a99ce46fa89154f30254a8ac4" alt="image.png"></li></ul></li><li><img src="https://s1.vika.cn/space/2023/02/04/c5f7a5ce4f0f40e1834a0a28ad2dd921" alt="image.png"></li></ul><h2 id="标注符号">标注符号</h2><h3 id="数学重音符号">数学重音符号</h3><ul><li><img src="https://s1.vika.cn/space/2023/02/04/de953ccde1df4a468b0682995543ac7b" alt="image.png"></li></ul><h3 id="作为重音的箭头符号">作为重音的箭头符号</h3><h2 id="箭头">箭头</h2><ul><li><img src="https://s1.vika.cn/space/2023/02/04/83e9098745f447f1908206c2541f3283" alt="image.png"></li></ul><h2 id="矩阵">矩阵</h2><ul><li><code>$$\begin{矩阵类型} 值 & 值 & 值\\ 值 & 值 & 值 \end{矩阵类型}$$</code></li><li>实例:</li></ul><figure class="highlight livescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">$$<span class="string">\begin{equation}</span></span><br><span class="line"><span class="string">\begin{gathered}</span></span><br><span class="line"><span class="string">\begin{matrix}</span> <span class="number">0</span> & <span class="number">1</span> <span class="string">\\</span> <span class="number">1</span> & <span class="number">0</span> <span class="string">\end{matrix}</span></span><br><span class="line"><span class="string">\quad</span></span><br><span class="line"><span class="string">\begin{pmatrix}</span> <span class="number">0</span> & -i <span class="string">\\</span> i & <span class="number">0</span> <span class="string">\end{pmatrix}</span></span><br><span class="line"><span class="string">\quad</span></span><br><span class="line"><span class="string">\begin{bmatrix}</span> <span class="number">0</span> & -<span class="number">1</span> <span class="string">\\</span> <span class="number">1</span> & <span class="number">0</span> <span class="string">\end{bmatrix}</span></span><br><span class="line"><span class="string">\quad</span></span><br><span class="line"><span class="string">\begin{Bmatrix}</span> <span class="number">1</span> & <span class="number">0</span> <span class="string">\\</span> <span class="number">0</span> & -<span class="number">1</span> <span class="string">\end{Bmatrix}</span></span><br><span class="line"><span class="string">\quad</span></span><br><span class="line"><span class="string">\begin{vmatrix}</span> a & b <span class="string">\\</span> c & d <span class="string">\end{vmatrix}</span></span><br><span class="line"><span class="string">\quad</span></span><br><span class="line"><span class="string">\begin{Vmatrix}</span> i & <span class="number">0</span> <span class="string">\\</span> <span class="number">0</span> & -i <span class="string">\end{Vmatrix}</span></span><br><span class="line"><span class="string">\end{gathered}</span></span><br><span class="line"><span class="string">\end{equation}$$</span></span><br></pre></td></tr></table></figure><ul><li><img src="https://s1.vika.cn/space/2023/02/04/01ef83d7ef934ceebb8d914d2d303fd4" alt="image.png"></li></ul>]]></content>
<summary type="html"><ul>
<li>LaTex公式是建立在Tex式上的格式,用于排版。它内置了大量的公式,为用户提供了极大的便利。</li>
</ul></summary>
<category term="折腾" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%8A%98%E8%85%BE/"/>
</entry>
<entry>
<title>道德经里的处世哲学</title>
<link href="https://hexo-sage-nu.vercel.app/posts/fec54ba1.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/fec54ba1.html</id>
<published>2023-01-29T05:06:56.000Z</published>
<updated>2023-05-03T07:26:05.034Z</updated>
<content type="html"><![CDATA[<p>《道德经》真不愧为“万经之王”!</p><span id="more"></span><p>《道德经》是我最近在读的一本书,真的从里面学会了许多。下面举几个例子:</p><h2 id="一、潜沟通">一、潜沟通</h2><ul><li>任何人说的每句话、做的每件事,都有<strong>表面沟通</strong>和<strong>潜沟通</strong>两层意思。人在社会中需要这样的方式来包装自己,使自己显得不那么现实。</li></ul><h3 id="启示:">启示:</h3><ol><li>和别人交流的时候我们需要去<strong>识别别人的潜沟通</strong>,看清表象后面的实相,捕捉别人的真实意图。</li><li>沟通中我们要学会包装,掩盖自己的真实状态,学会<strong>用潜沟通传递自己的真实意图</strong>,在尊重他人的情况下做自己——即世俗所谓的情商。</li></ol><h2 id="二、价值循环">二、价值循环</h2><ul><li>人都是趋利避害的。你提供价值他就会趋从,你索取价值他们就会逃避。所以要想从别人那里得到什么你就要付出点什么。</li><li>你提供价值<strong>成就了别人</strong>,别人也会反过来成就你。也就是博弈论里的<strong>正和博弈</strong>,双方达成双赢的局面。</li></ul><h3 id="启示:-2">启示:</h3><ol><li>不要用道德仁义的那一套去绑架别人,实打实的利益交换,<strong>价值循环</strong>,才是人类社会背后运行的底层逻辑。</li></ol><h2 id="三、非对抗">三、非对抗</h2><ul><li><p><strong>不害不争</strong>:只要别人没有触碰到你的利益与底线,就没有必要与他争辩。</p><ul><li>和别人对抗的成本是很高的,很容易被针对。最好的方法就是<strong>不让对抗产生</strong>。<ul><li>能量会反弹,你释放什么能量就会获得什么能量。当你和别人对抗的时候你的负面情绪也会通过潜沟通传递给别人,从而激起别人的负面情绪,获得更坏的结果。也就是博弈论里的<strong>负和博弈</strong>,最终造成的后果就是两败俱伤。</li></ul></li><li>但是如果别人触碰到了你的底线,你就应该表现出你的攻击性,设立你和他相处的边界,<strong>制造记忆痛点</strong>,让他学会如何和你相处。</li><li>你和任何人相处方式都是你一手打造出来的,你第一次不反抗,随着登门槛效应,你之后再反抗就会越来越困难,你反抗的时候他也会更加变本加厉。</li></ul></li><li><p><strong>不树敌</strong>:反抗并不意味着树敌。</p><ul><li>当别人服软、顺从后,你需要给他<strong>制造记忆爽点</strong>,也就是示弱,给他一点好处,即俗话说的“打你一个巴掌,再拿一个甜枣给你吃”,不给自己培养敌人。</li></ul></li></ul><h3 id="启示:-3">启示:</h3><ol><li>和别人相处的时候要学会<strong>设立边界</strong>,打造你和别人相处的方式。</li></ol>]]></content>
<summary type="html"><p>《道德经》真不愧为“万经之王”!</p></summary>
<category term="阅读" scheme="https://hexo-sage-nu.vercel.app/tags/%E9%98%85%E8%AF%BB/"/>
</entry>
<entry>
<title>劣币驱逐良币</title>
<link href="https://hexo-sage-nu.vercel.app/posts/27e8aa67.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/27e8aa67.html</id>
<published>2023-01-27T16:00:00.000Z</published>
<updated>2023-05-04T06:58:22.412Z</updated>
<content type="html"><![CDATA[<p>未掺杂杂质的银子只要重新熔铸并掺入杂质就可以有更高的购买力,所以未掺杂杂质的银子被逐渐淘汰。</p><span id="more"></span><p>在现实社会当中,依靠资本运作,利用人性与社会规则等等手段就可以攫取更多的利益、获取到更好的竞争优势,于是人心越来越复杂,老实善良的人越来越少。</p><p>新浪抄袭小鸡词典就是一个血淋淋的例子:</p><p>不仅抄袭还倒打一耙,利用资本活生生把一个小公司拖垮,随随便便就扼杀了一群普通人的理想……</p>]]></content>
<summary type="html"><p>未掺杂杂质的银子只要重新熔铸并掺入杂质就可以有更高的购买力,所以未掺杂杂质的银子被逐渐淘汰。</p></summary>
<category term="日常" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%97%A5%E5%B8%B8/"/>
</entry>
<entry>
<title>Hugo建站</title>
<link href="https://hexo-sage-nu.vercel.app/posts/48dfa93b.html"/>
<id>https://hexo-sage-nu.vercel.app/posts/48dfa93b.html</id>
<published>2023-01-17T16:00:00.000Z</published>
<updated>2023-05-03T07:26:04.991Z</updated>
<content type="html"><![CDATA[<p> 断断续续耗时三天,终于建立了自己的hugo个人博客网站。<a href="https://dragonlau0924.github.io/">https://dragonlau0924.github.io/</a></p><span id="more"></span><p> 妈的,最烦的就是push到github的部分,老是出现各种报错,度娘都快成亲娘了。过程虽然很蛋疼,但是也学会了很多东西,git算是入门了,而不仅仅是停留在白嫖各种资源的阶段。</p><p> 有了自己的个人博客,希望自己以后能够更新得勤快一点,多多输出,提升自己做决策的能力,也希望自己能够在外部的交流中找到反馈,不断地在自己所关注的领域精进。</p><p> 这次的折腾也印证了一个道理——<strong>任何事情都是越做越容易的</strong>。当我们把学习区的内容内化到我们大大脑的潜意识后,再次提取就会变得越来越容易。也就是所谓的用进废退原则。</p>]]></content>
<summary type="html"><p> 断断续续耗时三天,终于建立了自己的hugo个人博客网站。<a href="https://dragonlau0924.github.io/">https://dragonlau0924.github.io/</a></p></summary>
<category term="日常" scheme="https://hexo-sage-nu.vercel.app/tags/%E6%97%A5%E5%B8%B8/"/>
</entry>
</feed>