Writings | GitHub | LinkedIn

Writings

Disable NPM fund message — If you find NPM's funding messages distracting, you can disable them by setting a configuration in different ways.
🗓 2023-03-02
🏷 Shell
Flatten a directory on Unix systems — When cleaning up a bit on my computer, I wanted to flatten a directory structure. Not wanting to move everything by hand, I searched for a way to automate it.
🗓 2023-01-15
🏷 Shell, macOS
Manually editing chunks in git add --patch — Git allows to stage smaller chunks of code for creating more atomic commits.
🗓 2023-01-04
🏷 Git
Keep case when replacing text in Vim using vim-abolish — vim-abolish is a plugin that allows users to easily search for and replace text while also providing the option to keep the original case of the text.
🗓 2023-01-03
🏷 Vim
Home and End keys equivalent on MacBook keyboards — The MacBooks have a shortened keyboard where some keys are left out. Apple has cleverly hidden these keys behind shortcuts.
🗓 2022-12-31
🏷 macOS
Wrap visual selection using the vim-surround plugin — One nice thing I've discovered using the vim-surround plugin for vim is that you can wrap a visual selection.
🗓 2022-12-30
🏷 Vim
Using :read in Vim — The vim command :read allows you to input anything from a file into the current buffer. Useful if you want to copy things from another file.
🗓 2022-12-27
🏷 Vim
Access the last argument of the last command in a shell — Using `$_`, you can access the last argument of the last command executed.
🗓 2022-12-26
🏷 Shell
Access the last command in a shell — Using !!, you can access the last command executed. Useful for rerunning a previous command.
🗓 2022-12-26
🏷 Shell
Building A Builder Pattern in TypeScript — Forcing types using type assertions leave your code open for wrong assumptions. I went looking for an alternative.
🗓 2021-12-12
🏷 Generics, Pattern, TypeScript
A More Sustainable Blog — After reading Sustainable Web Design, I started looking for ways to reduce the carbon footprint of this blog.
🗓 2021-12-06
🏷 Design, HTML, Sustainablity
Pre-render Syntax Highlighting with Prism in Jekyll — To get a considerable performance boost for this blog, I decided to pre-render all the code when building. So no need for a large JavaScript file.
🗓 2021-12-01
🏷 Jekyll, Prism, Ruby, Sustainablity
JSON Properties as a List when Decoding in Elm — Storing JSON properties as a List when decoding in Elm
🗓 2021-11-20
🏷 Decoding, Elm, JSON
Combine Properties when Decoding JSON in Elm — Combining two properties extracted from a JSON-object when decoding JSON in Elm.
🗓 2021-11-15
🏷 Decoding, Elm, JSON
Detecting Output Listeners in Angular — Detecting listeners on an EventEmitter in an Angular component.
🗓 2021-10-25
🏷 Angular, EventEmitter, TypeScript
Changing Angular Components for Printing — When the user is printing a page, we wanted our components to behave differently without using CSS.
🗓 2021-10-24
🏷 Angular, EventListener, TypeScript
Become a Fire Keramik with Kotlin — At my work we started using Kotlin more and more. I wondered how far you could go in writing fully Functional in the language.
🗓 2020-08-03
🏷 Functional Programming, Kotlin
Solving Challenge with Elixir's Compile-Time Functions — I love solving small programming challenges. One of the many challenges on this website is about transcribing DNA nucleotides to RNA nucleotides. I was able to solve this by using Elixir.
🗓 2019-05-01
🏷 AST, Compile Time, Elixir, Macro
Maybe Don't Use Maybe? — At my work I've come across a code that had more branches than were possible in the logic of the domain.
🗓 2018-08-13
🏷 Custom Types, Elm, Maybe, Monads
Bulk Association Creation in Rails — During development of an application I stumbled across a situation where it produced N+1 queries and I set out on an adventure improve it.
🗓 2015-08-22
🏷 ActiveRecord, Rails, Ruby