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 logging | |
import functools | |
import traceback | |
def trace(fn): | |
@functools.wraps(fn) | |
def wrapper(*args, **kwargs): | |
indent = ' ' * len(traceback.extract_stack()) | |
try: | |
logging.debug('{0}entering {1}'.format(indent, fn.__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
#!/bin/env python | |
import pygit2 | |
import logging | |
import re | |
import os | |
import os.path | |
def main(): | |
repo = pygit2.init_repository(os.getcwd()) |
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
<!DOCTYPE html> | |
<html dir="ltr" lang="hu-HU"> | |
<head/> | |
<meta charset="UTF-8"/> | |
</head> | |
<body> | |
<pre id='goods'></pre> | |
<script type="text/javascript"> | |
function parse_raw_data(data) { |
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 { font = "xft:Bitstream Vera Sans Mono:size=9:antialias=true" | |
, bgColor = "black" | |
, fgColor = "grey" | |
, position = Top | |
, lowerOnStart = True | |
, hideOnStart = False | |
, persistent = False | |
, border = NoBorder | |
, commands = [ Run StdinReader | |
, Run Battery ["-t", "Batt: <acstatus><watts>W, <left>%", |
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 XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Hooks.SetWMName | |
import XMonad.Layout.NoBorders | |
import XMonad.Util.EZConfig (additionalKeys) | |
import Graphics.X11.ExtraTypes.XF86 | |
myWorkspace = ["1:web","2","3","4","5","6"] |
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
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-s | |
#bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 |
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 _extend_list(numbers, size): | |
copy = numbers[:] | |
current_size = len(copy) | |
for i in range(current_size, size): | |
copy.append(0) | |
return copy | |
class Version: | |
def __init__(self, string): | |
tokens = string.split('.') |
NewerOlder