Recent content by fukurou

  1. fukurou

    LDAR mega thread

  2. fukurou

    LDAR mega thread

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

    [MEDIA]

  5. fukurou

    [MEDIA]

  6. fukurou

    [MEDIA]

  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. fukurou

    👨‍💻 dev loop jizz up

    import asyncio from livingrimoire import Brain, DiHelloWorld, DiSysOut async def main_loop(): brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) while True: user_input = input("> ") # Get user input if...
  13. fukurou

    👨‍💻 dev loop jizz up

    import time from livingrimoire import Brain, DiHelloWorld, DiSysOut if __name__ == '__main__': brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) while True: user_input = input("> ") if...
  14. 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())
  15. fukurou

    [MEDIA]

Top