Tiny 240/120V AC power supply for logic device

Thanks Gardner for the circuit. This is exactly the kind of thing i am looking for.
Also thanks Crossroads, the mouser parts are probably easier for prototyping. Think I'm going to get a few of them!
C'mon Lakes! Try it sometime! A 240v whack is usually always your own fault. Only in very rare cases does it stop your heart XD