Search results

  1. 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...
  2. 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...
  3. 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...
  4. fukurou

    sequence matcher

    from difflib import SequenceMatcher def similarity(a, b): return SequenceMatcher(None, a, b).ratio()
  5. 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...
  6. 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...
  7. 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...
  8. fukurou

    image recog

    pip install torch torchvision pillow Create a new file Create image_recog_threaded.py. import threading import time import torch from torchvision import models, transforms from PIL import Image import cv2 # ----------------------------- # GLOBAL STATIC RESULT VARIABLE #...
  9. fukurou

    railpunk skill

    class DiRailPunk(Skill): # this skill swaps between two sets of contradicting skills def __init__(self): super().__init__() self.set_skill_type(3) # backgroundable skill self.trg: TrgHP = TrgHP() self.lim = 2 self.r1: Responder = Responder("wink"...
  10. fukurou

    🐍 python sarcophagus

    class Sarcophagus: def __init__(self): """Initialize the sarcophagus with an empty set of shielded items.""" self._shielded_items: set[str] = set() @property def shielded_items(self) -> set[str]: """Return a copy of the shielded items set (read-only access).""" return...
  11. fukurou

    🐍 python hp convo trigger

    class TrgHP: def __init__(self, low: int=-10, high: int=10, regen: int=5): self.hp = 4 self.low = low self.high = high self.regen: TrgEveryNMinutes = TrgEveryNMinutes(regen) self.hit: set[str] = {"shut up", "quiet", "be quiet", "silence"} def...
  12. fukurou

    👨‍💻 dev hawk tuah skill

    fruits = ["apple", "banana", "orange", "grape", "mango"] vegetables = ["carrot", "tomato", "cucumber", "onion", "pepper"] def contains_fruit_and_vegi(text: str) -> bool: text = text.lower() has_fruit = any(f in text for f in fruits) has_vegi = any(v in text for v in vegetables)...
  13. fukurou

    👨‍💻 dev automata

    def greet(): print("Hello!") def farewell(): print("Goodbye!") def add(a, b): print(a + b) # Dictionary mapping int → function actions = { 1: greet, 2: farewell, 3: lambda: add(5, 7), # using a lambda wrapper } # Using the dictionary actions[1]() # calls greet()...
  14. fukurou

    🐍 python once per hour

    from datetime import datetime class EveningGate: def __init__(self): self._triggered_today = False self._current_day = None def trigger(self): now = datetime.now() today = now.date() if self._current_day != today...
  15. fukurou

    AlgRelay

    class AlgRelay: def __init__(self): super().__init__() self.dic: dict[str, int] = {} # code 1: next mode # code 2: goal achieved # code 3: error/failure # code 4: empty str # code 5: any other str def add_next_mode(self, *keys: str) -> None: for key in keys...
  16. fukurou

    power rangers battle for the greed combos

    grn ranger: ## 🟢 Green Ranger – Simple, Real Combos (Switch Buttons Only) ### 🔹 **Basic Combo (works from almost any hit)** - **Y → X → A → B** - Dash (**Y+X**) - **X → Down+X → Down+A** - Jump → **Y → X → A** - End with **B** or **A+B** --- ### 🔹 **Mid‑Range Fireball Confirm** - **B** -...
  17. fukurou

    👨‍💻 dev soul killer

    # create_hello_file.py code = """ class HelloWorld: def hello(self): print("Hello, world!") """ with open("hello_world.py", "w") as f: f.write(code) print("hello_world.py created!")
  18. fukurou

    unitree walkthroughs

    ## 🟦 1. Connect your laptop to the robot over Wi‑Fi This part is easy: - Turn on the robot. - On the robot’s screen, find the **Wi‑Fi settings**. - Connect the robot to your home Wi‑Fi (or hotspot). - On your laptop, connect to the **same Wi‑Fi network**. Now both devices are on the same...
  19. fukurou

    railpunk digivolution

    import time def hourly(): h = time.localtime().tm_hour if hourly.last != h: hourly.last = h return True return False hourly.last = None
Top