You know what'd be a cool website/application? A front end to all these 'learn-to-code' things. Like how Mint is a front end to multiple bank's websites I could have one account that interfaces into project euler, rosalind, exercism, etc grabs exercises and checks them.
"I'm not a lawyer" etc., but I'm pretty sure that, in many if not most nations with a broadly Western judicial system, the deliberate planting of this device with the intention of causing harm will be illegal. It doesn't matter if the poor fool plugs it in: you knew what would happen. Furthermore it's arguably true that you intended it to happen. Therefore, you're a dick and you're at fault.