Skip to content

Instantly share code, notes, and snippets.

View DonneyF's full-sized avatar
💭
🍰 Churning butter...

DonneyF

💭
🍰 Churning butter...
View GitHub Profile
@DonneyF
DonneyF / amazon-invoice-downloader.js
Created September 14, 2023 21:11
Amazon Invoice Downloader Userscript
// ==UserScript==
// @name Amazon Invoice Download All
// @icon https://www.amazon.ca/favicon.ico
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @description Download all invoices
// @author HR
// @include /.*\.amazon\.ca\/gp\/.*\/order\-history.*/
// @grant none
@DonneyF
DonneyF / Top 5 UBC Pandemic Outliers.ipynb
Last active June 3, 2021 19:09
Top 5 UBC Pandemic Outliers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DonneyF
DonneyF / toqutree.cpp
Last active April 7, 2019 08:25
Render & Prune
PNG toqutree::render(){
auto height = (unsigned int) pow(2, root->dimension);
// Create an image four times as large, then crop later.
PNG* output = render(root);
PNG local = *output;
delete output;
return local;
}
PNG* toqutree::render(Node* root) {