示例#1
0
 def __init__(self, personUrl, conn):
     self.tool = tools.Tool()
     self.personUrl = personUrl
     self.conn = conn
     self.blogname = None
     self.uid = None
     self.update_time = None
     self.headers1 = {
         "User-Agent":
         "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36"
     }
     self.headers2 = {
         "User-Agent":
         "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50"
     }
     self.headers3 = {
         "User-Agent":
         "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"
     }
     self.headers4 = {
         "User-Agent":
         "Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.9.168 Version/11.50"
     }
     self.headers5 = {
         "User-Agent":
         "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 LB"
     }
     self.headerlist = [
         self.headers1, self.headers2, self.headers3, self.headers4,
         self.headers5
     ]
示例#2
0
    def attack(self):
        ''' Called when user hits the space-bar '''

        self.attacking = 15
        self.showSword = True
        self.sword = tools.Tool(self, "sword")
        self.level.entityList.add(self.sword)
        pygame.mixer.Sound.play(self.attackSound)
示例#3
0
 def __init__(self, baseUrl, seelZ, floorTag):
     self.baseURL = baseUrl
     self.seeLZ = '?see_lz' + str(seeLZ)
     self.tool = tools.Tool()
     self.file = None
     self.floor = 1
     self.defaultTitle = 'bdtb'
     self.floorTag = floorTag
示例#4
0
    def use_shield(self):
        ''' Called by user '''

        # Stops obstacles from doing damage and lessens knockback

        self.shielding = 20
        self.showShield = True
        self.shield = tools.Tool(self, "shield")
        self.level.entityList.add(self.shield)
示例#5
0
    def __init__(self):

        self.baseUrl = 'http://www.laifudao.com/wangwen/index_'
        self.baseUrl2 = '.htm'
        self.tool = tools.Tool()

        self.oldDatas = ''
        # 是否中断更新
        self.isClose = False
示例#6
0
    def __init__(self):

        self.baseUrl = 'http://www.laifudao.com/wangwen/index_'
        self.baseUrl2 = '.htm'
        self.tool = tools.Tool()
示例#7
0
    def __init__(self):

        self.baseUrl = 'http://m.budejie.com/pic/'
        self.tool = tools.Tool()
示例#8
0
 def __init__(self):
     self.tokenUrl = 'http://www.md5decrypt.org/'
     self.baseUrl = 'http://www.md5decrypt.org/index/process'
     self.tool = tools.Tool()
示例#9
0
 def __init__(self):
     self.baseUrl1 = 'http://q.10jqka.com.cn/index/index/board/all/field/zdf/order/desc/page/'
     self.baseUrl2 = '/ajax/1/'
     self.tool = tools.Tool()
示例#10
0
 def __init__(self):
     self.tokenUrl = 'http://www.md5.com.cn/'
     self.baseUrl = 'http://www.md5.com.cn/md5reverse'
     self.tool = tools.Tool()
示例#11
0
# ___#######__######_######_#########___######___
# ___#######____##__######___######_____######___
# ___#######________######____#####_____#####____
# ____######________#####_____#####_____####_____
# _____#####________####______#####_____###______
# ______#####______;###________###______#________
# ________##_______####________####______________ 
# ***********************************************
# ***********************************************

import numpy as np  
import sys,os  
import cv2

import tools
tool = tools.Tool()

province_change = [
        [u"京",'jing'], [u"沪",'hu'], [u"津",'jin'], [u"渝",'yu'], [u"冀",'jii'], [u"晋",'jinn'], 
        [u"蒙",'meng'], [u"辽",'liao'], [u"吉",'ji'], [u"黑",'hei'], [u"苏",'su'], [u"浙",'zhe'], 
        [u"皖",'wan'],  [u"闽",'min'], [u"赣",'gann'], [u"鲁",'lu'], [u"豫",'yuu'], [u"鄂",'e'], 
        [u"湘",'xiang'], [u"粤",'yue'], [u"桂",'gui'], [u"琼",'qiong'], [u"川",'chuan'], [u"贵",'guii'], 
        [u"云",'yun'], [u"藏",'zang'],[u"陕",'shan'], [u"甘",'gan'], [u"青",'qing'], [u"宁",'ning'], 
        [u"新",'xin'] ]

province_char = ['jing', 'hu','jin','yu','jii','jinn','meng','liao','ji','hei','su','zhe','wan','min','gann','lu','yuu','e',
        'xiang','yue','gui','qiong','chuan','guii','yun','zang','shan','gan','qing','ning','xin']

city_char = [u"A", u"B", u"C", u"D", u"E", u"F", u"G", u"H", u"J", u"K", u"L", u"M", u"N", u"P", u"Q", u"R", u"S",
        u"T", u"U", u"V", u"W", u"X", u"Y", u"Z"]
示例#12
0
 def __init__(self):
     self.baseUrl = 'http://cracker.blackbap.org/?do=search'
     self.tool = tools.Tool()
示例#13
0
 def __init__(self):
     self.baseUrl = 'http://pmd5.com/'
     self.tool = tools.Tool()
示例#14
0
 def __init__(self):
     self.baseUrl = 'http://md5decoder.org/'
     self.tool = tools.Tool()
示例#15
0
 def __init__(self):
     self.tokenUrl = 'http://md5.sssie.com/'
     self.baseUrl = 'http://md5.sssie.com/decode'
     self.tool = tools.Tool()
示例#16
0
 def __init__(self):
     self.baseUrl = 'http://md5.gromweb.com/?md5='
     self.tool = tools.Tool()
示例#17
0
 def __init__(self):
     self.baseUrl = 'http://hashtoolkit.com/reverse-hash?hash='
     self.tool = tools.Tool()
示例#18
0
 def __init__(self):
     self.baseUrl1 = 'http://basic.10jqka.com.cn/'
     self.baseUrl2 = '/position.html'
     self.tool = tools.Tool()
示例#19
0
 def __init__(self):
     self.siteURL = 'http://mm.taobao.com/json/request_top_list.htm'
     self.tool = tools.Tool()
示例#20
0
 def __init__(self):
     self.baseUrl = 'http://md5.navisec.it/search'
     self.tool = tools.Tool()
示例#21
0
 def __init__(self):
     self.baseUrl = 'http://md5db.net/view/'
     self.tool = tools.Tool()
示例#22
0
 def __init__(self):
     self.baseUrl = 'http://md5decrypt.net/en/'
     self.tool = tools.Tool()
示例#23
0
    def __init__(self):
        # Initializing gtk.DrawingArea superclass
        super(Canvas, self).__init__()
        # Resize Square Size
        self.RSS = 7
        # Margin (to draw shadows and resize squares)
        self.margin_size = 20
        # Registering events
        self.add_events(gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_RELEASE_MASK
                        | gtk.gdk.BUTTON1_MOTION_MASK | gtk.gdk.DRAG_MOTION
                        | gtk.gdk.POINTER_MOTION_MASK)
        self.connect("button-press-event", self.button_pressed)
        self.connect("button-release-event", self.button_released)
        self.connect("expose-event", self.expose)
        self.connect("motion-notify-event", self.motion_event)

        self.undo_buffer = UndoBuffer()
        self.modified = False

        self.set_size(550, 412)
        self.alpha_pattern = cairo.SurfacePattern(
            cairo.ImageSurface.create_from_png("GUI/alpha-pattern.png"))
        self.alpha_pattern.set_extend(cairo.EXTEND_REPEAT)

        self.bg_init = 0
        self.primary = RGBAColor(0, 0, 0, 1)
        self.secondary = RGBAColor(1, 1, 1, 1)

        self.figure_linewidth = 0
        self.figure_corner_radius = 0
        self.airbrush_width = 0
        self.fig_fill_type = 0

        self.set_selection(False)
        self.select_xp = None
        self.select_yp = None

        # Surface is the image in the canvas
        self.surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, self.width,
                                          self.height)
        #overlay is for selection boxes - etc
        self.overlay = cairo.ImageSurface(cairo.FORMAT_ARGB32, self.width,
                                          self.height)

        #clipboard
        self.clipboard = gtk.clipboard_get(selection="CLIPBOARD")

        # Shadows to distribute around canvas
        str = "GUI/bl-corner-shadow.png"
        self.BL_CORNER_SHADOW = cairo.ImageSurface.create_from_png(str)
        str = "GUI/tr-corner-shadow.png"
        self.TR_CORNER_SHADOW = cairo.ImageSurface.create_from_png(str)
        self.side_alpha_channels = [
            0.4, 0.39, 0.37, 0.32, 0.24, 0.16, 0.08, 0.04, 0.01
        ]

        self.toolchest = {
            "draw-rounded-rectangle": tools.RoundedRectangleTool(self),
            "draw-rectangle": tools.RectangleTool(self),
            "straight-line": tools.StraightLineTool(self),
            "pencil": tools.PencilTool(self),
            "paintbrush": tools.PaintbrushTool(self),
            "bucket-fill": tools.BucketFillTool(self),
            "eraser": tools.EraserTool(self),
            "draw-ellipse": tools.EllipseTool(self),
            "color-picker": tools.ColorPickerTool(self),
            "rect-select": tools.RectangleSelectTool(self),
            "airbrush": tools.AirBrushTool(self),
            "canvas-both-scale": tools.BothScalingTool(self),
            "canvas-hor-scale": tools.HorizontalScalingTool(self),
            "canvas-ver-scale": tools.VerticalScalingTool(self),
            "dummy_tool": tools.Tool(self)
        }

        self.active_tool = self.toolchest["dummy_tool"]
        self.previous_tool = self.active_tool  # Previous tool (to recover from a rescale)
示例#24
0
    def __init__(self):

        self.baseUrl = 'http://m.budejie.com/text/'
        self.tool = tools.Tool()

        self.oldDatas = ''
示例#25
0
 def __init__(self):
     self.baseUrl = 'http://md5decryption.com/'
     self.tool = tools.Tool()