-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
52 lines (29 loc) · 7.09 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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Niffler</title>
<link href="/atom.xml" rel="self"/>
<link href="http://yoursite.com/"/>
<updated>2018-03-30T09:41:51.509Z</updated>
<id>http://yoursite.com/</id>
<author>
<name>Σ(っ °Д °;)っ</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>Hello World :)&&一些笔记</title>
<link href="http://yoursite.com/2018/03/29/hello-world/"/>
<id>http://yoursite.com/2018/03/29/hello-world/</id>
<published>2018-03-28T16:09:38.998Z</published>
<updated>2018-03-30T09:41:51.509Z</updated>
<content type="html"><![CDATA[<html><head></head><body><p>  昨天看了大黄的博客,觉得非常好看,十分羡慕啊@w@,于是抽空将小站的雏形搭了出来..其实寒假之前也尝试搭过一个Pacman主题的blog…但是..但是…被三分钟热度又极度懒惰的我荒废了orz…不过想想,能够将自己学习的点点滴滴记录下来,时时回顾,也是一件非常有意义的事<em>(:з」∠)</em>希望这次能坚持下来(立个flag),求myy和gmn督促我!!!<br>  live2d看板娘不怎么会配置…可能插件被禁止了…不过妹子超可爱!!!</p><h2 id="OJ"><a href="#OJ" class="headerlink" title="OJ"></a>OJ</h2><h3 id="又又又"><a href="#又又又" class="headerlink" title="又又又"></a>又又又</h3><figure class="highlight stylus"><table><tbody><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></pre></td><td class="code"><pre><span class="line"><span class="selector-tag">div</span><span class="selector-class">.tall</span><span class="selector-class">.wealthy</span><span class="selector-class">.handsome</span>{</span><br><span class="line"> ...</span><br><span class="line">}</span><br><span class="line"><span class="comment">//又高又富又帅的div</span></span><br></pre></td></tr></tbody></table></figure><h3 id="正则匹配两端空格"><a href="#正则匹配两端空格" class="headerlink" title="正则匹配两端空格"></a>正则匹配两端空格</h3><figure class="highlight gcode"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/<span class="comment">(^s\*)</span>|<span class="comment">(s\*$)</span>/g</span><br></pre></td></tr></tbody></table></figure><h3 id="async-await"><a href="#async-await" class="headerlink" title="async/await"></a>async/await</h3><figure class="highlight javascript"><table><tbody><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></pre></td><td class="code"><pre><span class="line"><span class="keyword">async</span> <span class="function"><span class="keyword">function</span> <span class="title">run</span> (<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.log(<span class="string">'Hello'</span>)</span><br><span class="line"> <span class="keyword">await</span> pause(<span class="number">1000</span>) <span class="comment">// 续一秒</span></span><br><span class="line"> <span class="built_in">console</span>.log(<span class="string">'World'</span>) <span class="comment">// 一秒以后继续运行</span></span><br><span class="line">}</span><br><span class="line"><span class="keyword">const</span> pause = <span class="keyword">async</span> (time) => <span class="keyword">new</span> <span class="built_in">Promise</span>(<span class="function">(<span class="params">resolve</span>) =></span> {</span><br><span class="line"> setTimeout(<span class="function"><span class="params">()</span> =></span> resolve(), time)</span><br><span class="line">})</span><br></pre></td></tr></tbody></table></figure><h2 id="Codewars"><a href="#Codewars" class="headerlink" title="Codewars"></a>Codewars</h2><h3 id="Only-4-or-6-digit-PIN-codes-valid"><a href="#Only-4-or-6-digit-PIN-codes-valid" class="headerlink" title="Only 4 or 6 digit PIN codes valid"></a>Only 4 or 6 digit PIN codes valid</h3><figure class="highlight tex"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">const validatePIN = pin => /^(<span class="tag">\<span class="name">d</span><span class="string">{4}</span></span><span class="formula">$|<span class="tag">\<span class="name">d</span><span class="string">{6}</span></span>$</span>)/.test(pin);</span><br></pre></td></tr></tbody></table></figure><p>  自己写了好几行的代码….人家一行搞定…有必要好好学习下正则(认真脸)。</p><p></p><script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({});</script></body></html>]]></content>
<summary type="html">
<html><head></head><body><p>&#x2003;&#x2003;&#x6628;&#x5929;&#x770B;&#x4E86;&#x5927;&#x9EC4;&#x7684;&#x535A;&#x5BA2;,&#x89C9;&#x5F97;&#x975
</summary>
<category term="前端" scheme="http://yoursite.com/categories/%E5%89%8D%E7%AB%AF/"/>
<category term="OJ" scheme="http://yoursite.com/tags/OJ/"/>
<category term="Codewars" scheme="http://yoursite.com/tags/Codewars/"/>
<category term="正则" scheme="http://yoursite.com/tags/%E6%AD%A3%E5%88%99/"/>
<category term="异步" scheme="http://yoursite.com/tags/%E5%BC%82%E6%AD%A5/"/>
<category term="选择器" scheme="http://yoursite.com/tags/%E9%80%89%E6%8B%A9%E5%99%A8/"/>
</entry>
</feed>