@Quincunx I really don't know what law exactly this falls under but I think parodies and homages are exempt from copyright regulations (afaik), so it might be possible to do it anyway.
I'm pretty sure in duct-taping-coding you can reuse sources. But I can understand if you don't like that the snippet for each digit is unrelated to the rest.