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

Appearance settings

Commit bf7bee6

Browse filesBrowse files
committed
new file: datastruct/binarysearch.py
new file: datastruct/btree.py new file: datastruct/graph.py new file: datastruct/queue.py new file: datastruct/sort.py new file: datastruct/stack.py new file: unp/1/download.py new file: unp/1/gopherclient.py new file: unp/1/gopherclient2.py new file: unp/1/gopherclient3.py new file: unp/1/server.py new file: unp/2/connect.py new file: unp/2/connect1.py new file: unp/2/connect3.py new file: unp/2/socketerrors.py new file: unp/2/udp.py new file: unp/3/basicserver.py new file: unp/3/echoclient.py new file: unp/3/echoserver.py new file: unp/3/socketop.py new file: unp/3/syslogsample.py new file: unp/3/udpechoserver.py new file: unp/3/xinetdserver.py new file: unp/4/dns.py new file: unp/4/dns.pyc new file: unp/4/environment.py new file: unp/4/getaddrinfo.py new file: unp/4/gethostbyaddr.py new file: unp/5/bcastclinet.py new file: unp/5/bcastserver.py new file: unp/5/delayserver.py new file: unp/5/nbo.py new file: unp/5/pollclient.py new file: unp/5/selectclient.py new file: unp/5/timeoutserver.py new file: unp/6/dump_info.py new file: unp/6/dump_page.py
1 parent c36c721 commit bf7bee6
Copy full SHA for bf7bee6

File tree

Expand file treeCollapse file tree

116 files changed

+2728
-0
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

116 files changed

+2728
-0
lines changed

‎blog/xxg1413.github.com/.gitignore

Copy file name to clipboard
+3Lines 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

Copy file name to clipboard
+7Lines 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

Copy file name to clipboard
+11Lines 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+
* 浮躁的世界中,希望还有那么一点点认真的净土

‎blog/xxg1413.github.com/_config.yml

Copy file name to clipboard
+18Lines 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
+71Lines 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+
<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>
+27Lines changed: 27 additions & 0 deletions
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 -->
+150Lines changed: 150 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.