-
-
Save mazharul-miraz/7166ed6b6d978a122541b74a532f3fbf to your computer and use it in GitHub Desktop.
Revisions
-
dylnmc revised this gist
Oct 23, 2016 . 1 changed file with 42 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,10 @@ #!/bin/sh # view here: # https://i.stack.imgur.com/OK3po.png e=$'\e[' for n in {0..7}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done @@ -19,20 +15,49 @@ for n in {8..15}; do done printf '\n\n' STEP='6' START='16' for i in {0..5}; do for j in {0..11}; do if (( $j < 6 )); then n="$(( $START + ( $j * $STEP ) + $i))" else n="$(( $START + ( ( 17 - $j ) * $STEP ) + $i))" fi printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' done printf '\n' START='93' for i in {0..5}; do for j in {0..11}; do if (( $j < 6 )); then n="$(( $START + ( $j * $STEP ) - $i))" else n="$(( $START + ( ( 17 - $j ) * $STEP ) - $i))" fi printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' done printf '\n' START='160' for i in {0..5}; do for j in {0..11}; do if (( $j < 6 )); then n="$(( $START + ( $j * $STEP ) + $i))" else n="$(( $START + ( ( 17 - $j ) * $STEP ) + $i))" fi printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' done printf '\n' for n in {232..243}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' -
dylnmc revised this gist
Oct 19, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,8 @@ #!/bin/sh # see what it looks like here: # https://i.stack.imgur.com/2eP5Q.png e=$'\e[' START='16' -
dylnmc revised this gist
Oct 19, 2016 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,16 @@ START='16' STEP='6' LEVEL='77' for n in {0..7}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' for n in {8..15}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n\n' for i in {0..2}; do for j in {0..5}; do for k in {0..11}; do -
dylnmc created this gist
Oct 19, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ #!/bin/sh e=$'\e[' START='16' STEP='6' LEVEL='77' for i in {0..2}; do for j in {0..5}; do for k in {0..11}; do if (( $k < 6 )); then n="$(( $START + ( $k * $STEP ) + $j + ( $LEVEL * $i) ))" else n="$(( $START + ( ( 17 - $k ) * $STEP ) + $j + ( $LEVEL * $i) ))" fi printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' done printf '\n' done for n in {232..243}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n' for n in {255..244}; do printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' done printf '\n'