-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy path推荐一个不错的代码搜索引擎.html
90 lines (87 loc) · 5.68 KB
/
推荐一个不错的代码搜索引擎.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet" href="../stylesheets/Github.css" type="text/css" />
<title>推荐一个不错的代码搜索引擎</title>
</head>
<body>
<div id="header"><center>
<p class="header_titleline">
<a href="../index.html" target="_self" title="主页">主页 </a><a href="../Search.html" target="_self" title="站内搜索">站内搜索 </a><a href="../Projects.html" target="_self" title="项目研究">项目研究 </a><a href="../Archives.html" target="_self" title="文章存档">文章存档 </a><a href="../README.html" target="_self" title="分类目录">分类目录 </a><a href="../AboutMe.html" target="_self" title="关于我">关于我 </a>
</p>
</center></div>
<h1>推荐一个不错的代码搜索引擎</h1>
<h4>2014-09-13 / xiahouzuoxin</h4>
<h4>Tags: 工具</h4>
转载请注明出处: <a href="http://xiahouzuoxin.github.io/notes/">http://xiahouzuoxin.github.io/notes/</a>
<!---title:推荐一个不错的代码搜索引擎-->
<!---keywords:工具-->
<!---date:2014-09-13-->
<p>隆重推荐一个不错的代码搜索引擎:</p>
<p><a href="https://searchcode.com/" class="uri">https://searchcode.com/</a></p>
<div class="figure">
<img src="../images/推荐一个不错的代码搜索引擎/searchcode.png" alt="searchcode" /><p class="caption">searchcode</p>
</div>
<p>搜索数据源涵盖:Github、Bitbucket、Google Code、Sourceforge,这就算代码托管库4巨头了吧。我以前常常在GIthub上搜索代码,发现能找到太多我可学习的代码了。</p>
<div class="figure">
<img src="../images/推荐一个不错的代码搜索引擎/Filter.png" alt="Filter" /><p class="caption">Filter</p>
</div>
<p>searchcode支持多种过滤:计算机语言过滤、代码库过滤以及数据源的过滤。比如:</p>
<ol style="list-style-type: decimal">
<li><p>搜索有关快速傅里叶变换(FFT)的C代码,使用C语言过滤的方法就是</p>
<pre><code>fft lang:c</code></pre></li>
<li><p>使用代码库过滤的方法是(在fftw库中搜索关于fft):</p>
<pre><code>fft repo:fftw</code></pre></li>
<li><p>使用数据源过滤(Github上搜索):</p>
<pre><code>fft source:github</code></pre>
<p>也可以同时使用多种过滤。searchcode与github自带的搜索方法的差异感觉在于:searchcode会根据代码内容进行搜索,而github主要按代码库的标题进行搜索,这点上searchcode感觉要好些;但searchcode虽然包含了github数据源,但还是有些库搜索不到,比如:<code>fft repo:fftw source:github</code>就搜索不到什么东西,数据源搜索方面还得改进。</p></li>
</ol>
<div class="ds-thread" data-thread-key="推荐一个不错的代码搜索引擎" data-title="推荐一个不错的代码搜索引擎" data-url="xiahouzuoxin.github.io/notes/html/推荐一个不错的代码搜索引擎.html"></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"5","bdPos":"right","bdTop":"300"},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"xiahouzuoxin"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
<div id="footer">
<p class="footer_subline">联系邮箱: [email protected]</p>
<p class="footer_subline">声明: 本站所有文章如非特别说明均为原创,转载请注明出处!
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1253219218'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1253219218%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</p>
</div>
<!-- 回到顶部 -->
<script>
lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("full").style.top=parseInt(document.getElementById("full").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
suspendcode="<div id=\"full\" style='right:1px;POSITION:absolute;TOP:600px;z-index:100'><a onclick='window.scrollTo(0,0);'><img src='../images/top.png'></a><br></div>"
document.write(suspendcode);
window.setInterval("heartBeat()",1);
</script>
</body>
</html>