Skip to content

Instantly share code, notes, and snippets.

View kilomeow's full-sized avatar
💭
welcomeow

kilomeow kilomeow

💭
welcomeow
View GitHub Profile
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:
<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'
@kilomeow
kilomeow / pipe.py
Last active July 10, 2020 17:56
Easy dynamic pipes in python
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):
@kilomeow
kilomeow / resize.py
Created May 8, 2020 12:52
script for resizing images to the appropriate telegram stickers format
#!/usr/bin/python
from PIL import Image
import os, sys
basewidth = 512
def resize(path):
dirs = os.listdir(path)
for fn in dirs: