You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
/me is listening to “The Last Beat of my Heart” by Siouxie and the Banshees
Lot of VimL here…
~/.config/nvim
» tokei -e pack -s files
===============================================================================
Language Files Lines Code Comments Blanks
===============================================================================
Vim script 78 6095 5761 128 206
Lua 17 1674 1567 37 70
Scheme 2 99 91 1 7
Plain Text 2 418 0 334 84
BASH 1 8 4 1 3
Python 1 1 0 1 0
Swift 1 13 11 1 1
===============================================================================
Total 102 8308 7434 503 371
===============================================================================
Hacky way to get gf
works with Hugo rooted inline links (e.g., /post/bla/
):
setlocal includeexpr='~/Sites/aliquote/content'.substitute(v:fname,'/\$','','g').'.md'
I’ve tried several combination of path
, suffixesadd
and includeexpr
with no success, so I ended up with this ugly harcoded combinaion of root path and extension as prefix and suffix. #vim
HaScheme is a library that implements a subset of the R7RS’s libraries in a lazy way, using force and delay-force. When HaScheme is used by itself, it is a lazy functional programming language with the same syntax as Scheme, embedded within Scheme. #scheme
Good old Automator folder actions… I didn’t remember it was so tedious to rename default screenshots (there’s no option to add date and time, we must chain both actions together).
Not shown in this workflow, this AppleScript (without messing with file extension guard) to copy filename to the clipboard.
The Most Important Machine Learning Equations: A Comprehensive Guide, using Numpy. #python
If someone’s subscribed to your blog with RSS they can read the full text of your article in their RSS reader of choice. RSS readers are good at rendering articles. When you publish a summary with a link to the full article on your website, you’re making them come out of the RSS reader’s window or app into another. It’s annoying. Doubly so if you still have unread articles to return to. — Please publish the full article in your RSS feed
While preparing a short tutorial on using Stack to manage Haskell projects, I noticed that my screenshots include drop shadow from macOS screenshot builtin app. I was reminded that the key is to ⇧⌘4
, then press the Space bar as usual, but before clicking hold down the option (⌥
) key. #apple
A Flexible Minimalist Neovim for 2024. I wish people favor builtin stuff more often, as does the author here, rather than installing every single plugin available on GitHub. #vim
I don’t use Cabal that often, and I manage almost everything with Stack. I accidently installed a package (bhoogle) that adds nothing to Hoogle, but there’s no cabal delete
or cabal uninstall
, you know. So I simply nuked the whole $HOME/.cabal
directory that GHCup installed for me with an older version of Cabal. And now I can’t get it back. Instead, Cabal now follows the XDG Base Directory Specification, which means compiled stuff will end up in $HOME/.local/state
. Let’s go for another env variable (CABAL_DIR
) then. #haskell