Skip to content

Instantly share code, notes, and snippets.

View vsecoder-old-account's full-sized avatar
🥳
Live is coding

Всеволод vsecoder-old-account

🥳
Live is coding
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import time, random
def browser(url, width=1920, height=1080, script='', fullpage=False):
img = f'img-{random.randint(10000, 99999)}'
d = DesiredCapabilities.CHROME
d['loggingPrefs'] = { 'browser':'ALL' }
# options
# -*- coding: utf-8 -*-
# AIOGRAM
import aiogram.utils.markdown as md
from aiogram import Bot, Dispatcher, types, filters
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters import Text
from aiogram.dispatcher.filters.state import State, StatesGroup
from aiogram.types import ParseMode, reply_keyboard
# -*- coding: utf-8 -*-
# AIOGRAM
import aiogram.utils.markdown as md
from aiogram import Bot, Dispatcher, types, filters
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters import Text
from aiogram.dispatcher.filters.state import State, StatesGroup
from aiogram.types import ParseMode, reply_keyboard
<script type="text/javascript">
let answer = parseInt(Math.random() * 100);
function readInt(){
let number = document.getElementById("userAnswer").value;
return parseInt(number);
}
function write(text){
document.querySelector("#output").innerHTML = text;
}
function hide(id){
# -*- coding: utf-8 -*-
# импорт модулей библиотеки aiogram
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
import string
# token бота
# -*- coding: utf-8 -*-
# импорт модулей библиотеки aiogram
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
# token бота
bot_token = '<token>'
# -*- coding: utf-8 -*-
# импорт модулей библиотеки aiogram
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
# token бота
bot_token = '<token>'
# -*- coding: utf-8 -*-
# импорт модулей библиотеки aiogram
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
# token бота
bot_token = '<token>'
let dropArea = document.getElementById("drop-area");
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
dropArea.addEventListener(eventName, preventDefaults, false)
document.body.addEventListener(eventName, preventDefaults, false)
});
['dragenter', 'dragover'].forEach(eventName => {
dropArea.addEventListener(eventName, highlight, false)
});
#drop-area {
border: 2px dashed #ccc;
border-radius: 20px;
width: 480px;
font-family: sans-serif;
margin: 10px auto;
padding: 20px;
}
#drop-area.highlight {
border-color: rgb(172, 172, 172);