Articles tagged with “TIL”

How to catch errors as soon as they occur in bash scripts

A quick tip to let you fail fast a bash script as soon as errors occur.

Today I learned: How to assert the new active element after Tab keydown event in Jest

Find out how to make your Jest test, that uses Tab keydown to move the focus, to pass.

How to use git worktree and in a clean way

Discover git worktree, this git feature you wish you would have discovered years before and how to use it in a clean way

How to disable a variable font's variation features with open source tools

Step-by-step guide to strip variation features off of a variable font

How do browsers process the @font-face src descriptor list

A reference note to know how browsers do process the comma-separated list specified in the @font-face src descriptor

Today I learned: How to encode/decode base64 string from the command line

Learn how you can encode and decode strings to or from base64 string, right from the command line.

Today I learned: How to "include" a link inside a form input label

Learn how to markup a form input label with a link in a accessible manner

Today I learned: How to match a portion of text that spans over multiple lines with a Javascript regular expression

Discover a magic set of tokens that will help you match a multi-lined portion of text in Javascript

Today I learned: How to suspend Vim temporarily, run some commands, and go back

Ever wanted to quickly get out of Vim to run some commands and jump back into it and resume where you left it? This post is for you.

Today I learned: How to log a Javascript object with indentation to the console

Find out how to console Javascript objects in a more readable form using JSON.stringify and its versatile space argument.

Today I learned: How to delete until the beginning of the line including the cursor in Vim

Learn about vim exclusive character motions and how to turn them into inclusive motions

Today I learned: How to show current buffer's path in Vim's normal mode

Learn the Vim shortcut to reveal the current buffer's path in the command line from normal mode.

Today I learned: How to style a <fieldset>'s <legend> element as display inline

Learn how to work around the dodginess of HTML <legend> tag to make it behave as it would be `display: inline` or `display: inline-block`.

How to repurpose a 2006 Macbook into a Linux laptop

Learn how to install Lubuntu 16.04 on a 2006 Macbook.

Today I learned: How to tailor my `npm init` experience

Learn how to customize your `npm init` experience by creating a .npm-init.js file.

Today I learned: HTML input checkbox can have an indeterminate state

Spotlight on little-known indeterminate state of HTML input checkbox.

Browse all tags