I’ve recently gone through an interview process where they did ask to see some code that I’ve written, but didn’t ask to actually have the code sent to them. I would assume that a majority of businesses out there conducting these interviews really only want to see your coding style and whether or not you know what you’re talking about.
My recommendation is to spend a little bit of time building some application that relates directly to the company that you’re building it for, but nothing too refined so that they’ll want to take your code as their own. The idea is to show them the range of your skills and techniques and not much else.
I think I went a little overboard with my own demonstration (probably put about 10 hours into it, only to show it in about 3 minutes). If you’re serious about the job, you may want to spend some quality time putting something together.
I don’t think it’s wrong to request that you show them in person rather than just sending your code it. That way you’ll be able to have a discussion about it and explain why you did things the way you did. If it’s code that you’ve written specifically for this interview, then you shouldn’t have too much of a problem sending the code to them if they insist upon it too.