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
~# apt-cache policy ubuntu-zfs spl spl-dkms zfs-dkms zfsutils | |
spl-dkms: | |
Installed: 0.6.0.31-0ubuntu1~natty1 | |
Candidate: 0.6.0.32-0ubuntu1~natty1 | |
Version table: | |
0.6.0.32-0ubuntu1~natty1 0 | |
500 http://ppa.launchpad.net/dajhorn/zfs/ubuntu/ natty/main amd64 Packages | |
*** 0.6.0.31-0ubuntu1~natty1 0 | |
100 /var/lib/dpkg/status | |
spl: |
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 operator import attrgetter | |
import random | |
import string | |
import sys | |
# Evolutionary word finding. | |
# Inspired by: http://www.electricmonk.nl/log/2011/09/28/evolutionary-algorithm-evolving-hello-world/ | |
# | |
# | |
# Copyright (c) 2011, Ulrich Petri <[email protected]> |
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
"""Simple example showing why using super(self.__class__, self) is a BAD IDEA (tm)""" | |
class A(object): | |
def x(self): | |
print "A.x" | |
class B(A): | |
def x(self): | |
print "B.x" | |
super(B, self).x() |
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 | |
# Copyright (c) 2012 Ulrich Petri <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
#page .ruler { | |
position: absolute; | |
} | |
#page .ruler.horz span { | |
width: 1cm; | |
height: 297mm; | |
display: block; | |
position: absolute; | |
} |
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
17327887002563635621 | |
980220736020261149 | |
980189841993496163 | |
385614653616940039 | |
91237321471363057 | |
76727623139027569 | |
64739449360580447 | |
56252530049601631 | |
46105655694387571 | |
41040815765288497 |
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
import fileinput | |
import itertools | |
def get_diff(teams): | |
a = teams[:len(teams)/2] | |
b = teams[len(teams)/2:] | |
# print "comp", a, b | |
return abs(sum(a) - sum(b)) | |
def main(): |
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
html = format_html( | |
'<p class="url">{0} <a {1}>{2}</a><br />{3} {4}</p>', | |
_('Currently:'), flatatt(final_attrs), value, | |
_('Change:'), html | |
) |
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
$colors: rgb(202,0,32), rgb(244,165,130), rgb(247,247,247), rgb(146,197,222), rgb(5,113,176); | |
@mixin choropleth($bucket) { | |
.RdBu .q#{$bucket}-5 { | |
$base-fill: nth($colors, $bucket); | |
fill: $base-fill; | |
&:hover { | |
fill: darken($base-fill, 10%); | |
} | |
} |
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
± ls -l | |
total 56 | |
-rw-r--r-- 1 ulo staff 925 Nov 2 14:52 AUTHORS.txt | |
-rw-r--r-- 1 ulo staff 1090 Nov 2 14:52 LICENSE.txt | |
-rw-rw-rw- 1 ulo staff 162 Oct 30 2011 MANIFEST.in | |
-rw-r--r-- 1 ulo staff 172 Nov 2 14:52 README.rst | |
drwxrwxrwx 4 ulo staff 136 Oct 30 2011 ScriptTest-1.1.1-py2.7.egg | |
drwxrwxrwx 5 ulo staff 170 Nov 2 15:13 build | |
drwxrwxrwx 6 ulo staff 204 Oct 30 2011 contrib | |
drwxrwxrwx 5 ulo staff 170 Nov 2 15:13 dist |