Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf7bee6

Browse files
committed
new file: datastruct/binarysearch.py
new file: datastruct/btree.pynew file: datastruct/graph.pynew file: datastruct/queue.pynew file: datastruct/sort.pynew file: datastruct/stack.pynew file: unp/1/download.pynew file: unp/1/gopherclient.pynew file: unp/1/gopherclient2.pynew file: unp/1/gopherclient3.pynew file: unp/1/server.pynew file: unp/2/connect.pynew file: unp/2/connect1.pynew file: unp/2/connect3.pynew file: unp/2/socketerrors.pynew file: unp/2/udp.pynew file: unp/3/basicserver.pynew file: unp/3/echoclient.pynew file: unp/3/echoserver.pynew file: unp/3/socketop.pynew file: unp/3/syslogsample.pynew file: unp/3/udpechoserver.pynew file: unp/3/xinetdserver.pynew file: unp/4/dns.pynew file: unp/4/dns.pycnew file: unp/4/environment.pynew file: unp/4/getaddrinfo.pynew file: unp/4/gethostbyaddr.pynew file: unp/5/bcastclinet.pynew file: unp/5/bcastserver.pynew file: unp/5/delayserver.pynew file: unp/5/nbo.pynew file: unp/5/pollclient.pynew file: unp/5/selectclient.pynew file: unp/5/timeoutserver.pynew file: unp/6/dump_info.pynew file: unp/6/dump_page.py
1 parentc36c721 commitbf7bee6

File tree

116 files changed

+2728
-0
lines changed

Some content is hidden

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

116 files changed

+2728
-0
lines changed

‎blog/xxg1413.github.com/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.swp
2+
*~
3+
*.[oa]

‎blog/xxg1413.github.com/404.html‎

Lines changed: 7 additions & 0 deletions
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>

‎blog/xxg1413.github.com/README.md‎

Lines changed: 11 additions & 0 deletions
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+
* 浮躁的世界中,希望还有那么一点点认真的净土
Lines changed: 18 additions & 0 deletions
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
Lines changed: 71 additions & 0 deletions
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+
<metacharset="utf-8"/>
8+
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
9+
<metaname="generator"content="Jekyll"/>
10+
<metaname="author"content="{{ site.author.name }}"/>
11+
<metaname="description"content="{{ site.description }}"/>
12+
<linkrel="stylesheet"href="/css/default.css"type="text/css"/>
13+
<linkrel="alternate"type="application/atom+xml"title="Recent Entries"href="{{ site.feed }}"/>
14+
<linkrel="shortcut icon"href="/favicon.ico"type="image/x-icon"/>
15+
<scripttype="text/javascript"src="http://beiyuu.com/js/jquery-1.7.1.min.js"></script>
16+
<scripttype="text/javascript">
17+
varBYB={};
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+
<scripttype="text/javascript">
24+
BYB.includeScript=function(file,callback){
25+
var_doc=document.getElementsByTagName('head')[0];
26+
varjs=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+
returnfalse;
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+
<scripttype="text/javascript"src="http://js.tongji.linezing.com/2727758/tongji.js"></script>
69+
<noscript><ahref="http://www.linezing.com"><imgsrc="http://img.tongji.linezing.com/2727758/tongji.gif"/></a></noscript>
70+
</body>
71+
</html>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
<divid="head">
5+
<divclass='logo left'>
6+
<ahref="/"title="Home">BeiYuu.com</a>
7+
</div>
8+
<divid="header">
9+
<divclass="nav right">
10+
<ahref="/blog"title="Thoughts On Something">Blog</a>
11+
<ahref="/project"title="Projects Ongoing">Project</a>
12+
<ahref="/wiki"title="Wiki">Wiki</a>
13+
<ahref="/about"title="About BeiYuu">About</a>
14+
<ahref="{{ site.feed }}"rel="feed"title="Subscribes The Feed"target="_blank">RSS</a>
15+
</div><!-- .nav -->
16+
</div><!-- #header -->
17+
</div><!-- #head -->
18+
<divid="content">
19+
{{ content }}
20+
</div><!-- #content -->
21+
<divid="footer">
22+
<divclass="copyright right">
23+
{% for line in site.copyright %}
24+
<p>{{ line }}</p>
25+
{% endfor %}
26+
</div>
27+
</div><!-- #footer -->
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
layout: page
3+
---
4+
<linkrel="stylesheet"href="/js/prettify/prettify.css"/>
5+
<divclass="entry">
6+
{{ content }}
7+
如果您觉得有帮助,就尽情分享或者<ahref="/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+
<divstyle="float:left;width:160px;">
10+
<iframewidth="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+
<divid="jiathis_style_32x32"style="float:left;margin-left:20px;margin-top:35px;">
13+
<aclass="jiathis_button_tsina"></a>
14+
<aclass="jiathis_button_douban"></a>
15+
<aclass="jiathis_button_tqq"></a>
16+
<aclass="jiathis_button_renren"></a>
17+
<aclass="jiathis_button_douban9dian"></a>
18+
<!--<a class="jiathis_button_readitlater"></a>-->
19+
<!--<a class="jiathis_button_instapaper"></a>-->
20+
<ahref="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+
<divstyle="clear:both"></div>
24+
</div><!-- .entry -->
25+
<divid="disqus_container">
26+
<ahref="#"class="comment"onclick="return false;">点击查看评论</a>
27+
<divid="disqus_thread"></div>
28+
</div>
29+
<scripttype="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+
vardisqus_shortname='beiyuu';
36+
varthat=this;
37+
BYB.includeScript('http://'+disqus_shortname+'.disqus.com/embed.js',function(){$(that).remove()});
38+
});
39+
40+
$('.entry a').each(function(index,element){
41+
varhref=$(this).attr('href');
42+
if(href){
43+
if(href.indexOf('#')==0){
44+
}elseif(href.indexOf('/')==0||href.toLowerCase().indexOf('beiyuu.com')>-1){
45+
}elseif($(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+
varh2=[],h3=[],tmpl='<ul>',h2index=0;
55+
56+
varfindScrollableElement=function(els){
57+
for(vari=0,argLength=arguments.length;i<argLength;i++){
58+
varel=arguments[i],
59+
$scrollElement=$(el);
60+
if($scrollElement.scrollTop()>0){
61+
return$scrollElement;
62+
}else{
63+
$scrollElement.scrollTop(1);
64+
varisScrollable=$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+
varh2item={};
77+
h2item.name=$(item).text();
78+
h2item.id='menuIndex'+index;
79+
h2.push(h2item);
80+
h2index++;
81+
}else{
82+
varh3item={};
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(vari=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(varj=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+
varscrollNum=$(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+
varscrollTop=[];
117+
$.each($('#menuIndex li a'),function(index,item){
118+
if(!$(item).attr('data-top')){
119+
vartop=$('#'+$(item).attr('data-id')).offset().top;
120+
scrollTop.push(top);
121+
$(item).attr('data-top',top);
122+
}
123+
});
124+
125+
$(window).scroll(function(){
126+
varnowTop=$(window).scrollTop(),index,length=scrollTop.length;
127+
if(nowTop+60>scrollTop[length-1]){
128+
index=length
129+
}else{
130+
for(vari=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)

[8]ページ先頭

©2009-2025 Movatter.jp