This file contains 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 typing import List | |
from dataclasses import dataclass | |
from numbers import Number | |
@dataclass | |
class Liquid: | |
volume: int | |
mg_per_ml: Number |
This file contains 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 | |
from random import randint | |
from httpx import AsyncClient | |
async_client = AsyncClient() | |
async def handler(handler_id): | |
6452 ** randint(1, 10) | |
print(handler_id, 1) |
This file contains 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
Erin Sylis > Hello! | |
Erin Sylis > Are you interested in a session? Or just curious? | |
Kurgill > A session | |
Kurgill > I will pay you double your hours rate, 30 mins in to the session. Your topic is the sexualisation of processed meats. I will masturbate for the entire session, and eat dry crackers. | |
(We then debate pricing, and I offer 10m per 10 mins which he accepts, though I tipped too.) |
This file contains 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
// lol sup | |
#include <AccelStepper.h> | |
#include <AccelStepper.h> | |
// STEPPER INIT | |
AccelStepper quill_stepper(AccelStepper::DRIVER, 2, 3); | |
const int max_speed = 4000; |
This file contains 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
sum([(lambda x: x ** x)(i) for i in takewhile(lambda x: x != -1, (int(input("give thing")) for _ in repeat("lol fuk u python")))]) |
This file contains 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
{ | |
"five_w":[ | |
"flyer", | |
"gored", | |
"dandy", | |
"idiot", | |
"suing", | |
"hales", | |
"yowed", | |
"hands", |
This file contains 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 json | |
from random import sample | |
_ALL_WORDS = [] | |
with open("words.json", 'r') as word_file: | |
word_dict = json.load(word_file) | |
for key, word_list in word_dict.items(): | |
_ALL_WORDS.extend(word_list) |
This file contains 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 collections import deque | |
>>> | |
>>> def ldp(n, current=60): | |
... # largest_divisible_power | |
... s = 1 | |
... while n > current: | |
... current = current ** s | |
... s += 1 | |
... return s - 2 | |
... |
This file contains 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
'--8banana133744910kmmr13a56!102!2405\r\nContent-Disposition: form-data; name="file_1"; filename="test_file1.txt"; Content-Type: application/octet-stream\r\n\r\nCompooper\r\n--8banana133744910kmmr13a56!102!2405--\r\n' |
This file contains 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 LastLoopCacherNoFinal: | |
pass | |
class LastLoopCacher: | |
""" | |
An iterable context manager that stores the last value it loops as | |
an attribute, `final`. | |
Final falls out of scope upon exiting the context manager. |
NewerOlder