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 | |
import argparse | |
import cairo | |
from gi.repository import Gtk | |
from gi.repository import Gdk | |
from gi.repository import GdkPixbuf | |
from gi.repository import GObject |
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
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
autoreconf: Entering directory `.' | |
autoreconf: configure.ac: not using Gettext | |
autoreconf: running: aclocal --force | |
aclocal: warning: couldn't open directory 'm4': No such file or directory | |
autoreconf: configure.ac: tracing | |
autoreconf: configure.ac: not using Libtool | |
autoreconf: running: /usr/bin/autoconf --force | |
configure.ac:7: error: possibly undefined macro: AC_DISABLE_STATIC | |
If this token and others are legitimate, please use m4_pattern_allow. | |
See the Autoconf documentation. |
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 | |
# -*- coding: utf-8 -*- | |
import math | |
class MetricInt(int): | |
""" | |
Integer with metric string representation. | |
""" | |
incPrefixes = ['k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'] |
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
Budget.py:6:1: E302 expected 2 blank lines, found 1 | |
Budget.py:11:44: E712 comparison to False should be 'if cond is False:' or 'if not cond:' | |
Budget.py:14:1: W293 blank line contains whitespace | |
Budget.py:29:1: W293 blank line contains whitespace | |
Budget.py:41:12: E225 missing whitespace around operator | |
add_category_popover.py:4:1: E302 expected 2 blank lines, found 1 | |
add_category_popover.py:14:59: E231 missing whitespace after ',' | |
add_category_popover.py:21:1: W293 blank line contains whitespace | |
add_category_popover.py:24:40: W291 trailing whitespace | |
add_category_popover.py:25:40: W291 trailing whitespace |
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 percent import Percent | |
from pprint import pprint | |
def main(): | |
pprint( | |
# Ten Percent | |
Percent(5) % 50 | |
) |
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
# Original Source: http://ls.pwd.io/2014/08/singly-and-doubly-linked-lists-in-python/ | |
class Node(object): | |
def __init__(self, data, prev, next): | |
self.data = data | |
self.prev = prev | |
self.next = next | |
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
import argparse | |
import multiprocessing | |
import signal | |
import subprocess | |
from pprint import pprint | |
globallock = multiprocessing.Lock() | |
class BatchSubprocess(object): |
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
.git/objects/pack$ PACKFILE=pack-<...>.pack ; mv $PACKFILE $PACKFILE.repack; git unpack-objects -r < $PACKFILE.repack |
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
# Configuration file for /sbin/dhclient, which is included in Debian's | |
# dhcp3-client package. | |
# | |
# This is a sample configuration file for dhclient. See dhclient.conf's | |
# man page for more information about the syntax of this file | |
# and a more comprehensive list of the parameters understood by | |
# dhclient. | |
# | |
# Normally, if the DHCP server provides reasonable information and does | |
# not leave anything out (like the domain name, for example), then |