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 Cell(): | |
""" | |
A Cell for the Table layout, this acts like a <td> and a <tr> put together | |
""" | |
def __init__(self, name, size=1): | |
self.name = name | |
self.size = size | |
def __str__(self): | |
return self.__repr__() |
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
def gcd(a, b): | |
"""find the greatest common divisor""" | |
if b > a: | |
a, b = b, a # if b is bigger than a switch them | |
r = a % b # find the remainder of a / b | |
while r > 0: # do the following until remainder is zero or less | |
a, b = b, r # # switch them around | |
r = a % b # # find remainder again, | |
return b # return the previous remainder |
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
85371 function calls (83178 primitive calls) in 1.112 CPU seconds | |
Ordered by: standard name | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.004 0.004 1.112 1.112 <string>:1(<module>) | |
4839 0.067 0.000 0.142 0.000 fnmatch.py:19(fnmatch) | |
4839 0.030 0.000 0.052 0.000 fnmatch.py:60(fnmatchcase) | |
4839 0.060 0.000 0.477 0.000 genericpath.py:38(isdir) | |
2844/651 0.077 0.000 0.840 0.001 os.py:209(walk) |
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
*** QTILE REPORT 2010-07-12 05:10:02.001303 | |
Message: Traceback (most recent call last): | |
File "/usr/lib/python2.6/site-packages/libqtile/manager.py", line 777, in loop | |
[], [], 0.01 | |
KeyboardInterrupt | |
Last 100 events: | |
Internal event: setgroup((), {}) | |
Internal event: focus_change((), {}) | |
Internal event: client_type_changed((Internal(<no name>),), {}) |
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
*** QTILE REPORT 2010-08-22 14:24:56.495840 | |
Message: Traceback (most recent call last): | |
File "/usr/lib/python2.6/site-packages/libqtile/manager.py", line 648, in xpoll | |
return chain | |
File "/usr/lib/python2.6/site-packages/libqtile/bar.py", line 187, in handle_ButtonPress | |
if e.event_x < i.offset + i.width: | |
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' | |
Last 100 events: | |
Unknown event: EnterNotify |
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
config.py | |
-------------------------------------------------------------------------- | |
class Match(): | |
def __init__(self): | |
self.counter = 0 | |
self.cells = ["Web", "Buddy List", "Convo", "Xchat"] | |
def add(self): | |
self.counter = (self.counter + 1) % len(self.cells) | |
return self.counter |
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
k10temp-pci-00c3 | |
Adapter: PCI adapter | |
temp1: +19.0°C (high = +70.0°C, crit = +67.0°C) | |
it8720-isa-0228 | |
Adapter: ISA adapter | |
in0: +1.15 V (min = +0.00 V, max = +4.08 V) | |
in1: +1.49 V (min = +0.00 V, max = +4.08 V) | |
in2: +3.25 V (min = +0.00 V, max = +4.08 V) | |
in3: +2.94 V (min = +0.00 V, max = +4.08 V) |
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
Dwarf: &Dwarf | |
type: metatype | |
name: Dwarf | |
height: 120 # average height from Core rule book, in cm | |
weight: 54 # weight in kg | |
life span: 101 # in years, I'm not sure about this but yeah could work | |
genus: Homo sapiens pumilionis | |
description: > | |
Short, stocky, and barrel-chested, a dwarf typically has shorter legs | |
than other metatypes. Dwarfs have natural thermographic vision (which |
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
/media/share/Daniels-backup/AppData/Roaming/Microsoft/Office/Recent/Shadowrun.LNK | |
/media/share/Daniels-backup/AppData/Roaming/Microsoft/Windows/Recent/Shadowrun 4E Runner's Toolkit.lnk | |
/media/share/Daniels-backup/Documents/Shadowrun | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Compiled FAQ.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Corporate Enclaves.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Emergence.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Errata.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Loose Alliances.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Questions.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Runner Havens.pdf |
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
/media/share/Daniels-backup/AppData/Roaming/Microsoft/Office/Recent/Shadowrun.LNK | |
/media/share/Daniels-backup/AppData/Roaming/Microsoft/Windows/Recent/Shadowrun 4E Runner's Toolkit.lnk | |
/media/share/Daniels-backup/Documents/Shadowrun | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Compiled FAQ.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Corporate Enclaves.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Emergence.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Errata.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Loose Alliances.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Questions.pdf | |
/media/share/Daniels-backup/Documents/Shadowrun/Core Books/New Shit/Shadowrun 4th - Runner Havens.pdf |