Skip to content

Instantly share code, notes, and snippets.

View m516's full-sized avatar

Micah Mundy m516

View GitHub Profile
@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 / 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)
@Destroyer7s
Destroyer7s / dark_net_skimmer.py
Last active January 22, 2021 00:42
Simple python script to download Dark Net Diaries podcasts
# Import required modules
from lxml import html
import requests
import os
import time
# Request the page
@goldsborough
goldsborough / conv.cu
Last active November 27, 2023 05:59
Convolution with cuDNN
#include <cudnn.h>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
#define checkCUDNN(expression) \
{ \
cudnnStatus_t status = (expression); \
if (status != CUDNN_STATUS_SUCCESS) { \
@insaneyilin
insaneyilin / show_opencv_image_in_opengl.cpp
Last active November 20, 2023 05:47
Show opencv cv::Mat image in an OpenGL window(use GLFW)
/*
# Released under MIT License
Copyright (c) 2017 insaneyilin.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: