-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
398 lines (263 loc) · 16.5 KB
/
index.html
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Biu~</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Hank blog">
<meta property="og:type" content="website">
<meta property="og:title" content="Biu~">
<meta property="og:url" content="http://github.com/HankLiang/index.html">
<meta property="og:site_name" content="Biu~">
<meta property="og:description" content="Hank blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Biu~">
<meta name="twitter:description" content="Hank blog">
<link rel="icon" href="css/images/favicon.jpg">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css" type="text/css">
</head>
<body>
<div id="container">
<header id="header">
<div id="header-main" class="header-inner">
<div class="outer">
<a href="/" id="logo"><i class="logo" style="background-image: url(/css/images/logo.jpg)"></i><span class="site-title">Biu~</span></a>
<nav id="main-nav">
<a class="main-nav-link" href="/.">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
<a class="main-nav-link" href="/categories">Categories</a>
<a class="main-nav-link" href="/tags">Tags</a>
<a class="main-nav-link" href="/about">About</a>
</nav>
<nav id="sub-nav">
<div class="profile" id="profile-nav">
<a id="profile-anchor" href="javascript:;"><img class="avatar" src="/css/images/avatar.jpg"><i class="fa fa-caret-down"></i></a>
</div>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="搜索"><button type="submit" class="search-form-submit"> </button><input type="hidden" name="sitesearch" value="http://github.com/HankLiang"></form>
</div>
</div>
</div>
<div id="main-nav-mobile" class="header-sub header-inner">
<table class="menu outer">
<tr>
<td><a class="main-nav-link" href="/.">Home</a></td>
<td><a class="main-nav-link" href="/archives">Archives</a></td>
<td><a class="main-nav-link" href="/categories">Categories</a></td>
<td><a class="main-nav-link" href="/tags">Tags</a></td>
<td><a class="main-nav-link" href="/about">About</a></td>
<td>
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="搜索"><input type="hidden" name="sitesearch" value="http://github.com/HankLiang"></form>
</td>
</tr>
</table>
</div>
</header>
<div class="outer">
<aside id="profile">
<div class="inner profile-inner">
<div class="base-info profile-block">
<img id="avatar" src="/css/images/avatar.jpg">
<h2 id="name">Hank</h2>
<h3 id="title">Web Frontend Developer</h3>
<span id="location"><i class="fa fa-map-marker"></i>ShangHai, China</span>
<a id="follow" href="https://github.com/HankLiang">关注我</a>
</div>
<div class="article-info profile-block">
<div class="article-info-block">
2
<span>文章</span>
</div>
<div class="article-info-block">
2
<span>标签</span>
</div>
</div>
<div class="contact-info profile-block">
<table class="contact-list">
<tr>
<td><a href="http://github.com/HankLiang" target="_blank" title="github"><i class="fa fa-github"></i></a></td>
<td><a href="http://weibo.com/u/2321410461" target="_blank" title="weibo"><i class="fa fa-weibo"></i></a></td>
<td><a href="/#" target="_blank" title="rss"><i class="fa fa-rss"></i></a></td>
</tr>
</table>
</div>
</div>
</aside>
<section id="main">
<article id="post-linux-console-color" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/02/04/linux-console-color/">Linux console color</a>
</h1>
<div class="article-meta">
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/2016/02/04/linux-console-color/">
<time datetime="2016-02-04T02:46:08.000Z" itemprop="datePublished">2016-02-04</time>
</a>
</div>
</div>
</header>
<div class="article-entry" itemprop="articleBody">
<h3 id="Color_codes"><a href="#Color_codes" class="headerlink" title="Color codes"></a>Color codes</h3><p>This is a list of codes used in Javascript(or others) to change the text color:</p>
<ul>
<li>black - 30</li>
<li>red - 31</li>
<li>green - 32</li>
<li>brown - 33</li>
<li>blue - 34</li>
<li>magenta - 35</li>
<li>cyan - 36</li>
<li>lightgray - 37</li>
</ul>
<h3 id="Usage_of__26_2339_3B_5C033_5B_26_2339_3B"><a href="#Usage_of__26_2339_3B_5C033_5B_26_2339_3B" class="headerlink" title="Usage of '\033['"></a>Usage of <code>'\033['</code></h3><p>This is to handle the console cursor.<br>*’m’ character at the end of each of the following sentences is used as a stop character, where the system should stop and parse the \033[ sintax.</p>
<ul>
<li>\033[0m - is the default color for the console</li>
<li>\033[0;#m - is the color of the text, where # is one of the codes mentioned above</li>
<li>\033[1m - makes text bold</li>
<li>\033[1;#m - makes colored text bold**</li>
<li>\033[2;#m - colors text according to # but a bit darker</li>
<li>\033[4;#m - colors text in # and underlines</li>
<li>\033[7;#m - colors the background according to #</li>
<li>\033[9;#m - colors text and strikes it</li>
<li>\033[A - moves cursor one line above (carfull: it does not erase the previously written line)</li>
<li>\033[B - moves cursor one line under</li>
<li>\033[C - moves cursor one spacing to the right</li>
<li>\033[D - moves cursor one spacing to the left</li>
<li>\033[E - don’t know yet</li>
<li>\033[F - don’t know yet</li>
<li>\033[2K - erases everything written on line before this.</li>
</ul>
<h3 id="Simple_Demo"><a href="#Simple_Demo" class="headerlink" title="Simple Demo"></a>Simple Demo</h3><p>Written in node, make sure you have installed the node</p>
<figure class="highlight javascript"><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></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> util = <span class="built_in">require</span>(<span class="string">'util'</span>);</span><br><span class="line"><span class="keyword">var</span> info = <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.info(<span class="string">'\033[33;1m'</span> + util.format.apply(<span class="literal">null</span>, <span class="built_in">arguments</span>) + <span class="string">'\033[0m'</span>);</span><br><span class="line">}</span><br><span class="line"><span class="keyword">var</span> error = <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.error(<span class="string">"\033[1;31;4m"</span> + util.format.apply(<span class="literal">null</span>, <span class="built_in">arguments</span>) + <span class="string">"\033[0m"</span>);</span><br><span class="line">};</span><br><span class="line">info(<span class="string">'balabala'</span>);</span><br><span class="line">error(<span class="string">'error'</span>);</span><br></pre></td></tr></table></figure>
</div>
<footer class="article-footer">
<a data-url="http://github.com/HankLiang/2016/02/04/linux-console-color/" data-id="cikae9nh40008sm9wu3yr0bok" class="article-share-link">分享到</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/linux/">linux</a></li></ul>
</footer>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<div class="article-gallery">
<div class="article-gallery-photos">
<a class="article-gallery-img fancybox" href="http://bruce.u.qiniudn.com/2013/11/27/reading/photos-1.jpg" rel="gallery_cikae9nga0000sm9we27t1ti5">
<img src="http://bruce.u.qiniudn.com/2013/11/27/reading/photos-1.jpg" itemprop="image">
</a>
</div>
</div>
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/01/12/hello-world/">Hello World</a>
</h1>
<div class="article-meta">
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/2016/01/12/hello-world/">
<time datetime="2016-01-12T04:04:46.000Z" itemprop="datePublished">2016-01-12</time>
</a>
</div>
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/安装配置篇/">安装配置篇</a>
</div>
</div>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="http://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="http://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="http://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<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="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<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="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/server.html" target="_blank" rel="external">Server</a></p>
<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="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<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="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="http://github.com/HankLiang/2016/01/12/hello-world/" data-id="cikae9nga0000sm9we27t1ti5" class="article-share-link">分享到</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Hexo/">Hexo</a></li></ul>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">最新文章</h3>
<div class="widget">
<ul id="recent-post" class="">
<li>
<div class="item-thumbnail">
<a href="/2016/02/04/linux-console-color/" class="thumbnail">
<span class="thumbnail-image thumbnail-none"></span>
</a>
</div>
<div class="item-inner">
<p class="item-category"></p>
<p class="item-title"><a href="/2016/02/04/linux-console-color/" class="title">Linux console color</a></p>
<p class="item-date"><time datetime="2016-02-04T02:46:08.000Z" itemprop="datePublished">2016-02-04</time></p>
</div>
</li>
<li>
<div class="item-thumbnail">
<a href="/2016/01/12/hello-world/" class="thumbnail">
<span style="background-image:url(http://bruce.u.qiniudn.com/2013/11/27/reading/photos-1.jpg)" alt="Hello World" class="thumbnail-image"></span>
</a>
</div>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/安装配置篇/">安装配置篇</a></p>
<p class="item-title"><a href="/2016/01/12/hello-world/" class="title">Hello World</a></p>
<p class="item-date"><time datetime="2016-01-12T04:04:46.000Z" itemprop="datePublished">2016-01-12</time></p>
</div>
</li>
</ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">分类</h3>
<div class="widget">
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/安装配置篇/">安装配置篇</a><span class="category-list-count">1</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签</h3>
<div class="widget">
<ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Hexo/">Hexo</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a><span class="tag-list-count">1</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签云</h3>
<div class="widget tagcloud">
<a href="/tags/Hexo/" style="font-size: 10px;">Hexo</a> <a href="/tags/linux/" style="font-size: 10px;">linux</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">二月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">一月 2016</a><span class="archive-list-count">1</span></li></ul>
</div>
</div>
<div id="toTop" class="fa fa-chevron-up"></div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2000 - 2016 Hank<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>. Theme by <a href="http://github.com/ppoffice">PPOffice</a>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js" type="text/javascript"></script>
<script src="/js/script.js" type="text/javascript"></script>
</div>
</body>
</html>