This file contains hidden or 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 datetime import datetime | |
| import os | |
| import pickle | |
| __author__ = 'manicmonkey' | |
| MILEAGE_DATA_DIR = '/home/manicmonkey/Documents/Mileage/' | |
| class DataParseException(Exception): | |
| def __init__(self, msg, ex = None): |
This file contains hidden or 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 base64 | |
| from deluge.bencode import bdecode | |
| from deluge.ui.client import client | |
| from deluge.log import setupLogger | |
| from twisted.internet import reactor | |
| import shutil | |
| import os |
This file contains hidden or 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 xml.etree.ElementTree as ET | |
| import urllib | |
| import urllib.parse | |
| import urllib.request | |
| def getChef(value): | |
| url = 'http://www.cs.utexas.edu/users/jbc/bork/bork.cgi' | |
| values = { | |
| 'type' : 'chef', | |
| 'input' : value |
This file contains hidden or 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 org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| /** | |
| * @author jbaxter - 2013-10-29 | |
| */ | |
| public aspect Trace { | |
| private static final Logger log = LoggerFactory.getLogger("com.manicmonkey.profiling"); |
This file contains hidden or 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
| @Target(ElementType.METHOD) | |
| public @interface Profiled { | |
| } |
This file contains hidden or 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
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>aspectj-maven-plugin</artifactId> | |
| <version>1.5</version> | |
| <executions> | |
| <execution> | |
| <phase>process-classes</phase> | |
| <goals> | |
| <goal>compile</goal> | |
| </goals> |