Skip to content

Instantly share code, notes, and snippets.

View talhatugsat's full-sized avatar

Talha Tugsat talhatugsat

View GitHub Profile
@talhatugsat
talhatugsat / main.py
Created April 21, 2022 19:39
http modules speed test (asyncio code: keyiflerolsun)
from rich import print
from time import time
from contextlib import suppress
from requests.exceptions import ConnectionError
import requests
from parsel import Selector
from time import sleep
import threading
from threading import enumerate as threads
from httpx import AsyncClient as Session
@talhatugsat
talhatugsat / serhat.txt
Created April 16, 2022 17:09
serhatlink
https://aka.ms/vs/17/release/vc_redist.x64.exe
@talhatugsat
talhatugsat / index.py
Created March 23, 2022 02:16
Mix String
import random
def mixString(strs: dict) -> str:
random.shuffle(strs)
mixed = ""
for str in strs:
mixed = mixed + str + " "
return mixed
print(mixString(["deneme", "mahalle", "ali", "veli"]))
@talhatugsat
talhatugsat / hesapla.py
Last active January 1, 2022 16:32
python ile üçgen çeşiti hesaplar
kenar1 = int(input("1. Kenar uzunluğu: "))
kenar2 = int(input("2. Kenar uzunluğu: "))
kenar3 = int(input("3. Kenar uzunluğu: "))
sayilar = [kenar1, kenar2, kenar3]
kenar = 0
for i, v in enumerate(sayilar):
for index, sayi in enumerate(sayilar):
if i != index and v == sayi:
kenar = kenar + 1