In my opinion, I like to write breakpoints inline with my selectors when using SASS. This way, I don’t have to write the selector more than once, and styles for every breakpoint can be found in one place.
Adding those friendly status messages to your Magento admin processes is simple.
In order to play a YouTube video in a lightbox, I needed to extract the video ID from the the share URL. This function supports multiple share URL formats:
A useful feature of the
.removeClass() method is that you can pass it a function, and it will remove the class(es) returned by that function. A good use for this is when you need to remove all classes from an element that begin with a particular string.
A cure for that stubborn item in your trash can that won't go away no matter how many times you click "empty trash".
I learned how to use git clean today when I needed to remove all untracked files in my working branch.
If a remote origin has changed or is no longer active, you can remove it with
git remote. You can also use this to add or change remote origins.
Sometimes the Magento indexes can get stuck in a "processing" state. If you have access to a shell, you can force a reindex. This will also show you success/failure messages for each index as it is rebuilt.
By passing the
--no-commit option to
git revert, you can forgo multiple revert commits and consolidate into just one new commit.