Skip to content

Instantly share code, notes, and snippets.

View m516's full-sized avatar

Micah Mundy m516

View GitHub Profile
@m516
m516 / autobuild.py
Last active March 27, 2021 16:06
Automatically rebuild drivers for SGP
import os
import sys
import time
import logging
def import_or_install(package):
try:
__import__(package)
@m516
m516 / publish-latex.yml
Last active December 15, 2023 11:00
GitHub Action: LaTeX -> GitHub Release (PDF), GitHub Pages (HTML)
# This Action autogenerates PDFs and standalone HTML
# out of your Overleaf projects (or any LaTeX-live project).
#
# PDF generator: pdflatex
# HTML generator: htlatex
#
# Both tools come from LaTeX Live and are executed on
# the latest version of Ubuntu.
#
# Given:
@m516
m516 / interactivewindow.hpp
Last active October 19, 2023 14:48
C++ functions for visualizing normalized OpenCV Mats of most datatypes and channel numbers (C++ 14+, OpenCV 4+)
#pragma once
#include <opencv2/opencv.hpp>
#include <limits>
#include <cmath>
#include "normalize_mat.hpp"
std::string type2str(int type) {
std::string r;