Skip to content

Instantly share code, notes, and snippets.

View zeddie888's full-sized avatar

Edward Zhang zeddie888

  • Meta
  • Menlo Park, CA
View GitHub Profile
@zeddie888
zeddie888 / fix_notebook.py
Created December 6, 2025 22:05
Script to fix your Google Colab ipynb notebooks so they can be rendered properly on GitHub
"""
Script to remove 'metadata.widgets' from Jupyter notebook files so that they can be rendered in-browser on GitHub.
"""
import json
import sys
# Usage: python fix_notebook.py <path to nb>
try:
@zeddie888
zeddie888 / programming_languages_over_the_years.md
Last active April 3, 2025 07:42
programming languages I've used over the years

programming languages over the years

I thought it'd be fun to take a trip down memory line and think about the programming languages I've used throughout the past few years, and how PL popularities have changed for me.

Languages are listed most popular -> least popular, and I'm only counting those that I've done a nontrivial amount of work with.

2021

C, Java, Python, JavaScript

  • First serious contact with coMpUTeR scIEnCE, interestingly enough I grasped C much much better than I did Java
@zeddie888
zeddie888 / variadic_min.cpp
Created December 10, 2024 06:52
Variadic min + return a reference to the min element so we can mess with it directly
#include <iostream>
using namespace std;
template <typename T>
T& min(T& value) {
return value;
}
template <typename T, typename... Args>