I have learned lesson and will not copy anything again.
critique the code you copied explain what was good and what is bad.
explain why plagiarism is bad, for you, for your peers, for academe as a whole.
apologize again to everyone who could have possibly have been hurt, like you mean it, not like you got caught.
approach your prof again with your efforts.