Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pympler import summary, muppy | |
import psutil | |
# source: http://www.mobify.com/blog/sqlalchemy-memory-magic/ | |
def get_virtual_memory_usage_kb(): # pragma: no cover | |
""" | |
The process's current virtual memory size in Kb, as a float. | |
""" |
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 Range(object): | |
"""Represents an integer range""" | |
regex = re.compile(r'(?P<low>\d+|-\d+)?\.\.(?P<high>\d+|-\d+)') | |
def __init__(self, low, high): | |
self.low = low | |
self.high = high |
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
// ==UserScript== | |
// @name SCP Foundation reading helper | |
// @namespace http://hrnz.net/ | |
// @version 0.1 | |
// @description Adds simple buttons to SCP page to allow easy paging. | |
// @author Martin Thurau <martin.thurau@gmail.com> | |
// @match http://www.scp-wiki.net/scp-* | |
// @grant unsafeWindow | |
// @grant GM_addStyle | |
// @grant GM_setValue |
NewerOlder