Search results

  1. fukurou

    deepseek API

    import requests def deepseek_chat(api_key, user_message): url = "https://api.deepseek.com/chat/completions" headers = { "Content-Type": "application/json", "Authorization": f"Bearer {api_key}" } data = { "model": "deepseek-chat", "messages": [...
  2. fukurou

    stand by mode dev

    class AXStandBy: def __init__(self, pause: int): self._tg:TimeGate = TimeGate(pause) def standBy(self, ear: str) -> bool: # only returns true after pause minutes of no input if len(ear) > 0: # restart count self._tg.openForPauseMinutes()...
  3. fukurou

    DiSpiderSense

    import java.util.Scanner; public class SpiderSenseDemo { public static void main(String[] args) { SpiderSense spiderSense = new SpiderSense(); Scanner scanner = new Scanner(System.in); while (true) { System.out.print("Enter an event: ")...
  4. fukurou

    👨‍💻 dev diinsulted

    def count_occurrences(lst, element): return lst.count(element) # Example usage: my_list = [1, 2, 3, 2, 4, 2, 5] element_to_count = 2 count = count_occurrences(my_list, element_to_count) print(f"The element {element_to_count} appears {count} times in the list.")
  5. fukurou

    jizz board

    class YourClass: def __init__(self, ur: UniqueResponder, *args): self._dic = {arg: ur for arg in args} def add_items(self, ur: UniqueResponder, *args): for arg in args: self._dic[arg] = ur
  6. fukurou

    👨‍💻 dev AXContains

    from typing import Set def contains_element(my_set: Set[int], element: int) -> bool: return element in my_set # Example usage my_set: Set[int] = {1, 2, 3, 4, 5} print(contains_element(my_set, 3)) # Output: True print(contains_element(my_set, 6)) # Output: False
  7. fukurou

    test

    :s8:
  8. fukurou

    AH2

    (?<=add di).*
  9. fukurou

    👨‍💻 dev event chatbot

    def create_dict(objectx, *args): return {arg: objectx for arg in args} # Example usage: class ObjectX: pass obj = ObjectX() result = create_dict(obj, "key1", "key2", "key3") print(result)
  10. fukurou

    AI hormones test

    from __future__ import annotations # for the builder pattern from AXPython import TimeGate from LivinGrimoire23 import Skill, Chobits class AH1(Skill): def __init__(self, chobit: Chobits): super().__init__() # Call the parent class constructor self._chobit: Chobits =...
  11. fukurou

    protocol 2501 with .txt instead of .py

    import os def call_add_DLC_skills(brain: Brain): for file in os.listdir('.'): if file.endswith('.txt') and 'DLC' in file: with open(file, 'r') as f: code = f.read() exec(code) exec(f"add_DLC_skills(brain)") # Example usage...
  12. fukurou

    spermin'

    import time class SkillChecker: def __init__(self, N): self.N = N * 60 # Convert minutes to seconds self.in1 = "" self.last_check_time = time.time() self.reset_flag = False self.result = 0 def standBy(self, in1: str) -> int: current_time...
  13. fukurou

    sterno cooker

  14. fukurou

    UI beefup

    import tkinter as tk def create_window(): root = tk.Tk() root.title("Always on Top Window") # Set the window to always be on top root.attributes("-topmost", True) label = tk.Label(root, text="This window is always on top!") label.pack(padx=20, pady=20)...
  15. fukurou

    seed test

    https://dev.to/ https://www.stalker2.com/
  16. fukurou

    blink and jizz loop

    the Arduino only blinks the LED when it receives a command from the Python script. Arduino Code This code will wait for a command from the Python script to blink the LED: void setup() { // Initialize the built-in LED pin as an output pinMode(LED_BUILTIN, OUTPUT); // Start serial...
  17. fukurou

    atexit: a must have python code for Arduino interactions

    import serial import time import atexit class SerialReader: def __init__(self, port='COM3', baud_rate=9600, timeout=1): self.ser = serial.Serial(port, baud_rate, timeout=timeout) atexit.register(self.close) # Register the close method to be called on exit def...
  18. fukurou

    try posting

    @Artbyrobot
  19. fukurou

    👨‍💻 dev find where I used the class as an object all over my project

    To find where you’ve used a class as an object throughout your project in PyCharm, you can use the Find Usages feature. Here’s how you can do it: Select the Class: Place your cursor on the class name you want to search for. Find Usages: Right-click the class name and select Find Usages from the...
  20. fukurou

    heap pollution my ass

    public void generatePermutations(ArrayList<String>... lists){ ArrayList<ArrayList<String>> ll = new ArrayList<>(); Collections.addAll(ll, lists); result = new ArrayList<>(); generatePermutations(ll, this.result, 0, ""); } @the living tribunal
Top