Adds examples
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rand() {
|
||||
shuf -i"$1"-"$2" -n1
|
||||
}
|
||||
|
||||
iterations=$(rand 5 10)
|
||||
|
||||
for i in $(seq 1 "$iterations"); do
|
||||
color="\x1B[3$(rand 1 6)m"
|
||||
echo -e "$color$(rand 1 100)\x1b[0m"
|
||||
sleep 0.$(rand 1 2)
|
||||
done
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for i in `seq 1 100`; do
|
||||
echo $i
|
||||
sleep 0.05s
|
||||
done
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
width=$(stty size | cut -d ' ' -f 2)
|
||||
|
||||
for c in a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9; do
|
||||
for i in `seq 1 $width`; do
|
||||
echo -n $c
|
||||
done
|
||||
done
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for i in `seq 1 100`; do
|
||||
echo -en $i 'Compiling toto\r'
|
||||
sleep 0.02s
|
||||
echo -e $i 'Done\x1b[K'
|
||||
sleep 0.02s
|
||||
echo -en $i 'Compiling tata\r'
|
||||
sleep 0.02s
|
||||
echo -e $i 'Done\x1b[K'
|
||||
sleep 0.02s
|
||||
done
|
||||
Reference in New Issue
Block a user