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
""" | |
Fetches an umlgraph from a github wikipage and converts it into a | |
png using graphviz and UMLGraph. | |
The script searches on a given page for a pre+code compbination with the class | |
"uml", which is then converted into a png file. | |
Requirements: | |
* BeautifulSoup | |
* graphviz |
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
from __future__ import with_statement | |
import shutil, plistlib, urllib2, re, tempfile | |
from os.path import join, exists, expanduser | |
from subprocess import call | |
SEARCH_FOLDERS = ('/Applications', '~/Applications') | |
BASE_URL = "http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/" | |
DOWNLOAD_FORMAT = BASE_URL + "%s/chrome-mac.zip" | |
DEFAULT_INSTALLATION_PATH = '/Applications' |
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 strict; | |
use File::Temp qw/tempdir/; | |
use File::Path qw/rmtree/; | |
my $baseurl = "http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/"; | |
my $download_format = "$baseurl%s/chrome-mac.zip"; | |
my $default_installation_dir = "/Applications"; | |
my @search_dirs = ('/Applications', '~/Applications'); | |
sub get_version { |
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
#!/usr/bin/env python | |
""" | |
This small script takes the URL to one of your Pownce Export XML-files | |
and downloads it including (as far as I can tell) all your files into a | |
folder, which you can specify with the -o option:: | |
$ python pownce-files.py <url_to_export> | |
Requirements: Python >= 2.5, < 3.0 | |
""" |
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
class Test(object): | |
def __init__(self): | |
self.test1 = "lala" | |
def __call__(self): | |
print self.__dict__ | |
if __name__ == '__main__': | |
Test()() |
NewerOlder