- message
- message-delete
- topic
- topic-delete
- topic-rename
- login
- logout
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
from distutils.version import StrictVersion, LooseVersion | |
def compare_versions(version1, version2): | |
try: | |
return cmp(StrictVersion(version1), StrictVersion(version2)) | |
# in case of abnormal version number, fall back to LooseVersion | |
except ValueError: | |
return cmp(LooseVersion(version1), LooseVersion(version2)) | |
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
-----BEGIN WEBFACTION INSTALL SCRIPT----- | |
#!/bin/env python2.4 | |
""" | |
Nginx 0.7.65 Installer New | |
"autostart": not applicable | |
"extra info": Enter domain name for the nginx app | |
""" |
last updated: 4/5/2011
note that this stuff is always a moving target, much of this has been cribbed and combined from various blog posts. Much of the information was out of date from those, and if it is more than a couple months after the last updated date above, consider some of this likely to now be out of date.
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
if !has('python') | |
echo "Error: Required vim compiled with +python" | |
finish | |
endif | |
" Vim comments start with a double quote. | |
" Function definition is VimL. We can mix VimL and Python in | |
" function definition. | |
" function! MakeChoices() |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Usage: git diff | webdiff | |
Created by Preston Holmes on 2009-11-20. | |
Copyright (c) 2009 __MyCompanyName__. All rights reserved. | |
""" |
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
#!/usr/bin/env python | |
import os | |
from collections import defaultdict | |
import patch | |
import re | |
import coverage | |
import django | |
from optparse import OptionParser | |
import webbrowser |