Search results

  1. fukurou

    🐍 python ultimate trg

    import re def extract_code_number(s): match = re.fullmatch(r"code (\d+)", s) if match: return int(match.group(1)) return -1 # Examples print(extract_code_number("code 123")) # Output: 123 print(extract_code_number("hello world")) # Output: -1...
  2. fukurou

    jpoijdg;'sjkdf

    ;lgkhbsl;dfkg sdfgkdl;fgjk;ldfmglaSSEAIKWQEOPRIKFSDPO,VL;XCFG AESRFFSDLFJSD;LFjdsf ;ld fsj;ls d;slfj s;ldfkjs;ld kd asl;dk;lsadfkiodrfjghoiajdkfopqwejtl;sdfkm sdkpklfjkkl;sdkjflp;skdfpl;;kasd[polfksdfropgkikopdfgjghkldfmvkldfmfg fsdolgajakl;dfgmjkladfg aG ADFKG JASDFG GHKAD...
  3. fukurou

    LDAR mega thread

  4. fukurou

    🐍 python has attribute

    class Example: def __init__(self): self.some_attr = 42 obj = Example() # Check if 'some_attr' exists as an attribute in obj print(hasattr(obj, 'some_attr')) # Output: True this could be nice for the add skill aware brain method. @owly shieet and asses if hasattr(obj...
  5. fukurou

    doc string maxing

    In Python, docstrings can be used in methods just like functions, but they belong to a **class** and describe how the method works within that class. ### Example: ```python class Calculator: """A simple calculator class.""" def add(self, a, b): """ Adds two numbers and...
  6. fukurou

    👨‍💻 dev loop jizz up

    import asyncio async def input_loop(): while True: print("Waiting for input...") await asyncio.sleep(2) # Pauses but allows other async tasks print("Loop continues...") asyncio.run(input_loop())
  7. fukurou

    👨‍💻 dev burp

    import os from pygame import mixer class UltraVoiceSkill(Skill): def __init__(self): super().__init__() self.voices_folder = os.path.abspath("voices") self._safe_chars = set("abcdefghijklmnopqrstuvwxyz0123456789 _-") # Allowed chars mixer.init() def...
  8. fukurou

    nappy code

    import time class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 19:00 = 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._last_reminder_time = 0 self._max_attempts = 3 # Avoid infinite...
  9. fukurou

    shut off skill

    import sys print("I'm outta here!") sys.exit()
  10. fukurou

    👨‍💻 dev lambda skill experiment

    def process_text(text): text = text.strip() # Remove whitespace text = text.upper() # Convert to uppercase return f"Processed: {text}" result = apply_function(process_text, " hello world ") print(result) # Output: "Processed: HELLO WORLD"
  11. fukurou

    👨‍💻 dev F sharp port

    module AbsDictionaryDB // Define the AbsDictionaryDB class type AbsDictionaryDB() = member val Save: string -> string -> unit = fun _ _ -> printfn "Default Save method" with get, set member val Load: string -> string = fun _ -> "null" with get, set // Declare an object outside the...
  12. fukurou

    cts ports

    public void addContinuousSkill(Skill skill) { if (this.isThinking) { return; } skill.setKokoro(this.kokoro); this.cts_skills.add(skill); } public void clearContinuousSkills() { if (this.isThinking) { return; } this.cts_skills.clear(); } public void...
  13. fukurou

    new STT code

    cmd winget install ffmpeg check if it installed ok: ffmpeg -version in python terminal: pip install openai-whisper pyaudio numpy wave you may also need: pip install openai-whisper pyaudio numpy pip install pipwin pipwin install pyaudio import whisper import pyaudio import numpy as np import...
  14. fukurou

    deepseek n shit

    def _async_func(this_cls): input_text = this_cls.input_text data = { "model": "deepseek-chat", "messages": [{"role": "user", "content": input_text}], "max_tokens": 50 # Limit response length } try: response = this_cls.call_deepseek_api(data)...
  15. fukurou

    cpp port

    .h #ifndef ALGORITHM_H #define ALGORITHM_H #include <vector> class Algorithm { private: std::vector<void*> algParts; // Using void* to avoid details about Mutatable public: // Constructors Algorithm(const std::vector<void*>& parts); Algorithm(const void* parts[], size_t...
  16. fukurou

    F# core

    the F stands 4 fuck module AbsDictionaryDB open System.Collections.Generic type DictionaryDB(saveFunc, loadFunc) = let db = Dictionary<string, string>() member _.Save key value = saveFunc db key value member _.Load key = loadFunc db key // Example save/load logic let defaultSave...
  17. fukurou

    👨‍💻 dev cpp port

    .h #ifndef ABSDICTIONARYDB_H #define ABSDICTIONARYDB_H #include <string> class AbsDictionaryDB { public: void save(const std::string& key, const std::string& value); std::string load(const std::string& key); }; #endif // ABSDICTIONARYDB_H .cpp: #include "AbsDictionaryDB.h" void...
  18. fukurou

    core upgrade

    coding lab online! deploying check point!! public class Brain { public Chobits logicChobit = new Chobits(); private String emotion = ""; private String bodyInfo = ""; private String logicChobitOutput = ""; public Chobits hardwareChobit = new Chobits(); public Chobits ear...
  19. fukurou

    call tracer

    public class MetadataReader { public void readMetadata() { // Get the stack trace StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); // The third element in the stack trace represents the caller StackTraceElement caller = stackTrace[2]...
  20. fukurou

    perchance flux dev

    import java.util.HashSet; public class KeyWords { private HashSet<String> hashSet; // Constructor to initialize the hashSet public KeyWords() { this.hashSet = new HashSet<>(); } // Method to add keywords to the hashSet public void addKeyword(String keyword) {...
Top