TIL
Below are short and trivial things that I just learned. For a slighly longer see sub chapters.
-
Ctrl-y
to 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: absolute
to html tag will makepre
element selected when clicking empty region.