Skip to content

Instantly share code, notes, and snippets.

echo hello world
@jackbow
jackbow / readme.md
Last active August 25, 2021 22:49
Simple CLI Time Tracker

Simple CLI Timetracking Script

Installation:

  1. If not using conda, rewrite work.sh to work with your python manager
  2. Put in your own wage, expected hours/week, etc in time.py
  3. echo source work.sh >> .bashrc

Usage:

@jackbow
jackbow / costco.py
Last active May 12, 2020 23:49
For turning the Costco inventory PDFs into CSVs with prices for easy ordering. To use, download this file & run `python3 costco.py` in your terminal in the same directory as the file.
import string
import re
import sys
print("Upload the Costco pdf to https://ocr.space/, and select table recognition option, OCR Engine1, and save the output text to a txt file in the same directory as this script.")
path = input("Next, enter the name of the file: ")
f = open(path, 'r')
def hasNumbers(inputString):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jackbow
jackbow / ebay_notif.py
Last active May 1, 2019 17:42
ebay_notif: This will send you push notifications when a given ebay search has an item within your given params (eg. price, condition, etc) is ending within 1 hr. I ran this for a couple weeks on my raspberrypi to find a posting for a laptop a couple hundred dollars cheaper than average.
# This will send you push notifications
# when a given ebay search has an item within
# your given params (eg. price, condition, etc)
# is ending within 1 hr
# just set this var to your search: (default is a test with freq. items)
page_url = "https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2334524.m570.l1311.R9.TR10.TRC3.A0.H0.Xmacbook.TRS2&_nkw=macbook+pro+2017&_sacat=0&LH_TitleDesc=0&_sop=1&_osacat=0&_odkw=macbook"
# Search for something on ebay, set filters, then list by Time: ending soonest
from bs4 import BeautifulSoup