- 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 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 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
<?php | |
/** | |
* <pre> | |
* Invision Power Services | |
* IP.Board v3.4.6 | |
* Login handler abstraction : LDAP method | |
* Last Updated: $Date: 2013-03-05 08:57:05 -0500 (Tue, 05 Mar 2013) $ | |
* </pre> | |
* |
This file contains 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
18:44:30 default: j4hr.report.make_report('538c94472567a50f448d2283') (38bd253c-6736-4df1-ba36-a809ace69473) | |
-------------------------------------------------------------------------------- | |
ERROR in report [./j4hr/report.py:20]: | |
argument of type 'NoneType' is not iterable | |
-------------------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "./j4hr/report.py", line 15, in make_report | |
if 'api' in report: | |
TypeError: argument of type 'NoneType' is not iterable | |
18:44:31 argument of type 'NoneType' is not iterable |
This file contains 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
File "./j4hr/report.py", line 15, in make_report | |
if 'api' in report: | |
TypeError: argument of type 'NoneType' is not iterable | |
19:33:26 argument of type 'NoneType' is not iterable | |
Traceback (most recent call last): | |
File "./j4hr/report.py", line 15, in make_report | |
if 'api' in report: | |
TypeError: argument of type 'NoneType' is not iterable | |
19:33:26 TypeError: 'NoneType' object does not support item assignment | |
Traceback (most recent call last): |
This file contains 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 join(self, room): | |
tjid = jid.JID(room) | |
presence = domish.Element(('jabber:client', 'presence')) | |
presence['to']=tjid.full() | |
x = presence.addElement(('http://jabber.org/protocol/muc', 'x')) | |
history = x.addElement((None, 'history')) | |
history['seconds'] = '0' | |
#print presence.toXml() | |
self.xmlstream.send(presence) |
This file contains 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
KSP found at c:/program files (x86)/steam/SteamApps/common/Kerbal Space Program | |
KSP Version: 0.90.0 | |
Installed Modules: | |
- CollisionFX 2.2 | |
- CommunityResourcePack 0.3.3 | |
- DistantObject v1.5.2 | |
- DistantObject-default v1.5.2 |
$ perl -MMail::RFC822::Address=valid -e 'valid("[email protected]")'
$ echo $?
0
$
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
- Loop variables are scoped outside the loop.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }
This file contains 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
//assumes you have the following environment variables setup for AWS session creation | |
// AWS_SDK_LOAD_CONFIG=1 | |
// AWS_ACCESS_KEY_ID=XXXXXXXXXX | |
// AWS_SECRET_ACCESS_KEY=XXXXXXXX | |
// AWS_DEFAULT_REGION=us-east-1 | |
package main | |
import ( | |
"fmt" |
OlderNewer