Last active
February 1, 2023 03:29
-
-
Save ytaki0801/ff879c097be0d661bea1405809be9774 to your computer and use it in GitHub Desktop.
Revisions
-
TAKIZAWA Yozo revised this gist
Feb 1, 2023 . 1 changed file with 3 additions and 3 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 @@ -4,9 +4,9 @@ cnum=180; step=80; rule=0 while [ $rule != 256 ]; do b=$rule; for x in 0 1 2 3 4 5 6 7; do export r$x=$((b%2)) b=$((b/2)); done i=0; while [ $i != $cnum ]; do export c$i=0 i=$((i+1)); done export c$((cnum/2))=1 clear @@ -27,7 +27,7 @@ while [ $rule != 256 ]; do export cn$i=$((r$((x*4+y*2+z)))) i=$((i+1)) done i=0; while [ $i != $cnum ]; do export c$i=$((cn$i)) i=$((i+1)); done s=$((s+1)) done -
TAKIZAWA Yozo revised this gist
Feb 1, 2023 . 1 changed file with 2 additions and 2 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 @@ -22,8 +22,8 @@ while [ $rule != 256 ]; do i=0 while [ $i != $cnum ]; do case $i in 0) x=0;; *) x=$((c$((i-1))));; esac y=$((c$i)) case $i in $((cnum-1))) z=0;; *) z=$((c$((i+1))));; esac export cn$i=$((r$((x*4+y*2+z)))) i=$((i+1)) done -
TAKIZAWA Yozo revised this gist
Jan 31, 2023 . 1 changed file with 4 additions and 7 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,13 +1,10 @@ #!/bin/sh cnum=180; step=80; rule=0 while [ $rule != 256 ]; do b=$rule; for x in 0 1 2 3 4 5 6 7; do export r$x=$((b%2)); b=$((b/2)); done i=0; while [ $i != $cnum ]; do export c$i=0 cn$i=0; i=$((i+1)); done export c$((cnum/2))=1 @@ -27,13 +24,13 @@ while [ $rule != 256 ]; do case $i in 0) x=0;; *) x=$((c$((i-1))));; esac y=$((c$i)); t=$((cnum-1)) case $i in t) z=0;; *) z=$((c$((i+1))));; esac export cn$i=$((r$((x*4+y*2+z)))) i=$((i+1)) done i=0; while [ $i != $cnum ]; do export c$i=$((cn$i)); i=$((i+1)); done s=$((s+1)) done sleep 0.1 rule=$((rule+1)) done -
TAKIZAWA Yozo created this gist
Jan 29, 2023 .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,39 @@ #!/bin/sh cnum=80; step=40; rule=0 while [ $rule != 256 ]; do b=$rule for x in 0 1; do for y in 0 1; do for z in 0 1; do export r$x$y$z=$((b%2)); b=$((b/2)) done; done; done i=0; while [ $i != $cnum ]; do export c$i=0 cn$i=0; i=$((i+1)); done export c$((cnum/2))=1 clear s=0 while [ $s != $step ]; do i=0 while [ $i != $cnum ]; do case $((c$i)) in 0) printf " ";; *) printf "*";; esac; i=$((i+1)) done echo i=0 while [ $i != $cnum ]; do case $i in 0) x=0;; *) x=$((c$((i-1))));; esac y=$((c$i)); t=$((cnum-1)) case $i in t) z=0;; *) z=$((c$((i+1))));; esac export cn$i=$((r$x$y$z)) i=$((i+1)) done i=0; while [ $i != $cnum ]; do export c$i=$((cn$i)); i=$((i+1)); done s=$((s+1)) done sleep 0.5 rule=$((rule+1)) done