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 win32serviceutil | |
| import win32service | |
| import win32event | |
| import servicemanager | |
| # import signal | |
| # import os | |
| from multiprocessing import Process | |
| from main import app | |
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 re | |
| import csv | |
| import sys | |
| import requests | |
| from requests.exceptions import RequestException | |
| import threading | |
| from subprocess import call | |
| from bs4 import BeautifulSoup | |
| from html.parser import HTMLParseError | |
| from urllib.parse import urljoin |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>WinImage 9.0 KeyGen</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body style="text-align: center;"> | |
| <h1>WinImage 9.0 KeyGen</h1> |
function Class() {}actually
Class.prototype = new Object();
Class.prototype.constructor = Class;
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
| /** | |
| * Format number | |
| * | |
| * (1234567.8).format(2) | |
| * => "1,234,567.80" | |
| * | |
| * precision: decimal precision | |
| */ | |
| // Method 0 (http://stackoverflow.com/a/14428340/1877620) |
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
| -- This will replace the other fields to default value | |
| INSERT OR REPLACE INTO book(id, name) VALUES(1001, 'Programming'); | |
| -- INSERT OR UPDATE (Method 1) | |
| INSERT OR IGNORE INTO book(id) VALUES(1001); | |
| UPDATE book SET name = 'Programming'; | |
| -- INSERT OR UPDATE (Method 2) | |
| INSERT OR REPLACE INTO book (id, name) | |
| VALUES (1001, 'Programming', |
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 flask import Flask | |
| from werkzeug.routing import BaseConverter | |
| app = Flask(__name__) | |
| class RegExConverter(BaseConverter): | |
| def __init__(self, map, regex='[^/]+'): | |
| super().__init__(map) | |
| self.regex = regex |
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
| class Base(object): | |
| def __init__(self, c): | |
| print('Base called by {0}'.format(c)) | |
| super().__init__() | |
| class ParentA(Base): | |
| def __init__(self, c): | |
| print('ParentA called by {0}'.format(c)) | |
| #Base.__init__(self, 'ParentA') | |
| super().__init__('ParentA') |