CSS Cheat Sheet
posted in Technotes

Centering using Flex

Flex makes it really easy to center elements

  • Horizontally centering inline element in block element
<div style="display: flex; justify-content: center; border: 1px solid red; width: 100%">
    <span style="border: 1px solid blue">Centered element<span>
</div>
Centered element



  • Horizontally centering multiple block level elements - use flex …

Read more...

Reverse Mouse Scroll Direction
posted in Technotes

A python 3 based script to reverse the direction of mouse wheel scroll in Windows 10+.

Read more...

Git Cheat Sheet
posted in Technotes

Most common git commands / tricks / tips - concentrating on those that I have actually used (instead of trying to cover all commands).

Config commands

git config --global user.name <username>
git config --global user.email <email>
git config --global color.ui true

# shortcut aliases
git config --global alias.cm "commit -m …

Read more...