-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
457 lines (343 loc) · 15.1 KB
/
index.html
File metadata and controls
457 lines (343 loc) · 15.1 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
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
<!DOCTYPE html>
<html lang="en">
<!-- layout.ejs-->
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="这货很懒,什么都没有填">
<meta name="author" content="cooooolish">
<meta name="keyword" content="cooooolish">
<link rel="canonical" href="https://cooooolish.github.io/">
<link rel="shortcut icon" href="https://cdn4.iconfinder.com/data/icons/ionicons/512/icon-person-128.png">
<link rel="alternate" type="application/atom+xml" title="" href="/atom.xml">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<title>
cooooolish的博客
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="/css/main.css">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/highlight.css">
<script id="dsq-count-scr" src="//qkxc.disqus.com/count.js" async></script>
<meta name="google-site-verification" content="g5BseDGQ1hWwdbBPJLKNfbC6xNOaM3X4LnKEMAvx_tI">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
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="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-38355881-1', 'auto');
ga('send', 'pageview');
</script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- user customization -->
<link rel="stylesheet" href="/css/arsnippet.css">
<script src="/js/arsnippet.css.js"></script>
</head>
<style>
header.intro-header {
background-image: url('')
}
</style>
<!-- hack iOS CSS :active style -->
<body ontouchstart="" class="animated fadeIn">
<header>
<nav class="navbar navbar-default header-navbar" id="nav-top" data-ispost="false" data-istags="false" data-ishome="true">
<div class="container-fluid">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" aria-expanded="false" data-target="#website_navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand animated pulse">
<a class="brand-logo" href="/">
</a>
</span>
</div>
<div class="collapse navbar-collapse" id="website_navbar">
<ul class="nav navbar-nav navbar-right">
<li>
<div id="site_search" style="padding: 0px 15px;width: 200px;">
<input type="text" id="local-search-input" name="q" results="0" placeholder="search blog..." class="form-control" style="margin: 10px 0px;height: 30px;">
</div>
<div id="local-search-result" style="width: 170px;position: absolute;margin: 0px 15px;margin-top: -8px;"></div>
</li>
<li>
<a href="/">home</a>
</li>
<li>
<a href="/archives/">archives</a>
</li>
<li>
<a href="/tags/">tags</a>
</li>
</ul>
</div>
<style>
.suggest-item{
padding: 6px 10px;
cursor: pointer;
word-wrap: break-word;
word-break: break-all;
display: block;
color: #222;
position: relative;
font-size: 12px;
}
.suggest-item:hover{
background-color:#e5e9ee;
}
.search-result-title:hover{
!important;background-color:#e5e9ee!important;color:black!important;;
}
</style>
<script>
var searchFunc = function(path, search_id, content_id) {
'use strict';
$.ajax({
url: path,
dataType: "xml",
success: function( xmlResponse ) {
// get the contents from search data
var datas = $( "entry", xmlResponse ).map(function() {
return {
title: $( "title", this ).text(),
content: $("content",this).text(),
url: $( "url" , this).text()
};
}).get();
var $input = document.getElementById(search_id);
var $resultContent = document.getElementById(content_id);
['input','click'].forEach(function(item,index){
$input.addEventListener(item, function(){
var str='<ul class=\"search-result-list\" style=\"padding: 0;border: 1px solid #e5e9ef;border-radius: 4px;background-color: white;box-shadow: 0 2px 4px rgba(0,0,0,.16);\">';
var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
$resultContent.innerHTML = "";
if (this.value.trim().length <= 0) {
return;
}
// perform local searching
var i = 0;
datas.forEach(function(data) {
try{
if(i>=10){
throw new Error("x");
}
}catch(e){
if(e.message!="x") throw e;
}
var isMatch = true;
var content_index = [];
var data_title = data.title.trim().toLowerCase();
var data_content = data.content.trim().replace(/<[^>]+>/g,"").toLowerCase();
var data_url = data.url;
var index_title = -1;
var index_content = -1;
var first_occur = -1;
// only match artiles with not empty titles and contents
if(data_title != '' && data_content != '') {
keywords.forEach(function(keyword, i) {
index_title = data_title.indexOf(keyword);
index_content = data_content.indexOf(keyword);
index_content = -1;
if( index_title < 0 && index_content < 0 ){
isMatch = false;
} else {
if (index_content < 0) {
index_content = 0;
}
if (i == 0) {
first_occur = index_content;
}
}
});
}
// show search results
if (isMatch) {
++i;
str += "<li class='suggest-item' style='list-style: none;'><a href='"+ data_url +"' class='search-result-title'>"+ data_title +"</a>";
var content = data.content.trim().replace(/<[^>]+>/g,"");
if (first_occur >= 0) {
// cut out 100 characters
var start = first_occur - 20;
var end = first_occur + 80;
if(start < 0){
start = 0;
}
if(start == 0){
end = 100;
}
if(end > content.length){
end = content.length;
}
var match_content = content.substr(start, end);
// highlight all keywords
keywords.forEach(function(keyword){
var regS = new RegExp(keyword, "gi");
match_content = match_content.replace(regS, "<em class=\"search-keyword\">"+keyword+"</em>");
});
//str += "<p class=\"search-result\">" + match_content +"...</p>"
}
str += "</li>";
}
});
if(i==0){
$resultContent.innerHTML = "";
return;
}
str += "</ul>";
$resultContent.innerHTML = str;
});
});
}
});
}
var path = "/search.xml";
searchFunc(path, 'local-search-input', 'local-search-result');
</script>
</div></nav>
</header>
<!-- Main Content -->
<!-- index.ejs -->
<article class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 visible-xs-block visible-sm-block">
</article>
<div class="container homepage">
<div class="row">
<div class="col-lg-8 col-lg-offset-1 col-md-8 col-md-offset-1 col-sm-12 col-xs-12 post-container">
<div class="post-preview " style="background-image: url('/git常用命令/copyright-free-images.jpg')">
<a href="/git常用命令/">
<h2 class="post-title">
git常用命令
</h2>
<div class="post-meta">
<span>2018-12-25</span>
</div>
<div class="post-content-preview">
<p>
1.本地初始化git目录1git init
2.新建文件并且写入内容12touch a.txtecho "new data" >> a.txt
3.添加到暂存区12git add .git commit -m "提交更新"
4.添加远程仓库1git remote add origin..
</p>
</div>
</a>
</div>
<hr>
<ul class="pager">
</ul>
</div>
<!-- sidebar-profile.ejs -->
<div class="
col-lg-3 col-lg-offset-0
col-md-3 col-md-offset-0
col-sm-12
col-xs-12
sidebar-container
">
<section class="visible-md visible-lg" style="padding: 0 18px">
<div class="short-about">
<img src="https://avatars3.githubusercontent.com/u/7300446?s=460&v=4" class="avatar">
<h3>cooooolish</h3>
<p>我永远喜欢不来方夕莉</p>
<hr>
<ul class="list-inline" style="margin-top:5px;">
<li>
<a target="_blank" href="https://twitter.com/cooooolish_">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a target="_blank" href="https://github.com/cooooolish">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
<a href="https://www.patreon.com/arsnippet" target="_blank"><img src="/img/patreon.png" alt="support my work at patron"></a><br><br><a href="https://arsnippet.freeflarum.com/" target="_blank"><img src="/img/forum.jpg" alt="support my work at patron"></a><br><br><a href="https://discord.gg/CB6CPzq" target="_blank"><img src="/img/discord.png" alt="Join the Discord"></a>
</div>
</section>
</div>
</div>
</div>
<!-- Footer -->
<!-- footer.ejs -->
<footer>
<div class="text-center">
<ul class="list-inline">
<li>
<a target="_blank" href="https://twitter.com/cooooolish_">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a target="_blank" href="https://github.com/cooooolish">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
<div class="text-muted copyright">
©
2015 - 2018
<i class="fa fa-heart"></i>
cooooolish
<br>
</div>
</div>
</footer>
<!-- Custom Theme JavaScript -->
<script src="/js/main.js"></script>
<!-- async load function -->
<script>
function async(u, c) {
var d = document, t = 'script',
o = d.createElement(t),
s = d.getElementsByTagName(t)[0];
o.src = u;
if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
s.parentNode.insertBefore(o, s);
}
</script>
<!--fastClick.js -->
<script>
async("//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){
var $nav = document.querySelector("nav");
if($nav) FastClick.attach($nav);
})
</script>
</body>
</html>