(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A Pen by Vlastimil Fiser on CodePen.
matrix_size=3 | |
##Utility functions | |
matrix_max=$(($matrix_size - 1)) | |
function clamp() { | |
n=$(($1 < 0 ? 0 : $1)) | |
n=$(($n > $matrix_max ? $matrix_max : $n)) | |
echo $n |