Skip to content

Instantly share code, notes, and snippets.

View thewasta's full-sized avatar
🎯
Focusing

Schenier Lopez thewasta

🎯
Focusing
View GitHub Profile
@painor
painor / FastTelethon.py
Last active October 14, 2024 08:25
This will increase the download/upload speed when using telethon
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py
# Copyright (C) 2021 Tulir Asokan
import asyncio
import hashlib
import inspect
import logging
import math
import os
from collections import defaultdict
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO
@thewasta
thewasta / Function Select From DB
Last active December 10, 2018 00:27
Select from DB with a condicional WHERE
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 06/12/18
* Time: 0:53
*
*/
function select($tabla,$datos=null, $item=null){