GitHub Code Search Tips _github

Source: Internet
Author: User

Code Search site:

Code:
GitHub
Codase
Ohloh
Krugle
Merobase Component Finder
Google Code Archive Symbolhound
Search engines for special symbols, the Gospel of programmers, and the tools of Bash, regular, and so on. Hoogle
Haskell's dedicated function search engine, MOM no longer have to worry about my functional programming rseek.org R-project search Engine
R language-specific search. Findjar.com
JAR search engine, which is helpful for Java programming. Microsoft
Microsoft internal search, a lot of good things, often found that Google academic search of technical literature on SEO rankings of knowledge search engine: SEO optimization network, complete online learning + formulaic structured SEO search algorithm CA App synthetic Monitor web site monitoring Services
Query the Ping results of the website from all over the world.

GitHub Code Search Tips:

Many people search GitHub, but all mortal beings, to find their own projects like Haidilaozhen General, today to teach you a few divine skills, you can quickly find the content you want.

1, search by star number, such as JavaScript, require the number of stars, so you can get the most star number of projects



2, follow some GitHub above Daniel

Please login: https://github-ranking.com/

Domestic Daniel: http://outofmemory.cn/github/

Here is the search for celebrity URL: https://github.com/search

Advanced Search: https://github.com/search/advanced


3, Awesome + your keywords: search for some excellent framework, tutorials, projects, etc.




4, look at some search techniques, set conditions for search

Address: https://help.github.com/articles/searching-repositories/


5, through the Readme to see if people send pull request

Look at this article: http://blog.csdn.net/qianlong4526888/article/details/11529981


6, see Explore recommend

Https://github.com/explore


7. See other

Http://blog.sina.com.cn/s/blog_4e60b09d0102vcso.html


8, direct GitHub search Fackbook or other, you can see their latest works


GitHub is a very rich resource, but in the face of this rich resources many people do not know how to use, not to mention how to contribute to him, we need to use GitHub to learn how to use his methods, learned the use of the method, accepted his view of this we will slowly give him the strength to contribute to his own, This is my own time to learn a note.   Now share it with everyone hoping to be helpful to some people. Search/searching Code

GitHub Search Code Search searching

Code Search

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. Considerations for Code Search

Due to the complexity of searching code, there are a few restrictions in how searches are performed:only the default bran The CH is considered. In most cases, this'll be the Master branch. Only files smaller than 384 KB are searchable. You must always include in least one search term when searching source code. For example, searching for Language:go are not valid, while Amazinglanguage:go is. At most, search results can show two fragments to the same file, but there may is more results within the file. You can ' t use the following wildcard characters as part of your search query:.,:; / \ ` ' " = * ! ? # $ & + ^ | ~ < > () {} []. The search would simply ignore these symbols.

These are some of the problems that need to be noticed in code search

The default search is to search for code from the master branch

Only code less than 384k is available to search

The search must include at least one search keyword such as amazing language:go

Search statements cannot have special character Furu.,:; / \ ` ' " = * ! ? # $ & + ^ | ~ < > () {} [].

Scope the search Fields

Specify how to Search

Octocat in:file matches code where "Octocat" appears in the file contents. There are octocat code in the search file Octocat in:path The matches code where "Octocat" appears in the path name. There are octocat code in the search path Octocat In:file,path matches the "Octocat" appears in the file contents or the path name. There are octocat code in the search path or files that have Octocat code display LANGUAGE:SCSS matches codes with the word display, "That's marked as being scss." Search the code with the word "integer" written in Scss that contains display. Matches Searches for fields that contain integers search by language

Search Code by language

You can search for the code based on what language it ' s written in. For example:element Language:xml size:100 matches code with the word "element" of that ' s marked as being XML and has exactly Bytes. The search size is 100 bytes of XML code User:mozilla language:markdown matches code from all @mozilla ' s repositories that ' s marked as markdown. Search for Mozilla user-written code search by the number of forks the parent repository has

Search by the number of fork or whether there is a parent node

If you are would like forked results to appear, add the Fork:true qualifier. For example:

Android Language:java fork:true matches code in a forked repository and the word "Android" that's written in Java. Search for Android-related code written in Java and be fork

The size qualifier filters results based on the size of the 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 the files th At are larger than KB. Search for Python code related to function, file size exceeds 10kb search by the location of a file within the repository

Search by directory structure

By including the path qualifier, your specify that resulting source code must appear at a specific location in a repository . Subfolders are considered during the search, so is as specific as possible. For Example:console Path:app/public Language:javascript finds JavaScript files and the word "console" in a app/public Directory (even if they reside in app/public/js/form-validators). Search the App/public directory directory for the console keyword form path:cgi-bin Language:perl finds Perl files under Cgi-bin with the word "form" In them. Search by filename for Perl code that contains a form in the Cgi-bin directory

Search by file name

can use the filename qualifier if there ' s a specific file with ' re looking for. For EXAMPLE:FILENAME:.VIMRC commands finds *.vimrc* files with the word "commands" in them. Search file name matches *.vimrc* and contains commands code minitest filename:test_helper path:test Language:ruby finds ruby files containing the WOR D "Minitest" named *test_helper* within the *test* directory. Search for code that contains minitest and filename matching "*test_helper*" in the test directory by the file extension

Search for code based on 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. Search the Cgi-bin directory with the PM as the extension of the code icon size:>200000 extension:css finds files larger than MB that end in. css and have the WO Rd "icon" in them. Search for more than 200kb of CSS code search within a user ' s or organization ' s repositories

Find by user or organization

To grab a list of the code from all repositories owned by a certain user or organization, and you can use The usersyntax. For getting a list of the code from a specific repository, your can use The repo syntax. For Example:user:github EXTENSION:RB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.