bfred_it
Joined 12 years ago
Joined 12 years ago
Additionally, your OS probably already natively hides files that start with a dot, so this is just a UI problem.
Please don’t “solve” this issue by moving files to a sub-directory. If anything, only leave non-config files there, it’s the obvious simple solution that most projects follow anyway.
A better solution would be an intermediary part that never changes — say, CloudFlare — that caches HTML pages forever, automatically adds a “Archived content” header to the page, and warns the author so that they can either allow the archived version or make it a 404/410 instead.
Nobody wants to maintain servers forever, but serving static/frozen pages is much easier and cheaper.
max-width: 100%;
height: auto;
What the other user is talking about is a new feature that FINALLY uses the attributes to preserve the ratio before the image starts loading.Kinda ridiculous that we had to wait 8 years of “responsive design” before they realized that this was always supposed to happen.
This is my go-to:
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Tip: browser consoles already have these shortcuts, except $$ returns an actual array there instead of a NodeList.https://htmldom.dev/copy-text-to-the-clipboard
I get "trying to stay vanilla", but any reasonably-common snippet should either be installed from npm or published there.
For this specific issue there's a module named almost exactly the same and it restores the previous selection and focus as well: https://github.com/sindresorhus/copy-text-to-clipboard/blob/...
This is the point of published modules: your code isn't stuck into the version someone wrote in 10 minutes 5 years ago.
- GitHub satanically messing with Markdown - changes 666 to DCLXVI
- GitHub changes numbers to Roman numerals in lists
I’d call it functional clickbait.
Examples:
npm init esm
npm init react-app
https://docs.npmjs.com/cli/init npx speed-test
npx fast-cli
The second one uses fast.comProbably most people’s time in maintenance and development is worth more than $9/month, that’s why these services exist.
Semi-related xkcd https://xkcd.com/1319/
Do you really need a 100-million yacht and a 20-bedroom villa? No.