Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating readme

  • Loading branch information...
commit 0eedb93cd57cd8b2f1cf846a40071a97c2a8ca25 1 parent 3e8f91a
@ivolo authored
Showing with 1 addition and 20 deletions.
  1. +0 −20 examples/loading.sh
  2. +1 −0  readme.md
View
20 examples/loading.sh
@@ -12,26 +12,6 @@ increment=1
offset=0
steps=10
-calculate_max_steps () {
-
- url=${1}
-
- animal="`curl -s "$url"`"
-
- maxlen=0
-
- export IFS="\n"
- for word in $animal; do
- len=`expr length "$word"`
- if [ $len -gt $maxlen ]
- then
- maxlen=$len
- fi
- done
-
- animal_width=$((maxlen - offset))
- steps=$(( terminal_width - animal_width))
-}
step () {
offset=$((offset + increment))
View
1  readme.md
@@ -86,6 +86,7 @@ Returns a random ASCII animal.
## Loading Indicator Examples
[Python](https://github.com/ivolo/animals/blob/master/examples/loading.py)
+
[Shell](https://github.com/ivolo/animals/blob/master/examples/loading.shell)
## Host Your Own
Please sign in to comment.
Something went wrong with that request. Please try again.