Jes Struck

Hugo development

Custom Shortcodes in Hugo

December 7, 2020

I’m currently writing on a post about a cool new tool I recently found GitGraph.js. In the article, I wanted to show some examples of what you can do with it and how it' renders. But of course, this did not work out-of-box with Hugo. While investigating how to do Git graphs I found that MermaidJS had some primitive support for GitGraph.js. It’s is not a complicated task to include support for GitGraph.

#Hugo #javascript #GitGraphJS #MermaidJS

vim

Vim Cheats.

September 13, 2020

I have noted my most used commands and operations down her for me to remember. If there is something, you are missing. I can highly recommend devhints.io/vim, they also have a guide to other tools/technologies, outline is very beautifully. Delete a line Move the cursor to the line you want to delete press dd Delete x consecutive lines Move to the first line. press dxd where x = the number of lines you wish to remove Delete NEXT word Move the cursor to just before the word you wish to remove Press dw Copy-paste a line Place the cursor to the line you want to cut.

#tools

Blogging

Reading 200 books a year is easy, or is it?

October 20, 2019

After reading the article on Medium called The simple truth behind reading 200 books a year, I sad with a feeling of that was a very good point, but the math was way of. First of all it stats that : The average American reads 200-400 words per minute A typical non-fiction book has ~50,000 words So the post claims 200 books * 50,000 words / book = 10 million words 10 million words / 400 wpm = 25,000 minutes 25,000 minutes / 60 = 417 hours AKA 417 hours / 356 days in a year = 1.

#Blogging