Skip to content

Instantly share code, notes, and snippets.

View matheusdsilva01's full-sized avatar
👾

Matheus Silva matheusdsilva01

👾
View GitHub Profile
@danielhe4rt
danielhe4rt / bashrc
Last active August 31, 2025 12:41
Bash base config
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
echo "[${BRANCH}${STAT}]"
else
echo ""
fi
@lopspower
lopspower / README.md
Last active December 11, 2025 12:39
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: