You can use this code in whatever way you want, as long as you don't try to claim you wrote it.