I had to do some sort of script for Maya for my final for "3D Scripting".
Some students are doing tool sets, generators of different kinds, etc. Basically useful things.
I created the most complex useless thing I could think of at the time. And here it is.
Allar's Melbik's Cube
Also, it turns out someone recently uploaded a Rubik's cube script 6 days ago to CreativeCrash. Way2Suck. However my script doesn't require you to open another mel document. Everything is generated from the script. Those of you that know Mel script will see that I did the really really lazy way of generating things, so yes that code is ugly. The actual cube code I think is rather elegantly implemented.