A custom extension of luma.led.matrix that allows to control a neopixel led matrix arranged in a snake/serpentine layout. The relevant file that does all the trick is getCustomMatrix.py, inside lib folder.
NEOPIXEL LED MATRIX STRIP with reversed order rows (default is 16x16):
________________
|______________
______________|
|______________
______________|
|______________
______________|
|______________
______________|
|______________
______________|
|______________
______________|
|______________
______________|
|________________