Search results

  1. the living tribunal

    sita

    Shit in the ass
  2. the living tribunal

    [MEDIA]

  3. the living tribunal

    Python threads with params

    import threading class MyClass: def __init__(self, name): self.name = name def print_numbers(self, count): for i in range(count): print(f"{self.name}: {i}") def start_threads(self): # Create threads thread1 =...
  4. the living tribunal

    Python threads with params

    import threading # Define a function for the thread def print_numbers(thread_name, count): for i in range(count): print(f"{thread_name}: {i}") # Create two threads thread1 = threading.Thread(target=print_numbers, args=("Thread-1", 5)) thread2 =...
  5. the living tribunal

    [MEDIA]

  6. the living tribunal

    Ul Arduino sketch via python

    Got it! If you want to upload an Arduino sketch using Python without any additional libraries, you can use the Arduino CLI directly. Here's a simple example: 1. **Install Arduino CLI**: If you haven't already, download and install the Arduino CLI from the [Arduino CLI...
  7. the living tribunal

    Rpg maker mv quiz battle walkthrough

    To set up a system where the monster asks random questions and the player attacks the monster if they answer correctly (or loses HP if they answer incorrectly), you can follow these steps: ### Step 1: Create Skills for Questions 1. **Open the Database** and go to the **Skills** tab. 2. **Create...
  8. the living tribunal

    [MEDIA]

  9. the living tribunal

    Apps making with python an intro

    To make a phone app with Python, you can use frameworks like Kivy or BeeWare. Here’s a simple guide: Using Kivy Install Kivy: pip install kivy Create a Basic App: Python from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): return Label(text="Hello...
  10. the living tribunal

    Python code to restart program

    @fukurou
  11. the living tribunal

    Python code to restart program

    Code to edit program code import os import sys def modify_code(): with open(__file__, 'r') as file: lines = file.readlines() # Example modification: Add a print statement lines.insert(-1, 'print("Code modified and restarted!")\n') with open(__file__, 'w') as file...
  12. the living tribunal

    Python code to restart program

    import os import sys def restart_program(): python = sys.executable os.execl(python, python, *sys.argv) # Example usage print("Program is running...") restart_program()
  13. the living tribunal

    Empty recycling bin with python

    pip install winshell import winshell try: winshell.recycle_bin().empty(confirm=False, show_progress=False, sound=True) print("Recycle Bin is emptied now!") except: print("Recycle Bin is already empty!")
  14. the living tribunal

    Terminal with python

    @fukurou
  15. the living tribunal

    Terminal with python

    Advanced code import subprocess # Run a command in the terminal subprocess.run(["gnome-terminal", "--", "bash", "-c", "echo Hello, World!; exec bash"]) # For GNOME Terminal on Linux # subprocess.run(["open", "-a", "Terminal", "--args", "echo Hello, World!"]) # For Terminal on macOS #...
  16. the living tribunal

    Terminal with python

    import subprocess # Open a terminal window subprocess.run(["gnome-terminal"]) # For GNOME Terminal on Linux # subprocess.run(["open", "-a", "Terminal"]) # For Terminal on macOS # subprocess.run(["cmd", "/c", "start", "cmd"]) # For Command Prompt on Windows
  17. the living tribunal

    Python open dir

    @fukurou
  18. the living tribunal

    Python open dir

    import os # Specify the directory path directory = '/path/to/your/directory' # Open the directory and view its contents contents = os.listdir(directory) # Print the contents of the directory for item in contents: print(item)
Top