Skip to content

Instantly share code, notes, and snippets.

@xdsswar
xdsswar / gist:62e021f34a07d2e4702623c68a3c6f40
Created November 1, 2024 01:49 — forked from joelkuiper/gist:9eb52555e02edb653dcf
highlight a pattern with PDFBox
The PDFTextAnnotator will accept a PDF and a pattern, it will highlight all occurances of that pattern in the document.
It inherits from the PDFTextStripper (so things like start end end page should still be configurable)
See the App file for a basic usage example
@xdsswar
xdsswar / gl_ffmpeg.cpp
Last active July 16, 2023 18:53 — forked from rcolinray/gl_ffmpeg.cpp
OpenGL-FFMpeg integration
// Use OpenGL 3.0+, but don't use GLU
#define GLFW_INCLUDE_GL3
#define GLFW_NO_GLU
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
extern "C" {
@xdsswar
xdsswar / digital-clock-in-javascript.markdown
Created February 28, 2023 17:33
Digital Clock In JavaScript