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
# Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html | |
# Set root logger level to DEBUG and its only appender to A1. | |
log4j.rootLogger=DEBUG,A1,file | |
# A1 is set to be a ConsoleAppender. | |
log4j.appender.A1=org.apache.log4j.ConsoleAppender | |
log4j.appender.file=org.apache.log4j.FileAppender | |
# A1 uses PatternLayout. | |
log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
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 csv | |
import string | |
import sys | |
import re | |
RE_DATE = re.compile("([a-zA-Z]+) (\d+)$") | |
RE_INTERN = re.compile("(.+) \((.+)\)") | |
def parse_intern(line): | |
name, data = RE_INTERN.match(line).group(1,2) |
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.Config.Gnome | |
import XMonad.Util.EZConfig | |
import XMonad.Actions.CycleWS | |
import XMonad.Actions.GridSelect | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.UrgencyHook | |
import XMonad.Layout.NoBorders | |
import XMonad.Layout.ThreeColumns | |
import XMonad.Layout.Reflect |
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 requests, os | |
import multiprocessing | |
from PIL import Image | |
from StringIO import StringIO | |
from BeautifulSoup import BeautifulSoup | |
class VogueGallery(object): | |
def __init__(self, url): | |
self.base_url = 'HTTP://vogue.co.uk' | |
self.page = requests.get(url).content |
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 Commentable(object): | |
#anything that inherits from this can be commentable | |
@property | |
def comment_type(self): | |
return self.comment_type | |
@property | |
def comment_url(self) | |
return "/comment/%(comment_type)s/%(id)s" % vars |
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 Hook < Podio::Hook | |
end |
NewerOlder