When I try to make my blog posts from the Markdown documents, I usually
need to put the metadata somewhere. Since there is no database present, one
place to put where they can be put is right into the document.
Metadata are data about the data. In the context of blog posts, metad…
Here's a minimal vim settings that I have tweaked to make the comments work
using vim in Svelte
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'evanleck/vim-svelte'
Plug 'Shougo/context_file…
It is possible target specific elements in a DOM via CSS
using selectors
h2 {
/* property: value; */
}
It is also possible to
use CSS selector in JS DOM
const elements = document.querySelector("h2")
With the advent of a JAMstack it is also possible to target Markd…
It is possible to set the global npm config via the global switch
# short version
npm config set init-version "0.0.1" -g
# long version
npm config set init-version "0.0.1" --global
The location of the global npm config in nvm is tied to node version,
renderi…
Here's how I use Cypress to assert that the user interface I am building
displays datetime information sorted chronologically. Consider the list of
dates served at the port 3000 that looks like this:
<ul id="sorted">
<li>14.12.1999</li>
<li>1…
After my previous attempt to get
published date and the edited date of the post that lives entirely in the
git somehow reached the dead end because I could not reliably find out how
to handle renames, I have finally found a working way.
Start by preparing a file with a git histo…
There is a more updated method I use now descried in the
part 2.
Here's way I use to prevent pushing changes when some of the Cypress tests
are being skipped
Install required packages
npm i -D cypress husky start-server-and-test
Define your dev script in package.json if not d…