Skip to content

Instantly share code, notes, and snippets.

View aarjaneiro's full-sized avatar

Aaron Janeiro Stone aarjaneiro

View GitHub Profile
@aarjaneiro
aarjaneiro / CC_STOCKER
Last active December 13, 2023 16:35
Canada Computers stock tracker
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.
@aarjaneiro
aarjaneiro / lean_dev.sh
Last active January 31, 2021 05:32
lean_dev: A script for installing QuantConnect/Lean in a Docker environment for development
#!/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]"
@aarjaneiro
aarjaneiro / planetmath_docset.py
Last active December 27, 2020 23:54
A small script which downloads planetmath pages and populates a docSet.dsidx database. Add a .plist and the correct directory structure and this should work with Dash or Zeal.
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);')
@aarjaneiro
aarjaneiro / Templates.md
Last active October 29, 2020 18:33
QuantConnect/Lean - Useful Templates and Modules