Skip to content

Instantly share code, notes, and snippets.

@xero
Created February 22, 2017 21:16
Show Gist options
  • Save xero/4598ac0913847f3c2e27988aa061e946 to your computer and use it in GitHub Desktop.
Save xero/4598ac0913847f3c2e27988aa061e946 to your computer and use it in GitHub Desktop.
animated coffee script!
#!/bin/sh
cup(){
cat << X0
▄▄▄▄▄▄▄▄▄▄
  ▀▀▀ ▀  ▀▀▀  ▄
 ▀▀  ▀▀▀▀      ▀▀ 
  ▀▀▀▀▀    ▀▀▀▀▀▀ 
     ▀▀▀▀▀▀▀▀▀        ▄
                  ▀ ▀ ▀
  ▀            ▀▀   ▀
     ▀▀▀▀▀▀▀▀▀      ▀
 ▀                    
 ▀                 ▀▀▀▀
 ▀                ▀▀
▀                ▀   ▄▄
▀▀▀▀        ▀▀▀▀  ▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀
X0
}
backup(){
cat << X0

X0
}
steam(){
case "$1" in
"0")
cat << X0
: : : : :
: : : : :
: : : : :
: : : : :
X0
;;
"1")
cat << X0
: : : : :
: : : : :
: : : : :
: : : : :
X0
;;
"2")
cat << X0
: : : : :
: : : : :
: : : : :
: : : : :
X0
;;
"3")
cat << X0
: : : : :
: : : : :
: : : : :
: : : : :
X0
;;
esac
}
steam 1
cup
x=0
while :; do
backup
steam $x
cup
[ "$x" -le "2" ] && x=$((x+1)) || x=0
sleep 0.25
done
@jessybreyne
Copy link

What font do you use to see it?

@xero
Copy link
Author

xero commented Oct 14, 2022

@jessybreyne any font that can render unicode block elements should work.

i personally enjoy gohu and hack for bitmap and otf/ttf terminal font use respectively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment