Search results

  1. fukurou

    🐍 python ultimate trg

    import re class CodeParser: @staticmethod def extract_code_number(s): match = re.fullmatch(r"code (\d+)", s) if match: return int(match.group(1)) return -1 # Usage print(CodeParser.extract_code_number("code 456")) # Output: 456...
  2. 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...
  3. fukurou

    [MEDIA]

  4. fukurou

    [MEDIA]

  5. fukurou

    [MEDIA]

  6. 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...
  7. fukurou

    LDAR mega thread

  8. fukurou

    reality breaker port

    def get_fused_skills(self): """ Returns a fusion list containing both dClasses (regular skills) and cts_skills (continuous skills). """ return self.dClasses + self.cts_skills
  9. fukurou

    reality breaker port

    fuck you owl fuck! I'm launching the IDEs shiiiiiiiiiiiiiiiiieeet!
  10. fukurou

    LDAR mega thread

  11. fukurou

    LDAR mega thread

  12. 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...
  13. fukurou

    [MEDIA]

  14. fukurou

    [MEDIA]

  15. fukurou

    [MEDIA]

  16. fukurou

    doc string maxing

    Docstrings are used to document Python methods, and when defining methods inside a class, they can also include **parameters** to explain what inputs a method expects. ### **1. Basic Docstring for a Method** A method inside a class can have a docstring to describe what it does: ```python class...
  17. fukurou

    doc string maxing

    How Docstrings Appear in PyCharm: Autocomplete Popup: When you type the name of a method and open parentheses (Calculator.add(), PyCharm may show a tooltip displaying the method signature along with its docstring. Quick Documentation: Press Ctrl+Q (Windows/Linux) or F1 (Mac) while hovering over...
  18. 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...
  19. fukurou

    👨‍💻 dev loop jizz up

    import sched import time from livingrimoire import Brain, DiHelloWorld, DiSysOut def tick(scheduler): """Runs at intervals without blocking.""" user_input = input("> ") if user_input.lower() == "exit": print("Exiting program...") return # Stop scheduling...
  20. fukurou

    👨‍💻 dev loop jizz up

    import sched import time from livingrimoire import Brain, DiHelloWorld, DiSysOut scheduler = sched.scheduler(time.time, time.sleep) brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) def tick(): """Runs at intervals without...
Top