Yes, the GIF is copyrighted (and, like all my work, made available under a Creative Commons BY–NC–ND license).
The code is probably not copyrighted, and (in my opinion) shouldn't be even if it technically is.
I don't know about the legality of using the code to recreate the GIF for the purposes of bypassing the copyright on the GIF.
Of course, practically speaking you could almost certainly do this. It's fairly unlikely you'd do anything that I'd care about, and even less likely I'd have the resources to stop you even if I did.