-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
364 lines (226 loc) · 11.2 KB
/
index.html
File metadata and controls
364 lines (226 loc) · 11.2 KB
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
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>宾克斯的美酒</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
<meta name="author" content="xcl">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/pacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/logo.svg" alt="宾克斯的美酒" title="宾克斯的美酒"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="宾克斯的美酒">宾克斯的美酒</a></h1>
<h2 class="blog-motto"></h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="text" id="search" name="q" autocomplete="off" maxlength="20" placeholder="搜索" />
<input type="hidden" name="q" value="site:xchl.github.com">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/Redis之列表集合/" title="Redis之列表集合" itemprop="url">
<h1 itemprop="name">Redis之列表集合</h1>
<p itemprop="description" >集合相对于列表(list)是无序的,元素具有唯一性SADD key member [member…] 添加一个或多个元素,如果键不存在则会自动创建,返回值是成功加入的元素个数
SREM key member [member…] 删除一个或多个
MEMBERS key </p>
<time datetime="2015-05-06T08:17:08.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/mac-iterm2/" title="" itemprop="url">
<h1 itemprop="name"></h1>
<p itemprop="description" >title: mac-iterm2date: 2015-04-03 11:21:10categories: tools
tags:[iterm2]
记录一下iterm2常用快捷键
cmd + 数字在各 tab 标签直接来回切换选择即复制 + 鼠标中键粘贴,这个很实用cmd + f</p>
<time datetime="2015-05-06T08:13:52.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/Redis之列表类型/" title="Redis之列表类型(list)" itemprop="url">
<h1 itemprop="name">Redis之列表类型(list)</h1>
<p itemprop="description" >列表类型(list)可以存储一个有序的字符串列表,常用的操作是向列表两端添加元素,或者获得列表的某一个片段。列表类型内部是使用双向链表(double linked list)实现的,所以向列表两端添加元素的时间复杂度为0,获取越接近两端的元素速度就越快。例如一个有几千万个元素的列</p>
<time datetime="2015-05-06T08:04:54.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/Redis之散列类型/" title="Redis之散列类型(hash)" itemprop="url">
<h1 itemprop="name">Redis之散列类型(hash)</h1>
<p itemprop="description" >散列类型(hash)的键值是一种字典结构,字段值只能是字符串,不支持其他数据类型。一个散列类型至多包含2的23次幂-1个字段
命令HSET key field valHMSET key field val [field val……]HGET key fieldHM</p>
<time datetime="2015-05-06T08:00:06.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/Redis之字符串类型/" title="Redis之字符串类型(string)" itemprop="url">
<h1 itemprop="name">Redis之字符串类型(string)</h1>
<p itemprop="description" >KEYS pattern pattern 支持glob风格通配符。
KEYS 命令需要遍历Redis所有的键,数据较多时谨慎使用
EXISTS key //判断一个键是否存在
DEL key //删除一个或多个键 del foo bar // 2
TYPE key /</p>
<time datetime="2015-05-06T07:54:07.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/06/Redis安装/" title="Redis安装" itemprop="url">
<h1 itemprop="name">Redis安装</h1>
<p itemprop="description" >Redis简介
1.存储方式Redis 数据库中的所有数据都存储在内存中,一秒内可以读写超过十万个键值。也可以将内存中的数据异步写入到硬盘中。2.Redis是单线程模型,Memcached支持多线程,在多核服务器上后者性能可能更高。3.Redis 可以限定最大内存空间,在数据达到</p>
<time datetime="2015-05-06T07:41:51.000Z" itemprop="datePublished">5月 6 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/05/03/js取整/" title="js取整" itemprop="url">
<h1 itemprop="name">js取整</h1>
<p itemprop="description" >Math.random(x)
返回一个0-1之间的随机浮点数
Math.ceil(x)
12345Math.ceil(0.6) //1Math.ceil(0.4) //1Math.ceil(5) //5Math.ceil(-5.1) //-5Math.cei</p>
<time datetime="2015-05-02T23:02:18.000Z" itemprop="datePublished">5月 3 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/04/28/nodejs-1/" title="nodejs-1" itemprop="url">
<h1 itemprop="name">nodejs-1</h1>
<p itemprop="description" >Nodejs深入浅出 学习记录
Nodejs 特点
异步I/O
12345var fs = require('ss');fs.readFile('a.json',function(err,file){ //io执行完后的回调函数 console.log('文件读取完成');</p>
<time datetime="2015-04-28T11:30:01.000Z" itemprop="datePublished">4月 28 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/04/15/bingkesidejiu/" title="宾克斯的美酒" itemprop="url">
<h1 itemprop="name">宾克斯的美酒</h1>
<p itemprop="description" >宾克期的美酒哟嚯嚯嚯 哟嚯嚯嚯 哟嚯嚯嚯 哟嚯嚯嚯哟嚯嚯嚯 哟嚯嚯嚯 哟嚯嚯嚯 哟嚯嚯嚯给你送去宾克斯 酝酿已久的美酒散发出 大海男儿常有的香味在海潮的另一边 夕阳辉映照耀着鸟之歌 在蔚蓝天空划出弧线再见了海湾港口 航海去向大海上唱起歌 奔向那未知旅途路上金波银波翻腾着 </p>
<time datetime="2015-04-15T01:39:06.000Z" itemprop="datePublished">4月 15 2015</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2015/03/02/angularjs-入门/" title="angularjs入门(1)" itemprop="url">
<h1 itemprop="name">angularjs入门(1)</h1>
<p itemprop="description" >项目用到angularjs简单记录下angularjs 是一个mvvm框架同类型的还有avalonjs和vuejs
开始的demo
源代码
123456789101112&lt;!doctype html&gt;&lt;html ng-app&gt;&lt;head&gt; </p>
<time datetime="2015-03-02T13:35:28.000Z" itemprop="datePublished">3月 2 2015</time>
</a>
</section>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">Next »</a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">
<div class="categorieslist">
<p class="asidetitle">分类</p>
<ul>
<li><a href="/categories/css/" title="css">css<sup>1</sup></a></li>
<li><a href="/categories/js/" title="js">js<sup>4</sup></a></li>
<li><a href="/categories/php/" title="php">php<sup>1</sup></a></li>
<li><a href="/categories/Redis/" title="redis">redis<sup>5</sup></a></li>
<li><a href="/categories/工具/" title="tools">tools<sup>0</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/angularjs/" title="angularjs">angularjs<sup>1</sup></a></li>
<li><a href="/tags/css/" title="css">css<sup>1</sup></a></li>
<li><a href="/tags/html5/" title="html5">html5<sup>1</sup></a></li>
<li><a href="/tags/javascript语言精粹/" title="javascript语言精粹">javascript语言精粹<sup>1</sup></a></li>
<li><a href="/tags/js/" title="js">js<sup>1</sup></a></li>
<li><a href="/tags/mobile/" title="mobile">mobile<sup>2</sup></a></li>
<li><a href="/tags/redis/" title="redis">redis<sup>5</sup></a></li>
<li><a href="/tags/响应式/" title="响应式">响应式<sup>1</sup></a></li>
</ul>
</div>
<div class="rsspart">
<a href="null" target="_blank" title="rss">RSS 订阅</a>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="line">
<span></span>
<div class="author"></div>
</div>
<div class="social-font clearfix">
</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/A-limon/pacman" target="_blank" title="Pacman">Pacman</a> © 2015
<a href="http://xchl.github.com" target="_blank" title="xcl">xcl</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.1.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');
$(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');
}
});
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()));
});
});
</script>
</body>
</html>