-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
603 lines (360 loc) · 15.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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
<!DOCTYPE HTML>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<title>Fort ColdHumour</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="Jasper Wu">
<meta name="description" content="ColdHumour的技术博客">
<meta property="og:type" content="website">
<meta property="og:title" content="Fort ColdHumour">
<meta property="og:url" content="http://coldhumour.github.io/index.html">
<meta property="og:site_name" content="Fort ColdHumour">
<meta property="og:description" content="ColdHumour的技术博客">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Fort ColdHumour">
<meta name="twitter:description" content="ColdHumour的技术博客">
<link rel="alternative" href="/atom.xml" title="Fort ColdHumour" type="application/atom+xml">
<link rel="icon" href="/img/pi.ico">
<link rel="apple-touch-icon" href="/img/pi.ico">
<link rel="apple-touch-icon-precomposed" href="/img/pi.ico">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/hitchhiker-guide.jpg" alt="Fort ColdHumour" title="Fort ColdHumour"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="Fort ColdHumour">Fort ColdHumour</a></h1>
<h2 class="blog-motto">我们一路奋战,不是为了改变世界,而是为了不让这个世界改变我们</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li><a href="/about">About</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="Search" />
<input type="hidden" name="q" value="site:coldhumour.github.io">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/06/25/Python实现Excel-Word联合自动化/" title="Python实现Excel-Word联合自动化" itemprop="url">Python实现Excel-Word联合自动化</a>
</h1>
<p class="article-author">By
<a href="/about" title="Jasper Wu" target="_blank" itemprop="author">Jasper Wu</a>
<p class="article-time">
<time datetime="2017-06-25T07:00:38.000Z" itemprop="datePublished"> Published 2017-06-25</time>
</p>
</header>
<div class="article-content">
<p>这个博客搭了挺久了,本意是当技术博客写的,想记录一些日常开发中积累的技巧。Project Euler的Review是一个不错的切入点,不过我还是高估了自己,430+之后有好几题都比较卡,导致完全没法按计划推进。当中也有过调整策略的想法,该跳的要果断跳。但是光跳433就下了挺大的决心,说服自己改变准则对我这样的人来说还是有点难的。</p>
<p>扯得有点远,回到技术博客的话题上来。这篇的主题其实早就有了腹稿,一直拖着没动。就像减肥或者跑步之类的念头,人总是时不时地会产生跟拖延症抗争的念头。总算这回努力小人打败了懒惰小人,来更一篇。</p>
<p>先说下背景吧,前段时间工作中会面临要定期不定期地经常出一些报告,后台的业务逻辑部分早就写好了,如果对输出要求不那么高的话也能凑合着看。不过领导们嘛总归是并不懂技术,而且报告要给客户们发,更是不能指望,所以开会拍板定下来还是以Word(或者存成pdf)的形式来发。自然而然地,图表风格要用公司的BI,格式也都要统一。作为能写几行代码的人,自然不愿意每次都手动做,但是查了查又没什么通用的方案可以借鉴,到头来还是得自己开动脑筋造个轮子。</p>
<p class="article-more-link">
<a href="/2017/06/25/Python实现Excel-Word联合自动化/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Knowledges/">Knowledges</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/20/The-Eudaemonic-Pie/" title="The Eudaemonic Pie" itemprop="url">The Eudaemonic Pie</a>
</h1>
<p class="article-author">By
<a href="/about" title="Jasper Wu" target="_blank" itemprop="author">Jasper Wu</a>
<p class="article-time">
<time datetime="2017-03-20T14:28:20.000Z" itemprop="datePublished"> Published 2017-03-20</time>
</p>
</header>
<div class="article-content">
<p>这是一本书,从读的时候开始,直到读完了之后回想细品,我一直都在尝试着给其定一个具体的分类。说它是小说吧,里面的人和事都是真实的;说它是传记吧,对话和描写又显然沾染了很多文学演绎的气息。思虑再三,好像也就是“传奇”可以略略贴近一些。可能把真实发生的事情称作legend略远,然而称作lengedary却是丝毫不为过。这本书少有地于我触动极大,无论是从“励志”的角度,还是从人生经验的角度,用“受益匪浅”来形容都有些不甚恰当了,留下来的更多的是让人仔细品味反复琢磨的东西。</p>
<p class="article-more-link">
<a href="/2017/03/20/The-Eudaemonic-Pie/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Reading-Life/">Reading Life</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/14/Prophet Guide/" title="Hexo Guide" itemprop="url">Hexo Guide</a>
</h1>
<p class="article-author">By
<a href="/about" title="Jasper Wu" target="_blank" itemprop="author">Jasper Wu</a>
<p class="article-time">
<time datetime="2017-03-14T13:52:00.000Z" itemprop="datePublished"> Published 2017-03-14</time>
</p>
</header>
<div class="article-content">
<p>这两天看到Facebook的Prophet很火,于是也想上手玩玩,试了下才发现这东西并不好装。幸好有之前配置Cython的经验,省去了很多烦恼。</p>
<ol>
<li><p>参见Cython安装教程,配置好Cython和Visual C++ Build Tools 2015</p>
</li>
<li><p>pip install pystan</p>
</li>
<li><p>从<a href="https://github.com/facebookincubator/prophet" target="_blank" rel="external">github/facebookincubator</a>下载prophet-master,解压,进入~/prophet-master/python,python setup.py install</p>
</li>
<li><p>使用方法见<a href="https://facebookincubator.github.io/prophet/" target="_blank" rel="external">官方文档</a></p>
</li>
</ol>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Knowledges/">Knowledges</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/02/18/Literature Links/" title="Literature Links" itemprop="url">Literature Links</a>
</h1>
<p class="article-author">By
<a href="/about" title="Jasper Wu" target="_blank" itemprop="author">Jasper Wu</a>
<p class="article-time">
<time datetime="2017-02-18T07:38:41.000Z" itemprop="datePublished"> Published 2017-02-18</time>
</p>
</header>
<div class="article-content">
<p>一些未曾来及看的或反复看的文章</p>
<p class="article-more-link">
<a href="/2017/02/18/Literature Links/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Knowledges/">Knowledges</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/01/01/Hexo Guide/" title="Hexo Guide" itemprop="url">Hexo Guide</a>
</h1>
<p class="article-author">By
<a href="/about" title="Jasper Wu" target="_blank" itemprop="author">Jasper Wu</a>
<p class="article-time">
<time datetime="2017-01-01T04:00:00.000Z" itemprop="datePublished"> Published 2017-01-01</time>
</p>
</header>
<div class="article-content">
<p>其实也没什么特别的Guide,搜索hexo分分钟一大把网页,这里只是为了记一下一些常用的命令和链接,以免临时想写博客结果忘了怎么部署的尴尬。</p>
<pre><code>hexo new "post title"
hexo server # 本地调试
hexo clean
hexo g
hexo d
</code></pre>
<p class="article-more-link">
<a href="/2017/01/01/Hexo Guide/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Knowledges/">Knowledges</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
</div>
<div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">
<div class="github-card">
<p class="asidetitle">Github Card</p>
<div class="github-card" data-github="ColdHumour" data-width="220" data-height="119" data-theme="medium">
<script type="text/javascript" src="//cdn.jsdelivr.net/github-cards/latest/widget.js" ></script>
</div>
</div>
<div class="categorieslist">
<p class="asidetitle">Categories</p>
<ul>
<li><a href="/categories/Knowledges/" title="Knowledges">Knowledges<sup>4</sup></a></li>
<li><a href="/categories/Reading-Life/" title="Reading Life">Reading Life<sup>1</sup></a></li>
</ul>
</div>
<div class="rsspart">
<a href="/atom.xml" target="_blank" title="rss">RSS</a>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="line">
<span></span>
<div class="author"></div>
</div>
<section class="info">
<p> Sic Parvis Magna. <br/>
</p>
</section>
<div class="social-font" class="clearfix">
<a href="https://github.com/ColdHumour" target="_blank" class="icon-github" title="github"></a>
<a href="https://www.douban.com/people/ColdHumour" target="_blank" class="icon-douban" title="豆瓣"></a>
<a href="mailto:jasper.wuyd@gmail.com" target="_blank" class="icon-email" title="Email Me"></a>
</div>
<p class="copyright">
Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2017
<a href="/about" target="_blank" title="Jasper Wu">Jasper Wu</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script src="/js/jquery.qrcode-0.12.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
});
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.article-content').each(function(i){
$(this).find('img').each(function(){
if ($(this).parent().hasClass('fancybox')) return;
var alt = this.alt;
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
});
$(this).find('.fancybox').each(function(){
$(this).attr('rel', 'article' + i);
});
});
if($.fancybox){
$('.fancybox').fancybox();
}
});
</script>
<!-- Analytics Begin -->
<!-- Analytics End -->
<!-- Totop Begin -->
<div id="totop">
<a title="Back to Top"><img src="/img/scrollup.png"/></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!-- MathJax End -->
<!-- Tiny_search Begin -->
<!-- Tiny_search End -->
</body>
</html>