Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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() and it.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 make pre element selected when clicking empty region.