More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies:
More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies:
| def change_base(n, b): | |
| rem = '' | |
| while n > 0: | |
| rem += str((n % b)) | |
| n /= b | |
| return rem[::-1] | |
| def pal_base(n): | |
| base = 2 | |
| while 1: |
| import sys | |
| import linecache | |
| import os | |
| if os.path.isfile(sys.argv[1]): | |
| try: | |
| with open(sys.argv[1], 'r') as f: | |
| content = f.readlines() | |
| length = len(content) | |
| except IOError as e: |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer