This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
(require 'lsp-mode) | |
(lsp-register-client | |
(make-lsp-client :new-connection (lsp-stdio-connection '("bundle" "exec" "steep" "langserver")) | |
:major-modes '(ruby-mode enh-ruby-mode) | |
:priority -2 | |
:server-id 'steep-ls)) | |
(add-hook 'ruby-mode-hook #'lsp) |
rules: | |
- id: com.sideci.js.localstorage | |
pattern: | |
token: localStorage | |
glob: | |
- "**/*.js" | |
- "**/*.jsx" | |
- "**/*.ts" | |
- "**/*.tsx" | |
message: | |
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
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" |