This file contains 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
#!/usr/bin/python | |
from PIL import Image | |
import os, sys | |
basewidth = 512 | |
def resize(path): | |
dirs = os.listdir(path) | |
for fn in dirs: |
This file contains 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 PipeType: | |
def __init__(self, funcs=[]): | |
self.chain = funcs | |
def copy(self): | |
newpipe = type(self)() | |
newpipe.chain = self.chain[:] | |
return newpipe | |
def __rshift__(self, func): |
This file contains 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
<div id="adult-confirm"> | |
<div class="blackout"></div> | |
<div class="popup"> | |
<p>Нажимая на кнопку я подтверждаю что достиг_ла совершеннолетнего возраста</p> | |
<button onclick="adultConfirm()">Подтверждаю</button> | |
</div> | |
</div> | |
<script> | |
const adultConfirm = () => document.getElementById('adult-confirm').style.display = 'none' |
This file contains 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 requests | |
target = "/modules.php?name=terr" | |
pgnum = "&pagenum=" | |
userAgent = 'Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20101129 Firefox/36.0' | |
def cutNumber(s): | |
n = "" | |
for c in s: |