Archives (44 articles)

Today I learned: How to upload a buffer as a file to a Google Cloud Storage bucket

Find out how to, in Node.js, upload a file to a bucket hosted on Google Cloud Platform, from a buffer object.

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.

Bash command chaining operators

Little Wiki entry about a few bash command chaining operators

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`.

Vim CursorHold autocommand error when opening command line window

Find out how to get rid of `Error detected while processing CursorHold Autocommands for ... E11: Invalid in command-line window...` issue.