Panda3D ShowBase This function creates a simple Panda3D application that loads a cube model and changes its color to a random color every time the function is called. Panda3D Application 2024-12-16 12:18:04 58 views
Schedule datetime This code defines a function named 'daily_task' that runs at 9 AM every day. It uses the Schedule library to set up timed tasks and runs the scheduler in an infinite loop. Timed task 2024-12-16 12:17:14 25 views
Pyglet This code defines a Pyglet window that, every time the window is drawn, will randomly generate a new color and clear the window to display this random color. Graphical interface application 2024-12-16 12:16:56 15 views
APScheduler ThreadPoolExecutor The code defines a function named random_task that creates a scheduled task scheduler using the APScheduler library. It randomly selects either a ThreadPoolExecutor or a ProcessPoolExecutor as the executor and sets up a task that runs every 10 seconds. Timed task scheduling 2024-12-16 12:16:41 15 views
Schedule This function uses the Schedule library's every and repeat decorators to set up a random task that runs every minute. Timed task 2024-12-16 12:16:13 13 views
Celery random This code defines a Celery task that runs an addition task every day at midnight, and demonstrates how to use Celery's scheduled tasks and task invocation. The type of code 2024-12-16 12:15:59 18 views
Tkinter This function creates a Tkinter window with a button that changes its background color randomly every time it is clicked. Tkinter GUI Application 2024-12-16 12:15:46 12 views
Schedule library This function uses the Schedule library to schedule a task that prints a random greeting every 10 seconds. It defines a function `random_task` that uses the `every` method from the Schedule library to run the `print_random_greeting` function every 10 seconds. The `print_random_greeting` function randomly selects a greeting from a predefined list and prints it. Finally, an infinite loop keeps the program running and periodically checks if it needs to run the scheduled tasks. Timed task 2024-12-16 12:15:17 16 views
APScheduler datetime The code defines a custom function named xxx that uses the APScheduler library to create a background scheduler for scheduling tasks. It adds a job to the scheduler that runs the random_task function every hour and allows the scheduler to run for 2 hours. Timed task 2024-12-16 12:15:02 10 views
Python Schedule This code defines a function named random_task that randomly executes one of five tasks. The code uses the Schedule library to schedule this function to run every 10 seconds. Timed task 2024-12-16 12:14:33 10 views