How to Deploy Eleventy to GitHub Pages With GitHub Actions

I recently discovered Eleventy, a modern static site generator that’s customizable and flexible, but without fuss. Eleventy uses JavaScript, but it’s not a JavaScript framework. It uses Node.js under the hood to transform templates into static (HTML, CSS) content. But those pages don’t contain any JavaScript. Eleventy was created to be a JavaScript alternative to Jekyll. It’s zero-config by default but has flexible configuration options. Eleventy works with your project’s existing directory structure.
Read more →

Friday Picks 063

Read more →

TIL How to Assign Variables in Go

Declaration and Assignment Go is statically typed. Before you can bind a variable, you have to declare it: var age int This declares a new variable called age of type Integer. The variable is declared, but not initialized. If you want to assign something to a variable, you’ll do it like this: age = 35 There is a short-hand operator: :=: age := 35 The “walrus operator” is syntactic sugar for the two commands:
Read more →

TIL How to Execute an External Command in Vim and Reload the File

Or: How To Pipe The Current Vim Buffer Through Unix Commands In this post I will show you how to run a shell command from within Vim, and immediately reload that file. The Problem I write a Go file in (Neo)Vim. I want to use the command gofmt to format my file. Running gofmt will change the contents of my file, so I’ll need to reload my Vim buffer.
Read more →

broot - the better ls

It’s become popular to rewrite classic command-line tools in Rust: Shell is the essential tool for every programmer. The more familiar you become with the available tools, the more efficient you can be with using your computer. Many Rust alternatives provide a modern, faster, and more user-friendly alternative. One of them is broot. What Is broot? broot is a combination of ls (for listing directory contents) and tree (for listing contents in a tree-like format).
Read more →

Friday Picks 062

Read more →

TIL About Copying a Range in Vim

Today I learned about the copy command (alias t): :[range]co[py] {address} :co :copy Copy the lines given by [range] to below the line given by {address}.Let’s say we have a file like this: 1 line a 2 line b 3 line c 4 line d | You are on line d (symbolized with the | as the cursor). You want to copy from 1 to 3 (line a, line b, line c).
Read more →

Friday Picks 061

Read more →

Installing and Managing Vim Plugins With vim-packager

Vim is a customizable and fast editor. The ability to adapt Vim to your needs makes it a very powerful tool. Vim is for power-users and tinkerers. It uses less resources than modern alternatives like VS Code. You can use it without a mouse. That’s why you can edit text at “the speed of thought”. The editor’s basic functionality already covers a lot of ground. You can see it in action in this Youtube video:
Read more →

How to Download Courses From Teachable

How to Download Courses From Teachable
Teachable is a platform that allows you to deliver online courses with your own brand. Rather than using a third-party provider like Udemy, you can host the platform under your own domain. I’m a member of a few online schools that are build with the Teachable infrastructure. Two weeks ago, I was on the road with a spotty internet connection. I knew I wanted to download a slew of courses.
Read more →