程式碼搜尋網站:
代碼:
GitHub
Codase
Ohloh
krugle
Merobase Component Finder
Google Code Archive SymbolHound
可以搜尋特殊符號的搜尋引擎,程式員的福音,遇到 Bash、正則之類的問題時候的利器。 Hoogle
Haskell 的專用函數搜尋引擎,媽媽再也不用擔心我的 Functional Programming RSeek.org R-project Search Engine
R 語言專用搜尋。 findjar.com
JAR 搜尋引擎,對 Java 編程有協助。 Microsoft Research
微軟內部搜尋,好東西多多,經常會發現 Google 學術搜不到的技術文獻 針對 SEO 排名的知識搜尋引擎:SEO最佳化網,完全線上學習 + 公式化結構化的 SEO 搜尋演算法 CA App Synthetic Monitor網站監控服務
從世界各地查詢網站的 Ping 結果。
Github程式碼搜尋技巧:
很多人搜尋github,但是芸芸眾生,要找到自己想要的項目猶如海底撈針一般,今天教大家幾項神技,可以快速找到自己想要的內容。
1、按star數目搜尋,比如JavaScript,要求星數,這樣就能擷取star數目最多的項目
2、follow一些github上面的大牛
請登入:https://github-ranking.com/
國內大牛:http://outofmemory.cn/github/
這裡是搜尋名人的網址:https://github.com/search
進階搜尋:https://github.com/search/advanced
3、Awesome + 你的關鍵字:搜尋一些優秀的架構、教程、項目等
4、看一些搜尋技巧,設定條件進行搜尋
地址:https://help.github.com/articles/searching-repositories/
5、通過readme看看人家是否發出pull request
看看這篇文章:http://blog.csdn.net/qianlong4526888/article/details/11529981
6、看explore推薦
https://github.com/explore
7、看看其他
http://blog.sina.com.cn/s/blog_4e60b09d0102vcso.html
8、直接github上搜fackbook或者其他,可以看到他們的最新作品
github是一個非常豐富的資源,但是面對這豐富的資源很多人不知到怎麼使用,更談不上怎麼貢獻給他,我們需要使用github就要學習使用他的方法,學會了使用的方法,接受了他的這種觀點我們才會慢慢的給他貢獻自己的力量,這是我自己在學習的時候的一個筆記。現在分享給大家希望能夠對一些人有協助。 Search / Searching code
github搜尋之程式碼搜尋 Searching code
程式碼搜尋
To search for code, use the following search qualifiers in any combination.
Tip: There's a list of search syntaxes you can add to any search qualifier to further improve your results. Considerations for code search
Due to the complexity of searching code, there are a few restrictions on how searches are performed: Only the default branch is considered. In most cases, this will be the master branch. Only files smaller than 384 KB are searchable. You must always include at least one search term when searching source code. For example, searching for language:go is not valid, while amazinglanguage:go is. At most, search results can show two fragments from the same file, but there may be more results within the file. You can't use the following wildcard characters as part of your search query:., : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } []. The search will simply ignore these symbols.
以上是程式碼搜尋中需要注意的一些問題
預設搜尋是從master分支搜尋代碼
只有小於384k的代碼才是可以搜尋到的
搜尋的時候必須包含至少一個搜尋關鍵詞 如amazing language:go
搜尋語句不能有特殊字元如., : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [].
Scope the search fields
指定搜尋方式
octocat in:file Matches code where "octocat" appears in the file contents. 搜尋檔案中有octocat的代碼 octocat in:path Matches code where "octocat" appears in the path name. 搜尋路徑中有octocat的代碼 octocat in:file,path Matches code where "octocat" appears in the file contents or the path name. 搜尋路徑中有octocat的代碼或者檔案中有octocat的代碼 display language:scss Matches code with the word "display," that's marked as being SCSS. 搜尋用scss寫的包含display的代碼 Integer Matches code with the word "Integer". 搜尋包含Integer的欄位 Search by language
通過語言搜尋代碼
You can search for code based on what language it's written in. For example: element language:xml size:100 Matches code with the word "element" that's marked as being XML and has exactly 100 bytes. 搜尋大小為100位元組的xml代碼 user:mozilla language:markdown Matches code from all @mozilla's repositories that's marked as Markdown. 搜尋mozilla使用者下用markdown寫的代碼 Search by the number of forks the parent repository has
通過fork的數量或者是否有父節點的方式搜尋
If you would like forked results to appear, add the fork:true qualifier. For example:
android language:java fork:true Matches code in a forked repository with the word "android" that's written in Java. 搜尋用java寫的 android相關的代碼並且被fork過
The size qualifier filters results based on the size of the file in which the code is found. For example: function size:>10000 language:python Matches code with the word "function," written in Python, in files that are larger than 10 KB. 搜尋與function相關的python代碼,檔案大小超過10kb Search by the location of a file within the repository
按照目錄結構搜尋
By including the path qualifier, you specify that resulting source code must appear at a specific location in a repository. Subfolders are considered during the search, so be as specific as possible. For example: console path:app/public language:javascript Finds JavaScript files with the word "console" in an app/public directory (even if they reside in app/public/js/form-validators). 在 app/public directory目錄下搜尋console關鍵字 form path:cgi-bin language:perl Finds Perl files under cgi-bin with the word "form" in them. 搜尋cgi-bin目錄下包含form的perl代碼 Search by filename
通過檔案名稱搜尋
You can use the filename qualifier if there's a specific file you're looking for. For example: filename:.vimrc commands Finds *.vimrc* files with the word "commands" in them. 搜尋 檔案名稱匹配*.vimrc* 並且包含commands的代碼 minitest filename:test_helper path:test language:ruby Finds Ruby files containing the word "minitest" named *test_helper* within the *test* directory. 在test目錄中搜尋包含minitest且檔案名稱匹配"*test_helper*"的代碼 Search by the file extension
根據副檔名來搜尋代碼
The extension qualifier matches code files with a certain extension. For example: form path:cgi-bin extension:pm Matches code with the word "form," under cgi-bin, with the .pm extension. 搜尋cgi-bin目錄下以pm為副檔名的代碼 icon size:>200000 extension:css Finds files larger than 200 KB that end in .css and have the word "icon" in them. 搜尋超過200kb包含icon的css代碼 Search within a user's or organization's repositories
通過使用者或者組織來尋找
To grab a list of code from all repositories owned by a certain user or organization, you can use the usersyntax. For getting a list of code from a specific repository, you can use the repo syntax. For example: user:github extension:rb