sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| import * as React from "react"; | |
| import { throttle } from "lodash"; | |
| /** | |
| * Mouse position as a tuple of [x, y] | |
| */ | |
| type MousePosition = [number, number]; | |
| /** | |
| * Hook to get the current mouse position |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| If you don't want the black bars on a video in your site these might do the trick for you: | |
| ``` | |
| @media all and (min-aspect-ratio: 16/9) { | |
| .video { | |
| width: 100vw; | |
| height: calc(100vw * (9/16)); | |
| } | |
| } | |
| @media all and (max-aspect-ratio: 16/9) { |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |