Great writeup.
With my primary focus being on websites, I tend to use modulos for zebra stripes with an even/odd class. Although I've used it for circular functionality in slides a couple of times as well.
this is helpful for the rotation of arrays too where we do
int[] temp = temp[(i + rotations) % arr.length] = arr[i]
Sorry, I have used Java im super comfortable with java for problem solving because i have been using this for a year
anyways great blog
Simon AKKAD
greate