- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def in1to10(n, outside_mode): | |
| if outside_mode: | |
| if n <= 1 or n >= 10: | |
| return True | |
| else: return False | |
| elif not outside_mode and n >= 1 and n <= 10: | |
| return True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def make_out_word(out, word): | |
| return out[0]+out[1]+word+out[2]+out[3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'Jaken' | |
| def string_times(str, n): | |
| return str*n | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pyg = 'ay' | |
| original = raw_input('Enter a word:') | |
| word = original.lower() | |
| first = word[0] | |
| new_word = pyg+word | |
| if len(original) > 0 and original.isalpha(): | |
| if first == "A" or first == "E" or first == "I" or first == "O" or first == "U": | |
| print new_word | |
| else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'Jaken' | |
| def front3(str): | |
| front = str[:3] | |
| return front*3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'Jaken' | |
| #Given a non-negative number "num", | |
| # return True if num is within 2 of a multiple of 10. | |
| def near_ten(num): | |
| if (num % 10 - 2 == 0) or (num % 10 + 2 == 0) or \ | |
| (num % 10 + 1 == 0) or (num % 10 - 1 == 0) or \ | |
| (num % 10 - 8 == 0) or (num % 10 + 8 == 0) or \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'Jaken' | |
| def parrot_trouble(talking, hour): | |
| if talking and (hour < 7 or hour > 20): | |
| return True | |
| else: | |
| return False | |
| #instructions were: | |
| #We have a loud talking parrot. The "hour" parameter is the current hour time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'Jaken' | |
| def makes10(a, b): | |
| sum = a + b | |
| if (sum == 10) or (a == 10) or (b==10): | |
| return True | |
| else: | |
| return False | |
| #instructions were: | |
| #Given 2 ints, a and b, return True if one if them |