Tiny 240/120V AC power supply for logic device

Wow, talk about interfacing to the national grid!, thats one circuit Ill never use! XD