https://drive.google.com/file/d/1-D6Uahc4qugVqSw_NIJq0XLKPNs9NdqS/view?usp=sharing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc_stocker | |
This program monitors stock at Canada Computers for search terms as specified in config.json. | |
Upon an in-stock item being found, a pop-up alert will be made. Moreover, if configured, a text message will be sent to your phone. | |
Note: I do not condone scalping. The only reason this software was made is that bot-assisted scalping is so prevalent that a customer is only able to buy in-demand items at MSRP if they use a bot themselves. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Help | |
if [ "$1" == "-h" ]; then | |
echo "lean_dev" | |
echo "--------" | |
echo "Sets up a docker environment for Lean development/algorithm debugging." | |
echo "This will mount ./Lean to the docker container at /Lean." | |
echo "" | |
echo "Usage: lean_dev [OPTIONS]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
from urllib.request import urlopen | |
import sqlite3 | |
conn = sqlite3.connect('docSet.dsidx') | |
cur = conn.cursor() | |
try: cur.execute('DROP TABLE searchIndex;') | |
except: pass | |
cur.execute('CREATE TABLE searchIndex(id INTEGER PRIMARY KEY, name TEXT, type TEXT, path TEXT);') |