Just discovered a CSS selector I had no idea existed 🤯
:in-range and :out-of-range allow you to select an input whose value is within/outside the min and max attributes 🔥
A bash function I use constantly on airports:
function changeMac() {
local mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo ifconfig en0 ether $mac
sudo ifconfig en0 down
sudo ifconfig en0 up
echo "Your new physical address is $mac"
}
Unlimited WiFi ✨
Modern CSS is 🤯
place-self allows you to align an individual element in the block and the inline directions at once 🚀 (i.e. specify both align-self and justify-self)
Works with both flexbox and grid layout ✨
📚 and more demos buff.ly/3qr0Bee
Modern CSS is so expressive 🤯
:where takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list
mk.js is a Mortal Kombat prototype implemented in JavaScript 🔥
It's open source & has multiplayer support, so you can use it as an example to build your first game 👾
👉🏻 github.com/mgechev/mk.js
👉🏻 mk.mgechev.com
It has been more than 4 years since I joined Google!
To prepare for my engineering interview I spent over 2 months solving coding problems and I pushed them on GitHub.
You can find all of them at