diaryman
cloc
diaryman | cloc | |
---|---|---|
8 | 28 | |
28 | 18,581 | |
- | - | |
2.8 | 8.5 | |
10 months ago | 2 days ago | |
Shell | Perl | |
- | GNU General Public License v3.0 only |
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.
diaryman
-
Plain Text Journaling in Vim
Shameless plug of basically the same idea except as a pip package:
https://github.com/Aperocky/diarycli
`pip install diarycli`
Alternatively there is a shell version if you are averse to python/pip package manager as well:
https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
I've been using this for years, it doesn't have any fancy features - it only reliably opens up/create today's diary in vim whenever I type `diary` in command line. with some minor utilities.
-
The power of keeping a coding journal (2014)
Shameless plug on the same subject if you are vim user fond of terminal:
https://github.com/Aperocky/diarycli
`pip install diarycli`
Alternatively there is a shell version if you are averse to python/pip package manager as well:
https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
The only way I can get myself to write things down is to have it one commands away in the terminal.
-
Ask HN: Small scripts, hacks and automations you're proud of?
Diary script.
`$ diary` create/open a file for today's diary in vim: https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
Or try `pip install diarycli`: https://github.com/Aperocky/diarycli, for a pip packaged python version that does the exact same thing.
I've actually kept diary and work logs, things I did not know I was capable of.
-
Show HN: Diarycli
Having had good usage and some positive feedback on https://github.com/Aperocky/diaryman/blob/master/diaryman.sh, I decided to pack it into a pip package.
Essentially, all this does is to make creating diary super simple in the CLI, and resulting diary organized in a nice /diary/year/month/date.md hierarchy.
Having used this for a few years, I find this tool indispensable - I was never able to write diary consistently but once it was available via `diary` it became nature to utilize this to manage daily tasks at work and write personal reflections at home.
-
Take More Screenshots
> For example, my oldest files were made in Microsoft Word on an iMac G3 running Mac OS 9. I can open them in a modern word processor, and they look similar – but it’s not the same. Some of the fonts and graphics are missing, and I don’t know where I’d find replacements.
> It’s even harder for an undocumented side project I abandoned years ago. Having the code isn’t the same as a working application.
The author's solution to this is apparently screenshots, I have to respectfully disagree.
For software, side project or not, it should probably come with dependency configurations (granted, in early 2000s this isn't as mature as it is today) and some tests. My side projects basically all have tests, these tests are vital for picking up years later and for validation while developing.
For personal notes, I use this script which upon `$ diary` would create/open an entry for the current day in the appropriate folder with vim: https://github.com/Aperocky/diaryman/blob/master/diaryman.sh. Text files will last forever, it has some basic flavoring with markdown, but that's it. The folder where this is indexed is without a doubt the most valuable data on my computer, and it stretches back years.
I do occasionally take screenshots but never for reasons that author find screenshot to be useful for.
-
Writing down what I do – in Obsidian
For the unix fundamentalist out here:
https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
I had this little script aliased from shell, whenever I type `diary` it creates/open the current days' note file in vim.
-
Notes Against Note-Taking Systems
Here's my note taking system: https://github.com/Aperocky/diaryman/blob/master/diaryman.sh
Whenever I type `diary` in the terminal, it opens vim on a text file that corresponds to today. All of the diary files are nicely ordered in directory structure that goes $DIARY_ROOT/$year/$month/$day.md
It worked very well for me over years.
- Work life balance
cloc
- cloc counts blank lines, comment lines, and physical lines of source code in many programming languages
-
Underrated tools & practices
Cloc - https://github.com/AlDanial/cloc
-
Show HN: Cloc as a Service
and get the results on the cli.
Let me know what you think. :)
0: https://github.com/AlDanial/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!
- How can I see what % of my project is written in Kotlin vs Java?
-
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:
-
Can anyone give me an idea of the size ration between a high level language and assembly code?
Just out of curiosity, I downloaded the latest version of GNU coreutils and compared the line count between a few source files and the resulting disassembled object files (using cloc to exclude blank lines and comments). It looks like the ratio is very approximately 2 assembly instructions per line of C code. Obviously, that will depend a lot on what the code is doing and the coding style.
-
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
[2] https://luau-lang.org
[3] https://twitter.com/kineticpoet/status/1619508466212831232
-
Is there any way to get an average of number of lines added/removed (basically how large a change is) in user commits
My manager just asked me about this a few days ago (sigh) cloc is good for this - you can pass it a hash or two hashes and it will give you counts accordingly. https://github.com/AlDanial/cloc
-
350 Stars: A Categorization and Mega-Guide
Finally, since I'm limited on the character-length of this post, I'll post an individual comment for each year with a table of data. The "All Rank" column will rank the problem by difficulty (measured by leaderboard close time) across all years, with 1 being longest. The "Yr Rank" column will be similar, but ranked only within that year. The "P1 LOC" and "P2 LOC" columns show the numbers of lines of code in my solutions for each part as measured by cloc (each part is stand-alone so there will be some duplication, especially for Intcode). Other columns should be self-explanatory.
What are some alternatives?
zettelkasten - Creating notes with the zettelkasten note taking method and storing all notes on github
tokei - Count your code, quickly.
obsidian-template - Starter templates for Obsidian
scc - Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
Joplin - Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
diarycli - diaryman.sh as pip package
gui - Bitcoin Core GUI staging repository
n4m-examples - Repository of examples using Node For Max authored by Cycling '74
kakoune-python-bridge - Send selections to python while keeping history of previous commands
litestream - Streaming replication for SQLite.
termux-create-package - Python script to create Termux packages easily.