Skip to content

Instantly share code, notes, and snippets.

@mskian
Created April 30, 2024 13:26
Show Gist options
  • Save mskian/149a98c663f806bb9126c5e7480e566b to your computer and use it in GitHub Desktop.
Save mskian/149a98c663f806bb9126c5e7480e566b to your computer and use it in GitHub Desktop.
May day ASCII Text Art in Linux Terminal and Terminal Emulator 🍵 ⬇ - International Workers' Day
#!/bin/bash
# -----------------------------------------------------------------------------
#
# Info:
# author: Santhosh Veer
# file: may.sh
# created: 30.04.2024
# revision: 30.04.2024
# version: 0.1
# -----------------------------------------------------------------------------
#
# May Day ASCII Text Art
#
# -----------------------------------------------------------------------------
progress_bar() {
local total_steps=50
local width=30
for ((i=0; i<=${total_steps}; i++)); do
percentage=$((i * 100 / total_steps))
progress=$((i * width / total_steps))
printf "\r[%-${width}s] %d%%" $(printf "#%.0s" $(seq 1 ${progress})) ${percentage}
sleep 0.1
done
echo -ne "\r\033[2K"
}
progress_bar
echo -ne "
\n 🛠 \e[36m International Workers' Day\e[0m 🛠
\\033[1;32m
@+. .:::.
@%%%%#+-:...:=*%%%###%%%#+-:..
@#++++*##%%%##*++++++++++*##%@
@#++++++++++*@%%@*++++++++++#@.
@#++++++++#%@@**@@%#++++++++#@.
@#++++++%@+-=@**@+:+@%++++++#@.
@#+++++%@-::=@**@+:::%%+++++#@.
@#+++*%@%***#@%%@%***%@%*+++#@.
@#++++******************++++#@.
@@%%%#*+++++++*#%%%##%%%#*++#@.
@+ .-+#%%%%%*+: .-+#%%%
@+
@+
@+
@+
@+
@+
@+
@+
@=
::::.
=+***+
--. .:******-. .--.
-+++++++***********++****=.
=+++++****+++++**********+
=++***+========++******+
:+***+===:. .-+++*****:
.::-+***+==- =++*****-::.
++******+== *******###*
+*******+== *****#####*
::-+****=+= +***###*=-:.
:*****+++-. .-****####-
+******+++********#####+
+***************#########+
=*****+*******#####*#####+.
.=-. :-**####-: :==.
+####+
.----.
+-+-+-+ +-+-+-+
|M|a|y| |D|a|y|
+-+-+-+ +-+-+-+
\\033[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment