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
(function() { | |
var intervalObj = null; | |
var retry = 0; | |
var clickHandler = function() { | |
console.log("Clicked; stopping autoscroll"); | |
clearInterval(intervalObj); | |
document.body.removeEventListener("click", clickHandler); | |
} | |
function scrollDown() { | |
var scrollHeight = document.body.scrollHeight, |
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
""" | |
Generic helpers Bismuth | |
""" | |
import re | |
import hashlib | |
import base64 | |
from decimal import Decimal | |
__version__ = '0.0.5' |
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 random | |
more0s = 0 | |
more1s = 0 | |
more0s_list = [] | |
more1s_list = [] | |
preset = [] | |
for x in range(10000): |
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
<html> | |
<body> | |
<form action="/login" method="post"> | |
Name: <input type="text" name="name"> | |
<input type="submit" value="Sign in"> | |
</form> | |
</body> | |
</html> |
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 requests | |
from datetime import date | |
import matplotlib.pyplot as plt | |
web = requests.get("https://nyzo.co/queue/all").text | |
reds = re.findall("#f88", web) | |
yellows = re.findall("#ff0", web) | |
whites = re.findall('style=""', web) |
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 subprocess | |
with open("links.txt") as infile: | |
lines = infile.readlines() | |
for line in lines: | |
filename = line.split("/")[-2] | |
command_line = f"youtube-dl {line} --verbose {filename}.mp4" | |
pipe = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE).stdout |
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
""" | |
Hypernode / Bismuth node update script. The script can be run in any directory. | |
""" | |
import os | |
import sys | |
import time | |
import glob | |
import tarfile | |
import requests |
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 os | |
import time | |
import tweepy | |
import logging | |
import glob | |
import json | |
import random | |
logging.basicConfig( | |
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s" |
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 threading import Thread | |
import threading | |
lock = threading.Lock() | |
import glob | |
import os.path | |
#import cookielib | |
import http.cookiejar | |
import re | |
import time |
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 Drak: | |
def __init__(self): | |
self.hp = 100 | |
class RybiKosik: | |
def __init__(self): | |
self.pocet = 0 | |
drak = Drak() | |
kosik = RybiKosik() |