Skip to content

Instantly share code, notes, and snippets.

View an-empty-string's full-sized avatar
🏳️‍⚧️

Tris Emmy Wilson an-empty-string

🏳️‍⚧️
View GitHub Profile
@an-empty-string
an-empty-string / pomodoro.py
Created February 8, 2021 04:13
pomodoro service
from asyncio_mqtt import Client
import json
import asyncio
from collections import namedtuple
from pathlib import Path
from dataclasses import dataclass
from enum import Enum
from typing import NamedTuple
@an-empty-string
an-empty-string / pomodoro.py
Created February 8, 2021 04:14
pomodoro.py
from asyncio_mqtt import Client
import json
import asyncio
from collections import namedtuple
from pathlib import Path
from dataclasses import dataclass
from enum import Enum
from typing import NamedTuple
#!/usr/bin/env python3
import functools
import json
import os
import shlex
import subprocess
import sys
from typing import List
PATH = os.path.expanduser("~/.clipboard")
# visit https://www.mlb.com/redsox/schedule/downloadable-schedule to get new schedule
URL = "https://www.ticketing-client.com/ticketing-client/csv/GameTicketPromotionPrice.tiksrv?team_id=111&home_team_id=111&display_in=singlegame&ticket_category=Tickets&site_section=Default%E2%8A%82category=Default&leave_empty_games=true&event_type=T&year=2023&begin_date=20230201"
LOCATION = "Fenway Park"
PUSHOVER_KEY = "(pushover API key)"
PUSHOVER_USER = "(pushover user key)"
import csv
import arrow
import requests