Skip to content

Instantly share code, notes, and snippets.

View HudsonGraeme's full-sized avatar

Hudson Graeme HudsonGraeme

View GitHub Profile
@HudsonGraeme
HudsonGraeme / notebook.ipynb
Last active February 1, 2024 20:40
5fe39f26d68626586dac2fec609b30ea
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HudsonGraeme
HudsonGraeme / nano.ipynb
Last active February 2, 2024 04:43
138ce3211762d27055577ae7b31623e5
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HudsonGraeme
HudsonGraeme / notebook.ipynb
Last active January 15, 2024 21:56
d8a05fb2b963c34c9ee4c76e105aa1f4
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HudsonGraeme
HudsonGraeme / OOR.ipynb
Created November 20, 2023 21:10
Value OOR during proof
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
def counter(lst):
count_dict = {}
for item in lst:
if item in count_dict:
@HudsonGraeme
HudsonGraeme / rand.ipynb
Last active October 31, 2023 21:29
`torch.rand` is treated as a constant by ONNX
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HudsonGraeme
HudsonGraeme / min.ipynb
Last active October 31, 2023 19:18
Reproducible example of unexpected ONNX export behavior using NanoGPT
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HudsonGraeme
HudsonGraeme / TallyCogecoBandwidth.md
Created October 29, 2023 18:47
Script to aggregate Cogeco bandwidth usage to show usage per-billing period instead of daily.
  1. Open DevTools, Navigate to the Network tab and select fetch/xhr

  2. Navigate to Cogeco's portal https://myaccount.cogeco.ca/acauth/all/internet/usage

  3. Find this network request, select Response and copy the whole contents of the response

image

  1. Navigate to the Console in Devtools and type