Personally, I think having a portfolio of code you have worked on on github is the way to go. Use that and explain what the problem was, how you approached solving it and justifying why you took that approach. That's what you'll be expected to do in any job anyway, so it makes sense in an interview as well.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.