I have to disagree a touch: don’t do this anywhere under any circumstances, not just on Medium.
NEVER take a screen shot of your code, no no no no no no no.
You want me to help you? Make it so I can copy and paste your crappy code into my brilliant editor and clean it up.
You want to help me? Give me your brilliant code I can cut and paste into my crappy code to make it shine.
Don’t show me a picture of your work and thumb your nose at me! It’s simply cruel. :-)