๐Ÿ”ฅ There are 459 Hot Tips!!

Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.

๐Ÿ”ฅ All CSS background properties can take multiple values - helpful for layering colours, gradients and textures

8791761239

๐Ÿ”ฅ Slater your git add and git commit into a single command:

In your terminal, run :

git config --global  '!git add -A && git commit -m'

Then just git ac "commit message"

385822618

๐Ÿ”ฅ Array.from() takes a secondary map argument. Handy for creating and populating arrays of a specific length

488114920

๐Ÿ”ฅ Object Spread is really handy for overriding defaults

6821501622

๐Ÿ”ฅ iTunes opening when you hit the play button and Spotify isnโ€™t open?

Rename the executable inside the package contents โ†’

7661393228

๐Ÿ”ฅ Logos not lining up? Set a hard width + height, then use object-fit: contain; to un-stretch, perfectly center, and ensure nothing is cut off

40557416

๐Ÿ”ฅ You can stack CSS transforms of the same type if you are mixing units

1K2091730

๐Ÿ”ฅ The new Async clipboard API is so much simpler than the previous range select/document.execCommand() solutions.

It must be on a secure origin (https or localhost) and be tied to a real click

More info:

5191331217

๐Ÿ”ฅ Poor (wo)manโ€™s object search - stringify the object and use String.includes to filter the array

16115128

๐Ÿ”ฅ The Array .some() Method is super handy for checking if at least one item in an array meets what you are looking for

553126816
โŒ‚