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 sys, lxml | |
| from lxml.builder import E | |
| def parseMetadata(filename, select=1, records=6): | |
| data = open(filename).read().strip().split('\n') | |
| ids = map(lambda x: x.strip(), data[::records]) | |
| selected = map(lambda x: x.replace('"', '').strip(), data[select::records]) | |
| metaDict = {} | |
| for x in xrange(len(ids)): | |
| metaDict[ids[x]] = selected[x] |
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 threading | |
| import urllib, urllib2 | |
| import json, re | |
| from Queue import Queue | |
| class GetURL(threading.Thread): | |
| def __init__(self, urlQueue, jsonQueue): | |
| threading.Thread.__init__(self) | |
| self.urlQueue = urlQueue |
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
| def isValidLink(node): | |
| parenth_re = re.compile("\([^\)]*?{}[^\(]*?\)".format(node.text), re.S) | |
| parent_text = ''.join(map(lambda x: (x.text or "") + (x.tail or ""), node.getparent().getchildren())) | |
| return parenth_re.search(parent_text) is not None and node.getparent().tag != "i" |
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
| package main | |
| import ( | |
| "http" | |
| "io" | |
| "log" | |
| ) | |
| func AnnounceHandler(w http.ResponseWriter, req *http.Request) { | |
| req.ParseForm() |
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
| presets: | |
| tvshows: | |
| deluge: | |
| path: /home/username/tv shows/ | |
| main_file_only: yes | |
| series: | |
| - Archer | |
| - Community | |
| - Big Bang Theory | |
| - Bones |
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
| presets: | |
| tvshows: | |
| deluge: | |
| path: /home/username/tv shows/ | |
| main_file_only: yes | |
| series: | |
| - Archer | |
| - Community | |
| - Big Bang Theory | |
| - Bones |
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
| presets: | |
| tvshows: | |
| series: | |
| - Archer | |
| - Community | |
| - Big Bang Theory | |
| - Bones | |
| - Castle | |
| - Fairly Legal | |
| - Game of Thrones |
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
| { | |
| "SubCategoryId": 65, | |
| "HasHasSimilarItems": false, | |
| "NavigationContentList": [ | |
| { | |
| "NavigationItemList": [ | |
| { | |
| "SubCategoryId": -1, | |
| "Description": "Discount Item", | |
| "StoreDepaId": -1, |
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
| <Person> | |
| <Name>Doug</Name> | |
| <Age>23</Age> | |
| <YChromosone>true</YChromosone> | |
| </Person> |
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
| On an Intel Core 2 Duo E6600 @ 2.4Ghz the rendering portion took place in: | |
| Linear = 24.107s | |
| Concurrent = 9.063s | |
| Both produce images whose SHA256 sum's are both: | |
| 3c68084ae742cfc7070e871ca721cb90694c28e886b77b4f289c8e84d18f124a |