Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec95c56

Browse files
committed
new file: .gitignore
new file: 404.html new file: README.md new file: _config.yml new file: _layouts/default.html new file: _layouts/page.html new file: _layouts/post.html new file: _posts/blog/2011-12-18-why-blog.md new file: _posts/blog/2012-02-22-github-pages.md new file: _posts/blog/2012-03-26-buy-guitar.md new file: _posts/blog/existentialism.md new file: _posts/blog/template.md new file: _posts/project/2012-04-18-raining-in-chrome.md new file: _posts/project/2012-09-22-overapi-cheatsheet.md new file: _posts/project/template.md new file: _posts/wiki/template.md new file: about.md new file: atom.xml new file: blog.md new file: css/default.css new file: favicon.ico new file: google0bd953d19d6551fe.html new file: images/about.png new file: images/blog.png new file: images/external_link.gif new file: images/external_link_on.gif new file: images/githubpages/bootcamp_1_ssh.jpg new file: images/githubpages/bootcamp_1_token.jpg new file: images/githubpages/bootcamp_1_win_gitbash.jpg new file: images/githubpages/disqus-site.jpg new file: images/githubpages/github-account-setting.png new file: images/githubpages/other-pages.png new file: images/githubpages/ssh-key-set.png new file: images/githubpages/user-pages.png new file: images/guitarmaterial/KOA.jpg new file: images/guitarmaterial/brazilian-rosewood.jpg new file: images/guitarmaterial/cate.jpg new file: images/guitarmaterial/joesatriani.jpg new file: images/guitarmaterial/koaguitars.jpg new file: images/guitarmaterial/leeguitar.jpg new file: images/guitarmaterial/mahogany.jpg new file: images/guitarmaterial/mixedpiece.jpg new file: images/guitarmaterial/mystring.jpg new file: images/guitarmaterial/onepiece.jpg new file: images/guitarmaterial/zengyike214.jpg new file: images/guitarmaterial/zhangzhenyue315.jpg new file: images/head-bg.png new file: images/icons.gif new file: images/index.png new file: images/overapi/icon-small.png new file: images/overapi/overapi.jpg new file: images/project.png new file: images/rainingchrome/RainingChrome.crx new file: images/rainingchrome/RainingChrome.pem new file: images/rainingchrome/rain.jpg new file: images/rainingchrome/update.xml new file: images/rss.png new file: images/wiki.png new file: index.html new file: js/jquery-1.7.1.min.js new file: js/prettify/lang-apollo.js new file: js/prettify/lang-clj.js new file: js/prettify/lang-css.js new file: js/prettify/lang-go.js new file: js/prettify/lang-hs.js new file: js/prettify/lang-lisp.js new file: js/prettify/lang-lua.js new file: js/prettify/lang-ml.js new file: js/prettify/lang-n.js new file: js/prettify/lang-proto.js new file: js/prettify/lang-scala.js new file: js/prettify/lang-sql.js new file: js/prettify/lang-tex.js new file: js/prettify/lang-vb.js new file: js/prettify/lang-vhdl.js new file: js/prettify/lang-wiki.js new file: js/prettify/lang-xq.js new file: js/prettify/lang-yaml.js new file: js/prettify/prettify.css new file: js/prettify/prettify.js new file: project.md new file: wiki.md deleted: ../blog/xxg1413.github.com/.gitignore deleted: ../blog/xxg1413.github.com/404.html deleted: ../blog/xxg1413.github.com/README.md deleted: ../blog/xxg1413.github.com/_config.yml deleted: ../blog/xxg1413.github.com/_layouts/default.html deleted: ../blog/xxg1413.github.com/_layouts/page.html deleted: ../blog/xxg1413.github.com/_layouts/post.html deleted: ../blog/xxg1413.github.com/_posts/blog/2011-12-18-why-blog.md deleted: ../blog/xxg1413.github.com/_posts/blog/2012-02-22-github-pages.md deleted: ../blog/xxg1413.github.com/_posts/blog/existentialism.md deleted: ../blog/xxg1413.github.com/_posts/blog/template.md deleted: ../blog/xxg1413.github.com/_posts/project/template.md deleted: ../blog/xxg1413.github.com/_posts/wiki/template.md deleted: ../blog/xxg1413.github.com/about.md deleted: ../blog/xxg1413.github.com/atom.xml deleted: ../blog/xxg1413.github.com/blog.md deleted: ../blog/xxg1413.github.com/css/default.css deleted: ../blog/xxg1413.github.com/favicon.ico deleted: ../blog/xxg1413.github.com/google0bd953d19d6551fe.html deleted: ../blog/xxg1413.github.com/images/about.png deleted: ../blog/xxg1413.github.com/images/blog.png deleted: ../blog/xxg1413.github.com/images/external_link.gif deleted: ../blog/xxg1413.github.com/images/external_link_on.gif deleted: ../blog/xxg1413.github.com/images/githubpages/bootcamp_1_ssh.jpg deleted: ../blog/xxg1413.github.com/images/githubpages/bootcamp_1_token.jpg deleted: ../blog/xxg1413.github.com/images/githubpages/bootcamp_1_win_gitbash.jpg deleted: ../blog/xxg1413.github.com/images/githubpages/disqus-site.jpg deleted: ../blog/xxg1413.github.com/images/githubpages/github-account-setting.png deleted: ../blog/xxg1413.github.com/images/githubpages/other-pages.png deleted: ../blog/xxg1413.github.com/images/githubpages/ssh-key-set.png deleted: ../blog/xxg1413.github.com/images/githubpages/user-pages.png deleted: ../blog/xxg1413.github.com/images/guitarmaterial/KOA.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/brazilian-rosewood.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/cate.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/joesatriani.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/koaguitars.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/leeguitar.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/mahogany.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/mixedpiece.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/mystring.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/onepiece.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/zengyike214.jpg deleted: ../blog/xxg1413.github.com/images/guitarmaterial/zhangzhenyue315.jpg deleted: ../blog/xxg1413.github.com/images/head-bg.png deleted: ../blog/xxg1413.github.com/images/icons.gif deleted: ../blog/xxg1413.github.com/images/index.png deleted: ../blog/xxg1413.github.com/images/overapi/icon-small.png deleted: ../blog/xxg1413.github.com/images/overapi/overapi.jpg deleted: ../blog/xxg1413.github.com/images/project.png deleted: ../blog/xxg1413.github.com/images/rainingchrome/RainingChrome.crx deleted: ../blog/xxg1413.github.com/images/rainingchrome/RainingChrome.pem deleted: ../blog/xxg1413.github.com/images/rainingchrome/rain.jpg deleted: ../blog/xxg1413.github.com/images/rainingchrome/update.xml deleted: ../blog/xxg1413.github.com/images/rss.png deleted: ../blog/xxg1413.github.com/images/wiki.png deleted: ../blog/xxg1413.github.com/index.html deleted: ../blog/xxg1413.github.com/js/jquery-1.7.1.min.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-apollo.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-clj.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-css.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-go.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-hs.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-lisp.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-lua.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-ml.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-n.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-proto.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-scala.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-sql.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-tex.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-vb.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-vhdl.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-wiki.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-xq.js deleted: ../blog/xxg1413.github.com/js/prettify/lang-yaml.js deleted: ../blog/xxg1413.github.com/js/prettify/prettify.css deleted: ../blog/xxg1413.github.com/js/prettify/prettify.js deleted: ../blog/xxg1413.github.com/project.md deleted: ../blog/xxg1413.github.com/wiki.md
1 parent bf7bee6 commit ec95c56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1970
-0
lines changed

xxg1413.github.com/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.swp
2+
*~
3+
*.[oa]

xxg1413.github.com/404.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: page
3+
title: 出错啦!
4+
---
5+
<h1>出错啦。。。</h1>
6+
7+
<p>看看别的吧先</p>

xxg1413.github.com/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#一点点说明
2+
3+
这是我的博客[BeiYuu.com](http://beiyuu.com)的博客源码,如果你是通过[使用Github Pages建独立博客](http://beiyuu.com/github-pages/)这篇文章到了这里,并打算Fork代码并自己大干一场的,希望你能看一下我的唠叨:
4+
5+
* 马上动手很好
6+
* 也感谢你对我的工作的认可
7+
* 再推荐你阅读下这篇:[我为什么写博客?](http://beiyuu.com/why-blog/)
8+
* 如果你打算直接复用我的所有设计,我没有什么意见,只是希望你能在某个地方标明一下出处,做一个认真谨慎的人
9+
* 如果你打算在你的博客中转载我的文章,也不错,不过麻烦您标明一下出处
10+
* 如果你不打算理我,那至少烦请您把我的统计代码删掉
11+
* 浮躁的世界中,希望还有那么一点点认真的净土

xxg1413.github.com/_config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
auto: true
2+
3+
markdown: rdiscount
4+
pygments: true
5+
paginate: 6
6+
permalink: /:title
7+
8+
title: BeiYuu.com
9+
url: http://beiyuu.com
10+
feed: /atom.xml
11+
author:
12+
name: BeiYuu
13+
twitter: twitter.com/beiyuu
14+
description: "BeiYuu\'s Blog"
15+
author_info: <a href="http://beiyuu.com/about">BeiYuu</a>
16+
17+
copyright:
18+
- Design by <a href="http://beiyuu.com/about" title="BeiYuu" target="_blank">BeiYuu</a> &copy; Copyright 2012
+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!--
5+
* Author: BeiYuu
6+
-->
7+
<meta charset="utf-8" />
8+
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
9+
<meta name="generator" content="Jekyll" />
10+
<meta name="author" content="{{ site.author.name }}" />
11+
<meta name="description" content="{{ site.description }}" />
12+
<link rel="stylesheet" href="/css/default.css" type="text/css" />
13+
<link rel="alternate" type="application/atom+xml" title="Recent Entries" href="{{ site.feed }}" />
14+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
15+
<script type="text/javascript" src="http://beiyuu.com/js/jquery-1.7.1.min.js"></script>
16+
<script type="text/javascript">
17+
var BYB = {};
18+
</script>
19+
</head>
20+
<body>
21+
{{ content }}
22+
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>-->
23+
<script type="text/javascript">
24+
BYB.includeScript = function(file,callback){
25+
var _doc = document.getElementsByTagName('head')[0];
26+
var js = document.createElement('script');
27+
js.setAttribute('type', 'text/javascript');
28+
js.setAttribute('src', file);
29+
_doc.appendChild(js);
30+
31+
if (!/*@cc_on!@*/0) { //if not IE
32+
//Firefox2、Firefox3、Safari3.1+、Opera9.6+ support js.onload
33+
js.onload = function () {
34+
callback();
35+
}
36+
} else {
37+
//IE6、IE7 support js.onreadystatechange
38+
js.onreadystatechange = function () {
39+
if (js.readyState == 'loaded' || js.readyState == 'complete') {
40+
callback();
41+
}
42+
}
43+
}
44+
return false;
45+
}
46+
47+
//if(!window.jQuery){
48+
//BYB.includeScript('http://beiyuu.com/js/jquery-1.7.1.min.js',BYB.readyFunction);
49+
//}else{
50+
//BYB.readyFunction();
51+
//}
52+
</script>
53+
54+
<!--*********************************************************-->
55+
<!--********** 直接 Fork 代码的同学请注意一下这里 ***********-->
56+
57+
<!--********** 虽然我不太在意是否直接复用我的设计 ***********-->
58+
59+
<!--********** 也不太在意是否转载我的文章不写出处 ***********-->
60+
61+
<!--********** 但我还是希望你能理解我的第一篇博客 ***********-->
62+
63+
<!--********** 就算你全然无视我上面所说的这些话语 ***********-->
64+
65+
<!--********** 希望你也能把下面两行的统计代码删除 ***********-->
66+
<!--*********************************************************-->
67+
68+
<script type="text/javascript" src="http://js.tongji.linezing.com/2727758/tongji.js"></script>
69+
<noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/2727758/tongji.gif"/></a></noscript>
70+
</body>
71+
</html>

xxg1413.github.com/_layouts/page.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
<div id="head">
5+
<div class='logo left'>
6+
<a href="/" title="Home">BeiYuu.com</a>
7+
</div>
8+
<div id="header">
9+
<div class="nav right">
10+
<a href="/blog" title="Thoughts On Something">Blog</a>
11+
<a href="/project" title="Projects Ongoing">Project</a>
12+
<a href="/wiki" title="Wiki" >Wiki</a>
13+
<a href="/about" title="About BeiYuu" >About</a>
14+
<a href="{{ site.feed }}" rel="feed" title="Subscribes The Feed" target="_blank">RSS</a>
15+
</div><!-- .nav -->
16+
</div><!-- #header -->
17+
</div><!-- #head -->
18+
<div id="content">
19+
{{ content }}
20+
</div><!-- #content -->
21+
<div id="footer">
22+
<div class="copyright right">
23+
{% for line in site.copyright %}
24+
<p>{{ line }}</p>
25+
{% endfor %}
26+
</div>
27+
</div><!-- #footer -->

xxg1413.github.com/_layouts/post.html

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
layout: page
3+
---
4+
<link rel="stylesheet" href="/js/prettify/prettify.css" />
5+
<div class="entry">
6+
{{ content }}
7+
如果您觉得有帮助,就尽情分享或者<a href="/about" target="_blank">关注我吧</a><br/>
8+
<!--<a href='http://me.alipay.com/beiyuu' target="_blank" style="float:left;"><img src='https://img.alipay.com/sys/personalprod/style/mc/btn-index.png' style="display:inline" /></a>-->
9+
<div style="float:left;width:160px;">
10+
<iframe width="100%" height="75" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=75&fansRow=2&ptype=1&speed=0&skin=1&isTitle=0&noborder=0&isWeibo=0&isFans=0&uid=1855270953&verifier=375b89d6&colors=d6f3f7,F8F8F0,666666,0082cb,ecfbfd&dpc=1"></iframe>
11+
</div>
12+
<div id="jiathis_style_32x32" style="float:left;margin-left:20px;margin-top:35px;">
13+
<a class="jiathis_button_tsina"></a>
14+
<a class="jiathis_button_douban"></a>
15+
<a class="jiathis_button_tqq"></a>
16+
<a class="jiathis_button_renren"></a>
17+
<a class="jiathis_button_douban9dian"></a>
18+
<!--<a class="jiathis_button_readitlater"></a>-->
19+
<!--<a class="jiathis_button_instapaper"></a>-->
20+
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
21+
<!--<a class="jiathis_counter_style"></a>-->
22+
</div>
23+
<div style="clear:both"></div>
24+
</div><!-- .entry -->
25+
<div id="disqus_container">
26+
<a href="#" class="comment" onclick="return false;">点击查看评论</a>
27+
<div id="disqus_thread"></div>
28+
</div>
29+
<script type="text/javascript">
30+
$(document).ready(function(){
31+
$('pre').addClass('prettyprint linenums') //添加Google code Hight需要的class
32+
33+
$('#disqus_container .comment').on('click',function(){
34+
$(this).html('加载中...');
35+
var disqus_shortname = 'beiyuu';
36+
var that = this;
37+
BYB.includeScript('http://' + disqus_shortname + '.disqus.com/embed.js',function(){$(that).remove()});
38+
});
39+
40+
$('.entry a').each(function(index,element){
41+
var href = $(this).attr('href');
42+
if(href){
43+
if(href.indexOf('#') == 0){
44+
}else if ( href.indexOf('/') == 0 || href.toLowerCase().indexOf('beiyuu.com')>-1 ){
45+
}else if ($(element).has('img').length){
46+
}else{
47+
$(this).attr('target','_blank');
48+
$(this).addClass('external');
49+
}
50+
}
51+
});
52+
53+
if($('h2').length > 2){
54+
var h2 = [],h3 = [],tmpl = '<ul>',h2index = 0;
55+
56+
var findScrollableElement = function(els) {
57+
for (var i = 0, argLength = arguments.length; i < argLength; i++) {
58+
var el = arguments[i],
59+
$scrollElement = $(el);
60+
if ($scrollElement.scrollTop() > 0) {
61+
return $scrollElement;
62+
} else {
63+
$scrollElement.scrollTop(1);
64+
var isScrollable = $scrollElement.scrollTop() > 0;
65+
$scrollElement.scrollTop(0);
66+
if (isScrollable) {
67+
return $scrollElement;
68+
}
69+
}
70+
}
71+
return [];
72+
};
73+
74+
$.each($('h2,h3'),function(index,item){
75+
if(item.tagName.toLowerCase() == 'h2'){
76+
var h2item = {};
77+
h2item.name = $(item).text();
78+
h2item.id = 'menuIndex'+index;
79+
h2.push(h2item);
80+
h2index++;
81+
}else{
82+
var h3item = {};
83+
h3item.name = $(item).text();
84+
h3item.id = 'menuIndex'+index;
85+
if(!h3[h2index-1]){
86+
h3[h2index-1] = [];
87+
}
88+
h3[h2index-1].push(h3item);
89+
}
90+
item.id = 'menuIndex' + index
91+
});
92+
93+
//添加h1
94+
tmpl += '<li class="h1"><a href="#" data-top="0">'+$('h1').text()+'</a></li>';
95+
96+
for(var i=0;i<h2.length;i++){
97+
tmpl += '<li><a href="#" data-id="'+h2[i].id+'">'+h2[i].name+'</a></li>';
98+
if(h3[i]){
99+
for(var j=0;j<h3[i].length;j++){
100+
tmpl += '<li class="h3"><a href="#" data-id="'+h3[i][j].id+'">'+h3[i][j].name+'</a></li>';
101+
}
102+
}
103+
}
104+
tmpl += '</ul>';
105+
106+
var $scrollable = findScrollableElement('body','html');
107+
$('body').append('<div id="menuIndex"></div>');
108+
$('#menuIndex').append($(tmpl)).delegate('a','click',function(e){
109+
e.preventDefault();
110+
var scrollNum = $(this).attr('data-top') || $('#'+$(this).attr('data-id')).offset().top;
111+
//window.scrollTo(0,scrollNum-30);
112+
$scrollable.animate({ scrollTop: scrollNum-30 }, 400, 'swing');
113+
})
114+
115+
$(window).load(function(){
116+
var scrollTop = [];
117+
$.each($('#menuIndex li a'),function(index,item){
118+
if(!$(item).attr('data-top')){
119+
var top = $('#'+$(item).attr('data-id')).offset().top;
120+
scrollTop.push(top);
121+
$(item).attr('data-top',top);
122+
}
123+
});
124+
125+
$(window).scroll(function(){
126+
var nowTop = $(window).scrollTop(),index,length = scrollTop.length;
127+
if(nowTop+60 > scrollTop[length-1]){
128+
index = length
129+
}else{
130+
for(var i=0;i<length;i++){
131+
if(nowTop+60 <= scrollTop[i]){
132+
index = i
133+
break;
134+
}
135+
}
136+
}
137+
$('#menuIndex li').removeClass('on')
138+
$('#menuIndex li').eq(index).addClass('on')
139+
});
140+
});
141+
142+
//用js计算屏幕的高度
143+
$('#menuIndex').css('max-height',$(window).height()-80);
144+
}
145+
146+
BYB.includeScript('/js/prettify/prettify.js',function(){prettyPrint()});
147+
148+
BYB.includeScript('http://v2.jiathis.com/code/jia.js',function(){})
149+
});
150+
</script>

0 commit comments

Comments
 (0)