What is a good way for me to post code I am working on?
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.
dpaste and pastebin also work well.
``` # 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!
Join our real-time social learning platform and learn together with your friends!