import time
from datetime import datetime
from typing import Any, Literal, Callable
class Fripe(Student):
def __init__(self, name: Literal["Fripe", "froop"] = "Fripe") -> None:
self.name = name
self.born_at = datetime.min
self.skills = []
def do_work(
self,
work: Callable,
/,
time_limit_seconds: int = -1,
*work_args: Any,
**work_kvargs: Any,
) -> Any:
if time_limit_seconds == -1:
return
portion_to_use_for_work = 1 / 4
self.procastinate(max(0, time_limit_seconds) * 1/portion_to_use_for_work)
return work(*work_args, **work_kvargs)
def procastinate(self, seconds: int, /) -> None:
time.sleep(seconds)
Block or Report
Block or report Fripe070
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePopular repositories Loading
-
Stable-Diffusion-WebUI-Colab
Stable-Diffusion-WebUI-Colab Public archiveA colab for AUTOMATIC1111's stable diffusion web UI
Jupyter Notebook 1
-
-
ThonkMod
ThonkMod PublicForked from sjalkote/ThonkMod
A repository for learning to mod Minecraft with the Forge MDK.
Java
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.