Generated: Sun, 06 Nov 2016 16:33:11 GMT
Extensions: 28
import re | |
import pyquery | |
import requests | |
embedlink_base = { | |
'adhqmedia': 'http://www.adhqmedia.com/files/embed/', | |
'likeafool': 'http://embed.likeafool.com/files/embed/', | |
'vidbaba': 'http://www.mycollection.net/new_files/embed/' | |
} |
Generated: Sun, 06 Nov 2016 16:33:11 GMT
Extensions: 28
# from logging import warning | |
from time import sleep | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions | |
@echo off & python -x %~f0 %* & goto :EOF | |
import os.path | |
import sys | |
import subprocess | |
PATH_PREFIXES = [r'C:\Python27', r'C:\Python27\Scripts', | |
r'C:\Python27\Library\bin', ''] | |
EXTENSIONS = ['.exe', '.cmd', '.bat'] |
#include <bits/stdc++.h> | |
#define _ ios::sync_with_stdio(0); cin.tie(0); | |
using namespace std; | |
struct print{bool space=false;~print(){cout<<'\n';}template<typename T>print&operator,(const T&var){if(space){cout<<' ';}else{space=true;}cout<<var;return*this;}}; | |
#define print print(), | |
int main() {_ | |
print 1, 2; | |
print "Hello World!"; |
import collections | |
import socket | |
import threading | |
def worker(ipaddr): | |
try: | |
hostname = socket.gethostbyaddr(ipaddr)[0] | |
except socket.herror: | |
hostname = '--' |
class JustAnotherClass(object): | |
_sentinel = object() | |
def __init__(self, value): | |
self.value = value | |
def consume1(self): | |
try: | |
return self.value |
import itertools | |
steps = itertools.cycle([(0, 1), (1, 0), (0, -1), (-1, 0)]) | |
step = next(steps) | |
def next_step(x, y): | |
global step | |
oldv = x, y | |
x, y = x + step[0], y + step[1] | |
if min(x, y) < 0 or max(x, y) >= N or mat[x][y]: |
import re | |
raw_input = lambda: ''.join(input().split()) | |
m = int(raw_input()) | |
n = int(raw_input()) | |
rows = [raw_input() for _ in range(m)] | |
cols = [''.join([rows[i][j] for i in range(m)]) for j in range(n)] | |
dgls = [''.join([rows[i][i - j] for i in range(j, min(m, n + j))]) for j in range(m)] | |
dgls.extend(''.join([rows[i][i + j] for i in range(min(m, n - j))]) for j in range(1, n)) |
from threading import Thread | |
from tkinter import Tk | |
from tkinter.ttk import Progressbar | |
from queue import Queue | |
class ProgressDialog(object): | |
def __init__(self, name, maximum): | |
self._dialog = Tk() |