cloc
dotfiles
Our great sponsors
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.
cloc
-
erdtree: A modern, multi-threaded, and ️🌈aesthetic️🌈 alternative to tree and du - v1.7.0 release ️
Awesome stuff, thank you! I‘d love some flags/options for cloc integration if it can be detected, maybe a summary of the top N languages for directories (67% Rust, 13% Html, 9% Bash) or something. Just a suggestion/idea. Gonna install it anyway, it‘s shiny!
-
I created a Blazor server-side application that has processed its first $1k in sales volume
The solution I am using is currently comprised of 145 projects, 141k+ lines of C#, and 37k+ lines of Razor, courtesy of cloc:
-
Take More Screenshots
When I started making a game [0] last year, first thing I did was write a little Unity script that takes a screenshot of the opening scene, counts current lines of code using CLOC [1] (for fun, not as a true measure of anything), and occasionally renders it all out to an image file.
With that I'm able to create some pretty fun time lapses of progress. I've been doing this at an arbitrary milestone, whenever my Luau [2] LOC surpasses C++ by another factor. This post reminded me I'm overdue for another now that Luau > 3x C++ LOC.
I find it rewarding to look back at my progress. I'll share in case it's interesting for you too [3].
[0] https://store.steampowered.com/app/2168330/Helmscape/
[1] https://github.com/AlDanial/cloc
[3] https://twitter.com/kineticpoet/status/1619508466212831232
-
I made a tool to count the lines of code in a repo! Can you check it out?
Does it perform better for Go than cloc (which has the advantage of supporting a ton of languages and of being packaged in a lot of distros)?
-
CodeCounter written in C
Cool! Is there a benefit over using CLOC or is this simply your „pet project“?
-
Retrieve lines from a GitHub repo by a command
If you use cloc, you can count code without empty lines and comments.
-
Neofetch for Git repository
I personally use cloc but there's also a list of other counters here
- Mako – a full Bitcoin implementation in C
-
What text editor do you use?
FYI, cloc gives a total of 67057 lines of code for kakoune (91577 line counting blanks and comments). Can you give more details on how you obtained 200k ?
- Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script
dotfiles
-
Turning Linux Into a Usable Lispy Machine?
I have been doing research trying to figure out what software in my current toolchain has a Lisp, specifically Common Lisp, alternative. Having looked around I have been able to find a few thing.
-
How Do You Setup Workspaces Properly?
I am trying to setup my workspaces for stumpwm, but am running into a wall due to not being able to find much documentation, is there is even support, for a few things I want to do. For some background, I am coming from dwm which I have used for a few years and even forked a few times. In dwm I had a rather simple, but extremely useful, setup where I would store specific types of programs on specific tags. I was able to figure out getting this done in stumpwm and it working just fine. The main issue with this portion of my workspace setup is that the Default workspace still exists. I have tried to figure out how to delete it, but cannot. I know how to rename it, so I could just do that and use it for my terminals, but the issue arises where I have no idea how to change it from the default stacking layout to the dynamic one. Any advice? Additionally, is there a way to get something like dwm's fakefullscreen?
-
How Do I Unbind all Default Bindings and Bind Keys With Shift?
My brain hurts, I did this and now it just works.
That doesn't work either :( I made the changes here. When press bindings that use shift they either do nothing, such as the case with these or I get an error saying that the key is not defined such as with the shift bindings in chains
-
Terminal Emulators Written in Common Lisp?
I am working on rebuilding my software toolchain around Common Lisp, because it is amazing. I have already started moving to sbcl from zsh, thanks to help from this subreddit and a friend, as well as moving away from my dwm fork to stumpwm. I am looking at what programs I have left to find replacements for and I know I am moving to either lem or gnu emacs, hopefully lem, from nvim and nyxt from firefox, but there are three programs I cannot find CL replacements for, my terminal, screen locker, and dynamic menu. The last two will be a pain, I know, but with the terminal I was shocked to see little to nothing online. I was able to find CLIM implementations of terminal emulators, but the one I found which I lost the link to is built into a desktop environment; I also don't know if it would run under X11 or Wayland. I was curious if there was someone here who would know of a terminal emulator that was written in CL? It doesn't need to be fancy, in fact the less fancy the better. I am just trying to figure out if I refork st or if there is a CL terminal I can use.
-
How Would One Bind Prefix + Key + Key?
Also, I apologise but did not push until late last night, here is my current stumpwm configuration in case it helps.
I am unsure if you have interest, but is the final working product :D Thank you again! https://gitlab.com/FOSSilized_Daemon/dotfiles/-/blob/main/src/dotfiles/home/.library/generic/common-lisp/stumpwm/common-lisp/key-binding.lisp
-
How to Build a Proper Loading Order From ASDF?
I am unsure if this would have any impact, but I am making some changes (as well as this) to sbcl; none that should cause this though.
-
Is There Any Method For Checking If REPL Is Running As a Login Shell?
An update to my other comment. I can confirm that the issues I am having are due to cl-repl. I took my exact configuration, commented out the first line of my replrc.lisp, hardcoded a require for asdf, using find-package always returns nil for some reason with asdf I don't know why, and then symlinked the file to ~/.sbclrc and everything loaded fine and ran fine. I am unsure what is up with cl-repl. I think I would rather use sbcl anyway, but I just need to figure out tab-completion, sytan highlighting if possible, and then determine how to check if asdf is installed to load it (I know I can always require it, but I want to proof this configuration in case I use it on a repl that does not autoload asdf).
I am currently moving over to a repl, either cl-repl or sbcl with some interactive extensions, and am hitting one issue. I do not use a display manager to start a graphical environment, but instead use my .login as a script to start either my graphical environment or my multiplexor. While porting this to common-lisp would be trivial, the one issue is that it would run every time I spawn a REPL. As far as I know there are no versions of a .login file for either cl-repl or sbcl. Does anyone know if there is a way to check if a REPL is running as a login shell or of an extension to implement this functionality? If not it is not the end of the world as I can just write an explicit function and manually call it, but it would be nice to have.
What are some alternatives?
tokei - Count your code, quickly.
scc - Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
tmux-resurrect - Persists tmux environment across system restarts.
gui - Bitcoin Core GUI staging repository
zen-mode.nvim - 🧘 Distraction-free coding for Neovim
zsh-autosuggestions - Fish-like autosuggestions for zsh
kakoune-python-bridge - Send selections to python while keeping history of previous commands
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
spacemacs - A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
vis - A vi-like editor based on Plan 9's structural regular expressions
firefox-csshacks - Collection of userstyles affecting the browser
termux-create-package - Python script to create Termux packages easily.