Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
#!/usr/bin/env python | |
import cherrypy | |
from cherrypy import _cprequest | |
from cherrypy.lib import httputil | |
import sys | |
import logging | |
from cherrypy.process import servers | |
try: |
import tornado.ioloop | |
import tornado.iostream | |
import socket | |
class WebRequest(object): |
import cherrypy | |
from jinja2 import Environment, FileSystemLoader | |
import os | |
def create_server(): | |
euterpectl = EuterpeRoot() | |
route = cherrypy.dispatch.RoutesDispatcher() | |
route.mapper.explicit = False |
#!/usr/bin/python | |
import functools | |
from threading import RLock | |
import logging | |
class CacheNullValue(object): | |
pass |
import random | |
try: | |
import cStringIO as StringIO | |
except: | |
import StringIO | |
chs = ['a','b','c','d','e','f','g','h','i','j', | |
'k','l','m','n','o','p','q','r','s','t','u','v','w','x', | |
'y','z','A','B','C','D','E','F','G','H','I','J','K','L', |
from gevent import queue | |
q = queue.Queue() | |
def queue_put(msg): | |
q.put_nowait(msg) | |
class memoize: | |
# class as decorator | |
def __init__(self, function): | |
self.function = function | |
self.memoized = {} | |
def __call__(self, *args): | |
try: | |
return self.memoized[args] | |
except KeyError: |
#!/usr/bin/python3 | |
import json | |
import urllib.request, urllib.parse | |
def google_ajax_search(searchfor): | |
query = urllib.parse.urlencode({'q': searchfor}) | |
url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' % query | |
search_response = urllib.request.urlopen(url) | |
search_results = search_response.read().decode("utf8") | |
results = json.loads(search_results) |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# this shell is uesed for fetching TouHouProject artists's urls ,and prepares for fetch albumss and songs | |
import urllib2 | |
import HTMLParser | |
from urlparse import urljoin | |
FILTERURLS = ["/cgi-bin/feedback", '?C=N;O=D', "?C=M;O=A", "?C=S;O=A", "?C=D;O=A", "/", "cp_images.sh", "fix_unicode.sh", "mv_images.sh", "ren13.py"] |