TIL
Below are short and trivial things that I just learned. For a slighly longer see sub chapters.
-
Using tagged template literal to un-indent multiline string https://adamcoster.com/blog/prettify-your-javascript-strings.
-
du -shc .to see disc space. -
See list of projects I watch in
github.com/watching. -
There are
CSSStyleSheet(),replaceSync(),document.adoptedStyleSheets. -
Ctrl-yto select first option of vim completion. -
Skipping test with
describe.skip()andit.skip()in node test. -
Local server
npx http-server /path/to/project -o -p 9999.python -m http.server.
-
There is Number.EPSILON in javascript which equals 2.220446049250313e-16. It should not be used for checking equality with error like
abs(a-b) < Number.EPSILON. -
g<Tab>go to the last accessed tab in vim. -
Setting
position: absoluteto html tag will makepreelement selected when clicking empty region.