Skip to content
View Fripe070's full-sized avatar
  • School
  • Jupiter
  • 06:45 (UTC +02:00)

Highlights

  • Pro

Organizations

@Breadcord @Breadcord-Toasts

Block or report Fripe070

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Fripe070/README.md
import datetime
import random
import time
from typing import Any, Literal, Callable, override
from universal import Student

class Fripe(Student, stage="Gymnasium"): # Equiv to HS in other countries
    def __init__(
        self, 
        name: Literal["Fripe", "froop"] = "Fripe",
    ) -> None:
        self.name = name
        self.born_at = float("NaN")
        self.interests = [
            "Programming",
            "Procedural art",
            "3D rendering"
            "Vocaloid",
            "Minecraft",
            "Testing in prod",
            "Game development",
        ]
        self.skills = random.choices(
            self.interests, 
            k=len(self.interests) - (len(self.interests) // 3) # TODO: Improve on this
        )
        self.knowledge: list[Any] = []

    @override
    def do_work(
        self,
        work: Callable[..., Any],
        /,
        due_at: datetime.datetime | None = None,
        *work_args: Any,
        **work_kvargs: Any,
    ) -> Any:
        if due_at is None:
            return
        time.sleep(max(
            0, 
            (due_at - datetime.timedelta(hours=1) - datetime.datetime.now()).total_seconds(),
        ))
        return work(*work_args, **work_kvargs)

    def __call__(self, *args) -> None:
        if random.random() < 0.85:
            self.knowledge.append(args)
        return "uh huh"

Pinned Loading

  1. LowLevelGame2 LowLevelGame2 Public

    C++ 4 1

  2. Fripe070.github.io Fripe070.github.io Public

    Astro

  3. tab-nine tab-nine Public

    Forked from the-wright-jamie/tab-nine

    TypeScript