Skip to content

Instantly share code, notes, and snippets.

View m516's full-sized avatar

Micah Mundy m516

View GitHub Profile
@insaneyilin
insaneyilin / show_opencv_image_in_opengl.cpp
Last active July 24, 2024 02:37
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:
@goldsborough
goldsborough / conv.cu
Last active July 27, 2024 17:10
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) { \
@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
@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: