Search results

  1. fukurou

    🐍 python FU money calculator

    import math def survival_years(total, monthly_spend, annual_return=0.05): """ Returns how many years you can survive. If survival is infinite, returns -1. """ yearly_spend = monthly_spend * 12 # No growth case if annual_return == 0: return total /...
  2. fukurou

    🐍 python polinators

    # Simple pronoun resolver using history import re PRONOUNS = re.compile(r'\b(it|they|them|that|this|its|their)\b', re.I) def last_entity(history: list[dict]) -> str | None: """Walk backwards through history, return last user noun phrase.""" noun =...
  3. fukurou

    🐍 python upgraded spit xp farm skill for chatbot gamification

    class DiEmoV2(Skill): def __init__(self): super().__init__() self.xp = 0 self.reseter: TrgEveryNMinutes = TrgEveryNMinutes(10) self.lim = 3 self.no_mood: Responder = Responder("bored", "meh", "neutral") self.yes_mood: Responder =...
  4. fukurou

    shondo boredom handler

    class DiBoredHandler(Skill): def __init__(self): super().__init__() self.activity: Responder = Responder( # --- Yoga poses: specific + general (NO child pose) --- "H-hey! Do a tree pose, okay? Balance like a fancy lil show‑off, OwO."...
  5. fukurou

    core update algpart name setter

    class AlgPart: def __init__(self): self._custom_name = None def setName(self, name: str): self._custom_name = name def myName(self): return self._custom_name or self.__class__.__name__
  6. fukurou

    👨‍💻 dev vrm

    import asyncio import threading import json import websockets from flask import Flask, send_from_directory import os from Skill import Skill class DiVrmController(Skill): def __init__(self): super().__init__() self.set_skill_type(1) # regular skill...
  7. fukurou

    🐍 python STT upgrade for cases of long output

    def input(self, ear: str, skin: str, eye: str): """ Read latest transcription from global var """ if len(self.brain.getLogicChobitOutput()) > 0: self.speaking = True print("Skipping listen") return # print("\nSpeak now")...
  8. fukurou

    👨‍💻 dev sex talk skill stub

    class DiAffirmations(Skill): # plays start up sound and removes skill def __init__(self): super().__init__() self.replacers: dict[str,DrawRnd] = {"relaxingthing": DrawRnd("drink tea", "play video game", "watch anime")} self.affirmations: Responder =...
  9. fukurou

    👨‍💻 dev local search engine

    pip install beautifulsoup4 requests crawler import requests from bs4 import BeautifulSoup from urllib.parse import urljoin, urlparse def crawl(start_url, max_pages=50): visited = set() to_visit = [start_url] index = {} # url -> text while to_visit and len(visited) <...
  10. fukurou

    🐍 python sequence matcher

    from difflib import SequenceMatcher from typing import Tuple, List def similarity(a: str, b: str) -> int: """ Intent similarity scoring. Returns integer between 0 and 100. 0 = completely different. 100 = identical. """ # The pathetic float that actually works...
  11. fukurou

    👨‍💻 dev shondo

    import os import pygame import threading from fishaudio import FishAudio from fishaudio.utils import save from DLC.skills_monitor import DiInstaller from LivinGrimoirePacket.AXPython import DrawRnd from LivinGrimoirePacket.LivinGrimoire import Skill, Brain from LivinGrimoirePacket.UniqueSkills...
  12. fukurou

    test pragmata

    :d1:
  13. fukurou

    vtuber test code

    pip install live2d-py pygame import pygame import live2d.v3 as live2d from live2d.utils import log import sys # הגדרות מסך SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600 def main(): pygame.init() pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), pygame.OPENGL | pygame.DOUBLEBUF)...
  14. fukurou

    👨‍💻 dev VU meter

    import sounddevice as sd import numpy as np import threading import time class LoudDetector: # Global static variable is_loud = False def __init__(self, threshold=0.35, cooldown=0.5): self.threshold = threshold self.cooldown = cooldown self._thread = None...
  15. fukurou

    👨‍💻 dev pet animation

    🧩 GOAL A desktop pet / VTuber window that: floats on the desktop animates (idle, blink, talk) stays always‑on‑top runs at 60 FPS never blocks your main program communicates with your main logic (e.g., “talk”, “blink”, “angry”, “idle”) This is the same pattern used by commercial VTuber...
  16. fukurou

    alarm skill update

    old ver: class DiAlarmer(Skill): def __init__(self): super().__init__() self.off: Responder = Responder("shut up", "stop") self._cron: Cron = Cron("", 3, 3) self.msg_extra: str = "" self.default_alarm: str = "beep beep beep" self._alarm_armed...
  17. fukurou

    sequence matcher

    from difflib import SequenceMatcher def similarity(a, b): return SequenceMatcher(None, a, b).ratio()
  18. fukurou

    👨‍💻 dev they said LLMs can't use stopper timers, I will add the feature to my superior AI between jizzings

    import time class Timer: """ A simple timer class for tracking elapsed time. Supports start, pause, resume, reset, and formatted output. """ def __init__(self): """Initialize a new timer. Not started by default.""" self._start_time = None...
  19. fukurou

    👨‍💻 dev lobe 6 redev

    class Pipe: def __init__(self): self.nulify: bool = False def nulify(self): self.nulify = True def is_nullified(self): temp = self.nulify self.nulify = False return temp def input(self, ear: str, skin: str, eye: str, stave:str)->str...
  20. fukurou

    🐍 python aeye reborn

    import threading import time from typing import List, Tuple, Optional import cv2 import numpy as np # ----------------------------------------- # RECTANGLE CLASS (IMAGE COORDS) # ----------------------------------------- class Rectangle: def __init__(self, x1: int, y1: int, x2: int, y2...
Top