Skip to content

Instantly share code, notes, and snippets.

View leanczo's full-sized avatar
🧩
Piecing things together

Leandro Cardozo leanczo

🧩
Piecing things together
View GitHub Profile
@leanczo
leanczo / weather.py
Created May 22, 2025 17:48
Show notifications with the weather
import time
import requests
from plyer import notification
import datetime # Add this line
API_KEY = "XXXXXXXXXXXXXXXXXXXX" # Replace with your API Key from openweathermap
CITY = "XXXXX" # Replace City name
# INTERVAL_HOURS = 1 # Comment or remove this line
INTERVAL_MINUTES = 15 # New interval in minutes
@leanczo
leanczo / rest.py
Created May 22, 2025 17:44
It is a reminder of rest
import time
from plyer import notification
# Interval in minutes for reminders
INTERVAL_MINUTES = 30
def send_reminder():
message = (
"It's time to get up from your chair and stretch a bit. "
"Remember to take care of your health while working. 🚶‍♂️💪"
@leanczo
leanczo / auto-typing.py
Last active May 16, 2023 02:54
Automated Text Typing using Pynput in Python
# python -m pip install pynput
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
time.sleep(5)
words = ["Lorem Ipsum is simply dummy text of the printing and."]
for x in range(len(words)):