Generated: Sun, 06 Nov 2016 16:33:11 GMT
Extensions: 28
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import Select, WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from time import sleep, strftime | |
def waituntil(s): | |
while strftime('%H:%M:%S') < s: | |
print strftime('%H:%M:%S') | |
sleep(1) |
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/' | |
} |
#SingleInstance force | |
#End::Volume_Mute | |
#PgUp::Volume_Up | |
#PgDn::Volume_Down | |
#!Up:: | |
#!Right:: | |
Run nircmd changebrightness +5 | |
Return |
from bs4 import BeautifulSoup | |
from itertools import count | |
import requests | |
url = 'http://alpha.wallhaven.cc/search?categories=101&sorting=favorites&order=desc&page=' | |
jpg = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.jpg' | |
png = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.png' | |
status = '\r[page {:0>3}] [image {:0>2}|24] [{:.<24}]'.format |
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!"; |
from contextlib import contextmanager | |
from sys import stderr | |
from timeit import default_timer as now | |
import atexit | |
@contextmanager | |
def timeit(s=''): | |
start = now() | |
yield | |
print >>stderr, '-- %06.3fs' % (now() - start), '|', s |
import collections | |
import socket | |
import threading | |
def worker(ipaddr): | |
try: | |
hostname = socket.gethostbyaddr(ipaddr)[0] | |
except socket.herror: | |
hostname = '--' |