Skip to content

Commit

Permalink
Site updated: 2024-10-02 08:13:47
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxizhou233 committed Oct 2, 2024
1 parent a8eaa06 commit 092ea26
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
20 changes: 13 additions & 7 deletions 2024/09/30/note-weblab-w0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<meta name="author" content="Xizhou Chen">
<meta name="keywords" content="">

<meta name="description" content="flex 中,默认行排布 使用 ‘flex-grow 控制单元大小">
<meta name="description" content="总结 flex 中,默认使用行排布 flex-grow 控制单元大小 清除计时器需要给 setInterval一个名字(let sth &#x3D; setInterval(func,time))">
<meta property="og:type" content="article">
<meta property="og:title" content="note-weblab-w0">
<meta property="og:url" content="http://example.com/2024/09/30/note-weblab-w0/index.html">
<meta property="og:site_name" content="Fulereneee">
<meta property="og:description" content="flex 中,默认行排布 使用 ‘flex-grow 控制单元大小">
<meta property="og:description" content="总结 flex 中,默认使用行排布 flex-grow 控制单元大小 清除计时器需要给 setInterval一个名字(let sth &#x3D; setInterval(func,time))">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2024-09-30T10:19:40.000Z">
<meta property="article:modified_time" content="2024-09-30T14:33:12.142Z">
<meta property="article:modified_time" content="2024-10-02T00:13:41.274Z">
<meta property="article:author" content="Xizhou Chen">
<meta property="article:tag" content="前端">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -240,7 +240,7 @@
<span class="post-meta mr-2">
<i class="iconfont icon-chart"></i>

17
35

</span>

Expand Down Expand Up @@ -302,16 +302,22 @@ <h1 id="seo-header">note-weblab-w0</h1>
<p id="updated-time" class="note note-info" style="">


本文最后更新于 2024年9月30日 晚上
本文最后更新于 2024年10月2日 早上


</p>


<div class="markdown-body">

<p>‘flex’ 中,默认行排布 </p>
<p>使用 ‘flex-grow’ 控制单元大小</p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><ol>
<li><p><code>flex</code> 中,默认使用行排布</p>
</li>
<li><p><code>flex-grow</code> 控制单元大小</p>
</li>
<li><p>清除计时器需要给 <code>setInterval</code>一个名字(<code>let sth = setInterval(func,time)</code></p>
</li>
</ol>


</div>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ <h2 class="index-header">

<a class="index-excerpt index-excerpt__noimg" href="/2024/09/30/note-weblab-w0/" target="_self">
<div>
flex 中,默认行排布 使用 ‘flex-grow 控制单元大小
总结 flex 中,默认使用行排布 flex-grow 控制单元大小 清除计时器需要给 setInterval一个名字(let sth = setInterval(func,time))
</div>
</a>

Expand Down
2 changes: 1 addition & 1 deletion local-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="/2024/09/30/note-weblab-w0/"/>
<url>/2024/09/30/note-weblab-w0/</url>

<content type="html"><![CDATA[<p>‘flex 中,默认行排布 </p><p>使用 ‘flex-grow 控制单元大小</p>]]></content>
<content type="html"><![CDATA[<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><ol><li><p><code>flex</code> 中,默认使用行排布</p></li><li><p><code>flex-grow</code> 控制单元大小</p></li><li><p>清除计时器需要给 <code>setInterval</code>一个名字(<code>let sth = setInterval(func,time)</code>)</p></li></ol>]]></content>



Expand Down
2 changes: 1 addition & 1 deletion search.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"title":"20240922","url":"/2024/09/22/20240922/","content":"<h1 id=\"回归辣\"><a href=\"#回归辣\" class=\"headerlink\" title=\"回归辣\"></a>回归辣</h1><h2 id=\"昨日总结\"><a href=\"#昨日总结\" class=\"headerlink\" title=\"昨日总结\"></a>昨日总结</h2><p>给昨天先做一下总结</p>\n<ol>\n<li>骑车到达尖岭沙滩,闻到了海的味道,舒服。</li>\n<li>重建了博客,今后要多写多总结</li>\n<li>复建CF,但是发现自己好菜啊。 另: 不开<code>long long</code> 见祖宗</li>\n<li>早上看了看丘维声的高等代数。这才是好的大学老师的模样啊!</li>\n</ol>\n<p>大概就是这些了,今日事件晚上再更新。</p>\n<p>下面是一些图片:</p>\n<p><img src=\"/2024/09/22/20240922/cows.jpg\" alt=\"牛\"><br><img src=\"/2024/09/22/20240922/sea.jpg\" alt=\"海\"><br><img src=\"/2024/09/22/20240922/chair.jpg\" alt=\"椅\"><br><img src=\"/2024/09/22/20240922/sea.jpg\" alt=\"花\"></p>\n"},{"title":"Hello World","url":"/2024/09/21/hello-world/","content":"<p>Welcome to <a href=\"https://hexo.io/\">Hexo</a>! This is your very first post. Check <a href=\"https://hexo.io/docs/\">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href=\"https://hexo.io/docs/troubleshooting.html\">troubleshooting</a> or you can ask me on <a href=\"https://github.com/hexojs/hexo/issues\">GitHub</a>.</p>\n<h2 id=\"Quick-Start\"><a href=\"#Quick-Start\" class=\"headerlink\" title=\"Quick Start\"></a>Quick Start</h2><h3 id=\"Create-a-new-post\"><a href=\"#Create-a-new-post\" class=\"headerlink\" title=\"Create a new post\"></a>Create a new post</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo new <span class=\"hljs-string\">&quot;My New Post&quot;</span><br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/writing.html\">Writing</a></p>\n<h3 id=\"Run-server\"><a href=\"#Run-server\" class=\"headerlink\" title=\"Run server\"></a>Run server</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo server<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/server.html\">Server</a></p>\n<h3 id=\"Generate-static-files\"><a href=\"#Generate-static-files\" class=\"headerlink\" title=\"Generate static files\"></a>Generate static files</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo generate<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/generating.html\">Generating</a></p>\n<h3 id=\"Deploy-to-remote-sites\"><a href=\"#Deploy-to-remote-sites\" class=\"headerlink\" title=\"Deploy to remote sites\"></a>Deploy to remote sites</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo deploy<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/one-command-deployment.html\">Deployment</a></p>\n"},{"title":"tmp","url":"/2024/09/22/tmp/","content":"<h1 id=\"搞不懂\"><a href=\"#搞不懂\" class=\"headerlink\" title=\"搞不懂\"></a>搞不懂</h1><p>啦啦啦</p>\n"},{"title":"20240923","url":"/2024/09/23/20240923/","content":"<h1 id=\"小总结\"><a href=\"#小总结\" class=\"headerlink\" title=\"小总结\"></a>小总结</h1><p>开局首绷:答案字符串不写换行,属于是一点竞赛记忆都不剩了。</p>\n<p>不过正好,从头学起,把之前拉下的全补牢。</p>\n<p>然后学习一下牛顿迭代,挺好写,爱写。</p>\n<p>代码如下:</p>\n<figure class=\"highlight cpp\"><table><tr><td class=\"code\"><pre><code class=\"hljs cpp\"><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">f</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> x)</span><span class=\"hljs-comment\">//some function</span></span><br><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">df</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> x)</span> <span class=\"hljs-comment\">//the derivative of the function</span></span><br><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">newtonIterate</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> eps=<span class=\"hljs-number\">1e-7</span>,<span class=\"hljs-type\">int</span> maxIt)</span></span><br><span class=\"hljs-function\"></span>&#123;<br> <span class=\"hljs-type\">double</span> curr = <span class=\"hljs-number\">1.0</span>;<br> <span class=\"hljs-keyword\">for</span>(<span class=\"hljs-type\">int</span> i = <span class=\"hljs-number\">1</span>;i&lt;=maxIt;++i)<br> &#123;<br> <span class=\"hljs-type\">double</span> fx = <span class=\"hljs-built_in\">f</span>(curr);<br> <span class=\"hljs-keyword\">if</span>(<span class=\"hljs-built_in\">abs</span>(fx)&lt;eps)<br> <span class=\"hljs-keyword\">return</span> curr;<br> <span class=\"hljs-type\">double</span> dfx=<span class=\"hljs-built_in\">df</span>(curr)<br> <span class=\"hljs-keyword\">if</span>(dfx==<span class=\"hljs-number\">0</span>)<br> <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">-1</span>;<br> curr-=fx/dfx;<br> &#125;<br> <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">-1</span>;<br>&#125;<br></code></pre></td></tr></table></figure>\n\n<ul>\n<li>基本思想:</li>\n<li>不断做切线,其与x轴相交的点x1一定比原来的点x0离零点更近,故可以不断逼近,得到所需精度的答案。</li>\n</ul>\n","tags":["日志"]},{"title":"20240926","url":"/2024/09/26/20240926/","content":"<h2 id=\"总结\"><a href=\"#总结\" class=\"headerlink\" title=\"总结\"></a>总结</h2><p>今天到19:47只写了三道题,小问题属于是一点敏感度都没有。</p>\n<p>先是一道贪心因为神奇的原因没做出来。</p>\n<p>然后是优先队列可能多次取都没注意到。</p>\n<p>服了。</p>\n<p>但是上午还是把多项式理论往后推进了一些,该整整数学分析了。</p>\n","tags":["总结"]},{"title":"note-weblab-w0","url":"/2024/09/30/note-weblab-w0/","content":"<p>‘flex’ 中,默认行排布 </p>\n<p>使用 ‘flex-grow’ 控制单元大小</p>\n","tags":["前端"]}]
[{"title":"20240922","url":"/2024/09/22/20240922/","content":"<h1 id=\"回归辣\"><a href=\"#回归辣\" class=\"headerlink\" title=\"回归辣\"></a>回归辣</h1><h2 id=\"昨日总结\"><a href=\"#昨日总结\" class=\"headerlink\" title=\"昨日总结\"></a>昨日总结</h2><p>给昨天先做一下总结</p>\n<ol>\n<li>骑车到达尖岭沙滩,闻到了海的味道,舒服。</li>\n<li>重建了博客,今后要多写多总结</li>\n<li>复建CF,但是发现自己好菜啊。 另: 不开<code>long long</code> 见祖宗</li>\n<li>早上看了看丘维声的高等代数。这才是好的大学老师的模样啊!</li>\n</ol>\n<p>大概就是这些了,今日事件晚上再更新。</p>\n<p>下面是一些图片:</p>\n<p><img src=\"/2024/09/22/20240922/cows.jpg\" alt=\"牛\"><br><img src=\"/2024/09/22/20240922/sea.jpg\" alt=\"海\"><br><img src=\"/2024/09/22/20240922/chair.jpg\" alt=\"椅\"><br><img src=\"/2024/09/22/20240922/sea.jpg\" alt=\"花\"></p>\n"},{"title":"Hello World","url":"/2024/09/21/hello-world/","content":"<p>Welcome to <a href=\"https://hexo.io/\">Hexo</a>! This is your very first post. Check <a href=\"https://hexo.io/docs/\">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href=\"https://hexo.io/docs/troubleshooting.html\">troubleshooting</a> or you can ask me on <a href=\"https://github.com/hexojs/hexo/issues\">GitHub</a>.</p>\n<h2 id=\"Quick-Start\"><a href=\"#Quick-Start\" class=\"headerlink\" title=\"Quick Start\"></a>Quick Start</h2><h3 id=\"Create-a-new-post\"><a href=\"#Create-a-new-post\" class=\"headerlink\" title=\"Create a new post\"></a>Create a new post</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo new <span class=\"hljs-string\">&quot;My New Post&quot;</span><br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/writing.html\">Writing</a></p>\n<h3 id=\"Run-server\"><a href=\"#Run-server\" class=\"headerlink\" title=\"Run server\"></a>Run server</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo server<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/server.html\">Server</a></p>\n<h3 id=\"Generate-static-files\"><a href=\"#Generate-static-files\" class=\"headerlink\" title=\"Generate static files\"></a>Generate static files</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo generate<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/generating.html\">Generating</a></p>\n<h3 id=\"Deploy-to-remote-sites\"><a href=\"#Deploy-to-remote-sites\" class=\"headerlink\" title=\"Deploy to remote sites\"></a>Deploy to remote sites</h3><figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><code class=\"hljs bash\">$ hexo deploy<br></code></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/one-command-deployment.html\">Deployment</a></p>\n"},{"title":"tmp","url":"/2024/09/22/tmp/","content":"<h1 id=\"搞不懂\"><a href=\"#搞不懂\" class=\"headerlink\" title=\"搞不懂\"></a>搞不懂</h1><p>啦啦啦</p>\n"},{"title":"20240923","url":"/2024/09/23/20240923/","content":"<h1 id=\"小总结\"><a href=\"#小总结\" class=\"headerlink\" title=\"小总结\"></a>小总结</h1><p>开局首绷:答案字符串不写换行,属于是一点竞赛记忆都不剩了。</p>\n<p>不过正好,从头学起,把之前拉下的全补牢。</p>\n<p>然后学习一下牛顿迭代,挺好写,爱写。</p>\n<p>代码如下:</p>\n<figure class=\"highlight cpp\"><table><tr><td class=\"code\"><pre><code class=\"hljs cpp\"><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">f</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> x)</span><span class=\"hljs-comment\">//some function</span></span><br><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">df</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> x)</span> <span class=\"hljs-comment\">//the derivative of the function</span></span><br><span class=\"hljs-function\"><span class=\"hljs-type\">double</span> <span class=\"hljs-title\">newtonIterate</span><span class=\"hljs-params\">(<span class=\"hljs-type\">double</span> eps=<span class=\"hljs-number\">1e-7</span>,<span class=\"hljs-type\">int</span> maxIt)</span></span><br><span class=\"hljs-function\"></span>&#123;<br> <span class=\"hljs-type\">double</span> curr = <span class=\"hljs-number\">1.0</span>;<br> <span class=\"hljs-keyword\">for</span>(<span class=\"hljs-type\">int</span> i = <span class=\"hljs-number\">1</span>;i&lt;=maxIt;++i)<br> &#123;<br> <span class=\"hljs-type\">double</span> fx = <span class=\"hljs-built_in\">f</span>(curr);<br> <span class=\"hljs-keyword\">if</span>(<span class=\"hljs-built_in\">abs</span>(fx)&lt;eps)<br> <span class=\"hljs-keyword\">return</span> curr;<br> <span class=\"hljs-type\">double</span> dfx=<span class=\"hljs-built_in\">df</span>(curr)<br> <span class=\"hljs-keyword\">if</span>(dfx==<span class=\"hljs-number\">0</span>)<br> <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">-1</span>;<br> curr-=fx/dfx;<br> &#125;<br> <span class=\"hljs-keyword\">return</span> <span class=\"hljs-number\">-1</span>;<br>&#125;<br></code></pre></td></tr></table></figure>\n\n<ul>\n<li>基本思想:</li>\n<li>不断做切线,其与x轴相交的点x1一定比原来的点x0离零点更近,故可以不断逼近,得到所需精度的答案。</li>\n</ul>\n","tags":["日志"]},{"title":"20240926","url":"/2024/09/26/20240926/","content":"<h2 id=\"总结\"><a href=\"#总结\" class=\"headerlink\" title=\"总结\"></a>总结</h2><p>今天到19:47只写了三道题,小问题属于是一点敏感度都没有。</p>\n<p>先是一道贪心因为神奇的原因没做出来。</p>\n<p>然后是优先队列可能多次取都没注意到。</p>\n<p>服了。</p>\n<p>但是上午还是把多项式理论往后推进了一些,该整整数学分析了。</p>\n","tags":["总结"]},{"title":"note-weblab-w0","url":"/2024/09/30/note-weblab-w0/","content":"<h2 id=\"总结\"><a href=\"#总结\" class=\"headerlink\" title=\"总结\"></a>总结</h2><ol>\n<li><p><code>flex</code> 中,默认使用行排布</p>\n</li>\n<li><p><code>flex-grow</code> 控制单元大小</p>\n</li>\n<li><p>清除计时器需要给 <code>setInterval</code>一个名字(<code>let sth = setInterval(func,time)</code>)</p>\n</li>\n</ol>\n","tags":["前端"]}]

0 comments on commit 092ea26

Please sign in to comment.