- Do some programming
- git add
- git status to see what files changed
- git status -s
- git diff [file] to see exactly what modified
- git diff --cached
| def test_gist(): | |
| if worked == True: | |
| print "It's cool!" | |
| else: | |
| print "Damn it!" | |
| if __name__ == '__main__': | |
| test_gist() |
| import requests | |
| renren_payload={'email': '', 'password':''} | |
| weibo_payload={'uname': '', 'pwd': ''} | |
| renren = requests.post('http://3g.renren.com', data=renren_payload) | |
| weibo = requests.post('http://m.weibo.cn', data=weibo_payload) |
| def algorithm_development(problem_spec): | |
| correct = False | |
| while not correct or not fast_enough(running.time): | |
| algorithm = devise_algorithm(problem_spec) | |
| correct = analyze_correct(algorithm) | |
| running.time = analyze_efficiency(algorithm) | |
| return algorithm |