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 asyncio | |
import logging | |
import sys | |
import random | |
from aiogram import Bot, Dispatcher, types | |
from aiogram.enums import ParseMode | |
from aiogram.filters import CommandStart | |
from aiogram.types import Message | |
TOKEN = "7:IA" |
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 sys | |
sys.set_int_max_str_digits(100000) | |
def square(number, amount_of_digits=100): | |
s = 1 | |
approximate = 0 | |
for i in range(amount_of_digits): | |
for z in range(1,number*10): | |
apr10 = approximate*10 | |
if (apr10+z)**2 > number * 10**((s-1)*2): | |
approximate = apr10 + z-1 |
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
# requires: openai python-dotenv aiogram==3.0.0b6 | |
import os | |
import openai | |
import logging | |
import traceback | |
from aiogram import Bot, Dispatcher, types | |
from aiogram.filters import Command | |
from aiogram.types import Message | |
import asyncio | |
from dotenv import load_dotenv, find_dotenv |
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 decode(str){ | |
let splitter = "[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![] |
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
async function handleRequest(request) { | |
if (!(request.method === "POST")) return new Response("OK") | |
const payload = await request.json() | |
// Getting the POST request JSON payload | |
if (!('inline_query' in payload)) return new Response("OK") | |
const i_d = payload.inline_query.id | |
let resp = new Response(JSON.stringify({ | |
"method": "answerInlineQuery", | |
"inline_query_id": i_d, | |
"results": JSON.stringify([{ |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
/* | |
* input: | |
* <size of table> | |
* <start point (from 1 to size) | |
* <end point (from 1 to size)> | |
* <value if you SHOULD drive there (from 1 to size) else 0> |
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
const Telegraf = require('telegraf'); | |
const youtubedl = require('youtube-dl-exec') | |
const bot = new Telegraf.Telegraf(process.env.BOT_TOKEN); | |
const fs = require('fs'); | |
const path = require('path'); | |
const findMyFile = (fileName) => { | |
const extensions = ['mp4', 'mkv', 'webm', 'unknown_video']; | |
for(const extension of extensions) { | |
const path1 = path.resolve(process.cwd(), `${fileName}.${extension}`); | |
if (fs.existsSync(path1)) { |