Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

What is a good way for me to post code I am working on?

OpenStudy (anonymous):

https://gist.github.com/ is nice, it'll give you a url you can post. Git a nice Version Control System and has saved me a lot of headache when messing with school files. Worth learning about.

OpenStudy (e.mccormick):

dpaste and pastebin also work well.

OpenStudy (e.mccormick):

``` # indent your Python code to put into an email import glob # glob supports Unix style pathname extensions python_files = glob.glob('*.py') for file_name in sorted(python_files): print ' ------' + file_name with open(file_name) as f: for line in f: print ' ' + line.rstrip() print ``` It looks like ``` above and below a block also causes code to paste properly, and retain format on copy back. It turns on the preformatted text mode!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!