Either use background image, or the fancy new object-fit
on <img>
tags, which works almost exactly the same as background image:
Yearly Archives: 2019
Test Localhost on a Public URL
Sometimes we need to test localhost out on a public URL, for various reasons. We can do that with ngrok, which is a service that projects localhost ports onto a generated public URL.
Continue readingParallels Breaking Wacom
If your Wacom tablet stopped working after you installed Parallels.
Continue readingHow to Configure Sub-Routes in NextJS
For sub-routes like guides/post-slug
to work, 3 pieces need to be in place:
Interactive Git Commands Cheatsheet
I found this link in one of StackOverflow answers–very useful in understanding how git works.
Git Submodule Life-Saving Setup
What’s the use of git submodules? It’s mostly useful when you want to work on the code in both the main repo and the sub repo at the same time. Otherwise, a normal dependency management system would suffice.
To have submodules safely set up so that you run into walls less often, do the following:
Continue readingHow to Delay ASS Subtitles
I was watching a series and had to shift my subtitles by 38 seconds every time I open a video. After a few times of pain, I ended up writing a script to cut the crap, have some fun, and get a bit into NodeJS file I/O! 😀
Continue readingReact: How To Prompt User of Unsaved Data before Leaving Site
There’s a specific function for this: beforeunload
.