Термины, договорённости и описание тестовой презентации.
- Список (список слайдов)
- Презентация (один слайд,
?fullв адресе) - Текущий слайд (ID слайда в адресе, может быть и в Списке, и в Презентации)
| 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" |
| (function(){ | |
| $('link[rel="stylesheet"]').each(function(i, elem) { | |
| // Make an anchor tag with the stylesheet's href -- this is a weird/handy way of | |
| // working with URLs in the browser. | |
| var anchorTag = $('a').attr('href', elem.getAttribute('href'))[0]; | |
| // Rewrite the URL to have a cache busting parameter. This assumes | |
| // that any query params weren't significant. | |
| anchorTag.search = "ts=" + (+new Date); | |
| #!/bin/bash | |
| #Force file syncronization and lock writes | |
| mongo admin --eval "printjson(db.fsyncLock())" | |
| MONGODUMP_PATH="/usr/bin/mongodump" | |
| MONGO_HOST="prod.example.com" | |
| MONGO_PORT="27017" | |
| MONGO_DATABASE="dbname" | |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| # Based on: | |
| # - https://www.gnupg.org/faq/gnupg-faq.html | |
| # - https://raw.githubusercontent.com/ioerror/duraconf/master/configs/gnupg/gpg.conf | |
| # If you have more than 1 secret key in your keyring, you may want to | |
| # uncomment the following option and set your preferred keyid. | |
| # default-key KEYID | |
| # If you do not pass a recipient to gpg, it will ask for one. Using |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).| # tools from https://github.com/ibraheemdev/modern-unix | |
| tap "cantino/mcfly" | |
| tap "clementtsang/bottom" | |
| brew "bat" | |
| brew "exa" | |
| brew "lsd" | |
| brew "git-delta" | |
| brew "dust" | |
| brew "duf" | |
| brew "broot" |