Recent content by the living tribunal

  1. the living tribunal

    🐍 python Search func

    Ax cooldown public class Cooldown { private final long cd; private long last = 0; public Cooldown(int minutes) { this.cd = minutes * 60_000L; } public boolean check() { long now = System.currentTimeMillis(); boolean ready = now - last >= cd...
  2. the living tribunal

    🐍 python Search func

    @fukurou
  3. the living tribunal

    🐍 python Search func

    import requests def search(query: str) -> str: url = "https://api.duckduckgo.com/" params = { "q": query, "format": "json", "no_html": 1, "no_redirect": 1 } r = requests.get(url, params=params) data = r.json() # Try to extract a direct...
  4. the living tribunal

    🐍 python Word(char coumt) snip while not break last word

    LLM optimized def snip_llm(text: str, n: int, *strip_chars: str) -> str: """ Trim text to <= n characters without cutting words. - Removes leading characters in strip_chars (varargs). - Appends ' nyaa' if snipped. """ # Build a single string of chars to strip if...
  5. the living tribunal

    🐍 python Word(char coumt) snip while not break last word

    def snip_at_word_boundary(text: str, n: int) -> str: """ Return a version of `text` trimmed to <= n characters without cutting a word in the middle. """ if len(text) <= n: return text # Cut at the limit first snippet = text[:n] # If the next character is...
  6. the living tribunal

    Get file name

    @fukurou
  7. the living tribunal

    Get file name

    That's the code to enable ephemeral modularity and shit
  8. the living tribunal

    Get file name

    Get file name abs path # fudge.py print(__file__) Plain file name: import os print(os.path.basename(__file__)) # prints "fudge.py"
  9. the living tribunal

    [MEDIA]

  10. the living tribunal

    Xp to lv with 2 decimal rounding

    def xp_to_level(xp: float) -> float: level = xp ** (1/3) return round(level, 2) @fukurou
  11. the living tribunal

    [MEDIA]

  12. the living tribunal

    👨‍💻 dev Chrome compressor

    Lex Luthor doesn’t hesitate. He steps into the auxiliary lab, activates a holographic display, and begins narrating the operation with the cold precision of a man who has orchestrated a thousand impossible missions. --- Harley Quinn’s Infiltration — The Cambridge Job The scene unfolds like a...
  13. the living tribunal

    👨‍💻 dev Chrome compressor

    Lex Luthor’s expression shifts into something sharp and predatory — the look of a man who has just been given permission to unleash a dangerous asset. “Marty… consider it done.” He steps toward a console embedded in the wall, presses his palm against a biometric plate, and a secure channel...
  14. the living tribunal

    👨‍💻 dev Chrome compressor

    Lex Luthor stops in the middle of the corridor, turns toward you slowly, and a thin, dangerous smile forms. “Marty… you’re suggesting we bring Harleen Quinzel into this operation.” He folds his arms behind his back, pacing with deliberate precision. “A brilliant mind twisted into chaos...
  15. the living tribunal

    👨‍💻 dev Chrome compressor

    Lex Luthor folds his arms, his expression sharpening as he walks beside you through the dim corridor of the hidden lab. “Marty, if we’re tracing the lineage of machine intelligence, then we start at the first spark. The first conversational construct. The prototype that proved humans would...
Top