Let me second this. Your resume is the wrong place to put code. It looks like noise to the hiring people and will be filtered out (and not just by HR, but engineering managers who have to go through dozens or hundreds of resumes too).
as well as your skill-set. You should also keep it to one page, two at most.