Failed physicist. Overrated user.
Don't let reputation fool you. I know far less than you might think.
Any code I post here on https://tex.stackexchange.com/ can be used freely. Don't bother with attribution, the code is surely bad enough and I don't need to be associated with it :-)