Skip to content

Instantly share code, notes, and snippets.

View zerok's full-sized avatar

Horst Gutmann zerok

View GitHub Profile
"""
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
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'
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 {
#!/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
"""
class Test(object):
def __init__(self):
self.test1 = "lala"
def __call__(self):
print self.__dict__
if __name__ == '__main__':
Test()()