Good luck. I have to say the thing you did is really silly. Should've consulted your boss first for any work you submit to the outside, which never hurt, but gives your boss a good impression.
Everybody falls in life. Nobody can look back and tell himself that he has been perfect in his path. You will get up stronger and wiser. Good luck for your future endeavor.