These snippets are free and sometimes inspired by codes from other users (I always display the link to the github of the creator). You'll find Java code, arduino code (for wemos especially), bash for RPI, file for docker compose ...
Hope it does help you in anyway as it helped me.
Have fun !