linguist
livegrep
Our great sponsors
linguist | livegrep | |
---|---|---|
39 | 8 | |
11,725 | 1,832 | |
1.4% | 0.9% | |
8.7 | 5.4 | |
about 14 hours ago | 9 days ago | |
Ruby | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linguist
-
Change F#'s Color on GitHub
There’s already a draft pr for this: https://github.com/github-linguist/linguist/pull/6686
-
TIL: Github seems to recognize ebuilds as a format. Is this a new github feature? Or has this been here since forever?
GitHub uses Linguist to
-
Where the hell do I have any vb in my configs?
I have found that: https://github.com/github-linguist/linguist/blob/master/docs/troubleshooting.md, but I'm also currently not at home, so I will check it out later.
-
What is the proper language markup type we should use for a MakeFile code snippet?
Another option is to use Linguist which is what GitHub uses (I use linguist via .gitattributes files for all of my code projects). It is community driven and supports essentially every language possible: see languages.yml.
-
Finding projects on GitHub: Topics, Languages, and Collections
Once you selected a topic you can further filter the projects by language. This means programming language as recognized by the linguist tool of GitHub. See what they say about repository languages
-
Track my coding progress on GitHub with a .NET Worker Service
As I later found out, GitHub uses the Linguist library to measure the amount of lines written in a specific language... which is still pretty magic 🪄.
- How to get font colors but not syntax highlighting for a file in custom language?
-
Debugging fontification error while writing a new mode
;;; shell-session --- Markup shell commands with their output. ;;; ;;; Commentary: ;;; ;;; Colorizes blocks similar to "console" in GitHub Flavored Markdown ;;; which is defined as "ShellSession" in ;;; https://github.com/github/linguist which uses the regexp in: ;;; https://github.com/atom/language-shellscript/blob/master/grammars/shell-session.cson ;;; ;;; Code: ;;; ;;; Include this in your .emacs init file: ;;; ;;; (require 'shell-session-mode) (defcustom shell-session-prompt-regexp (regexp-quote "^[^[:space:]]*$[[:space:]]+[^[:space:]]+$") "Regexp matching a shell $ prompt with a command." :type 'regexp :group 'shell-session) (define-derived-mode shell-session-mode fundamental-mode "shell-session-mode" "A major mode to display shell sessions." :group 'shell-session (font-lock-add-keywords nil '((shell-session-prompt-regexp . font-lock-keyword-face)))) (add-to-list 'auto-mode-alist '("\\.sh-session\\'" . shell-session-mode)) (provide 'shell-session-mode) ;;; shell-session-mode.el ends here.
-
massCode v3 - An open source snippets manager is out 🚀
massCode uses Codemirror as the basis for the editor and .tmLanguage as the grammar for syntax highlighting. This tandem opens the door to over 600 existing grammars. The application currently supports more than 160 grammars. In addition to .tmLanguage, the application supports .tmTheme for themes. There is also…
-
Configuring GitHub's Linguist to Improve Repository Language Reporting
In this post, I explain how to configure GitHub's Linguist within your repository to enable more accurate and more relevant repository language reporting, with examples from a few of my own repositories. Every repository on GitHub has a chart that shows the distribution of languages detected in the repository. GitHub's Linguist is responsible for detecting the language of each file within your repository, and the reported percentages are based on file sizes. For example, "Java 50%" means that 50% of the total size of all detected files in the repository are Java files. There are also third party tools that display language statistics, such as the user-statistician GitHub Action that I developed and maintain, which includes on an SVG (among other things) a pie chart summarizing the language distribution across all of your public repositories (excluding forks). The language data necessary to generate that language chart comes from GitHub's GraphQL API, which is as it is reported for each of your repositories by Linguist.
livegrep
- FLaNK Stack Weekly for 13 November 2023
-
Sourcegraph is no longer Open Source
[4] is not really a usable 'product'. Livegrep (https://github.com/livegrep/livegrep) was inspired by it and is very usable.
[3] used to be a Google open source project as well, but it fell out of maintenance, and Sourcegraph took it over. It powers most of the basic regex/literal search in Sourcegraph.
Mozilla's code is searchable in Searchfox (https://searchfox.org/) which uses the indexer from Livegrep, combined with their own Git indexer and language-specific cross reference databases.
OpenGrok (https://github.com/oracle/opengrok) is also rather well known, but I have found it to have a slightly worse UI than alternatives.
If anyone's looking for an open-source search tool for grepping across repos (or even one large repo) at insane speed, I highly recommend livegrep:
https://github.com/livegrep/livegrep
Demo at https://livegrep.com/search/linux
We used it at Stripe and it was quite popular; often, searching even a single repo was faster on livegrep than with ripgrep locally.
A post reviewing it: https://www.alexdebrie.com/posts/faster-code-search-livegrep...
A post by its creator, nelhage, on its impact: https://blog.nelhage.com/post/reflections-on-performance/ and another on its architecture: https://blog.nelhage.com/2015/02/regular-expression-search-w...
- Ack is a grep-like source code search tool
-
Are there any good full text searching tools? I need to search against a huge amount of source code. I'm using ripgrep. The problem is that every time I search, it has to read every file again, which is kind of slow. Is there a FT searching tool that is designed with source code searching in mind.
Yes, you want https://github.com/livegrep/livegrep
-
Facebook open sources Glean: a scalable code search and query engine
If you've not had to deal with a codebase that takes VSCode longer than a few minutes to index, then you're probably outside their initial target market. If you've not had to setup a hosted code search tool (eg livegrep https://github.com/livegrep/livegrep ) because there's just too much code,
- Sourcegraph: Why we're indexing the OSS universe
What are some alternatives?
kotlin-latex-listing - A syntax highlighting template for the Kotlin language in LaTeX listings.
Glean - System for collecting, deriving and working with facts about source code.
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
Rouge - A pure Ruby code highlighter that is compatible with Pygments
gitlab
Pygments
sourcegraph - Code AI platform with Code Search & Cody
go-enry - A faster file programming language detector
zoekt - Fast trigram based code search
send - :mailbox_with_mail: Simple, private file sharing. Mirror of https://gitlab.com/timvisee/send
portfolio-ideas - A curation of awesome portfolio website ideas for developers and designers to draw inspiration from. Raise a pull request to add more. 💜