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
Versions: | |
python : 2.7.1 | |
openpyxl : 2.2.5 | |
pyexcelerate: 0.6.6 | |
xlsxwriter : 0.7.3 | |
xlwt : 1.0.0 | |
Dimensions: | |
Rows = 10000 |
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
#!/usr/bin/env python | |
""" | |
A silly script to write a git filter-branch command to rewrite | |
various email addresses to be ALL OFFICIAL AND STUFF. | |
usage | |
===== | |
./rewrite.py > rewrite.sh |
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
#!/usr/bin/env python3 | |
# Based on https://gist.github.com/3693483, converted to Python 3 for a zero-install experience | |
# API Documentation at http://api.wikia.com/wiki/LyricWiki_API | |
from urllib.parse import urlencode | |
from urllib.request import urlopen | |
import json | |
import random | |
import sys |
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
'Mozilla/5.0 (compatible; BMC/1.0 (Y!J-AGENT))' | |
(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.talktalk.co.uk/products/virus-alerts/) | |
(TalkTalk Virus Alerts Scanning Engine) | |
*/Nutch-0.9 | |
*/Nutch-1.0 | |
*/Nutch-1.0 (*; *; *) | |
*/Nutch-1.2 | |
+http://hilfe.acont.de/bot.html ACONTBOT | |
- | |
- (larbin2.6.3@unspecified.mail) |
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
backend default { | |
.host = "......."; | |
.port = "8080"; | |
.connect_timeout = 15s; | |
.first_byte_timeout = 120s; | |
.between_bytes_timeout = 120s; | |
} | |
sub vcl_fetch { | |
set beresp.grace = 1h; |
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 EssayAdmin(VersionAdmin, ManyToManyAdmin): | |
form = EssayForm | |
# helper to put LCCNs mentioned in an essay into the list display | |
def lccns(obj): | |
links = [] | |
for title in obj.subjects.all(): | |
a = '<a href="http://chroniclingamerica.loc.gov/lccn/%s>%s</a>' % (title.lccn, title.lccn) | |
links.append(a) | |
return mark_safe(', '.join(links)) |
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 cts.srb import ServiceRequest, ServiceRequestList | |
from cts.client import get_http_client | |
http = get_http_client(endpoint=settings.CTS) | |
http.add_credentials(settings.CTS_USER, settings.CTS_PASSWORD) | |
try: | |
task = ServiceRequest.accept_next_from_queue(queue="sampler", | |
serviceType="bag.QualityReviewBag.review", | |
http=http) |
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 cts.srb import ServiceRequest, ServiceRequestList | |
from cts.client import get_http_client | |
http = get_http_client(endpoint=settings.CTS) | |
http.add_credentials(settings.CTS_USER, settings.CTS_PASSWORD) | |
task = ServiceRequest.accept_next_from_queue(queue="sampler", | |
serviceType="bag.QualityReviewBag.review", | |
http=http) | |
print task |
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
[global] | |
default-timeout = 60 | |
require-virtualenv = true | |
download-cache = /tmp | |
log-file = /tmp/pip-log.txt | |
[install] | |
find-links = | |
http://pypi.python.org | |
http://pypi.pinaxproject.com |