Showing snippet of previous employer's source code during interview?
brightjourney.com
brightjourney.com
Suffice it to say this is an instant no-hire just about anywhere even if you're not so blatant about it.
Instead here's the advice I've given everyone I've seen do this in an interview - build an application that scratches an itch for you or contribute to an open source project you're interested in. This is great for employers because it's crystal clear what code was written by you and an itch-scratcher might even earn you some semi-passive income.