Skip to content

Instantly share code, notes, and snippets.

View MatthewIreland's full-sized avatar

Matthew Ireland MatthewIreland

View GitHub Profile
@jiyometrik
jiyometrik / urw-garamond.org
Last active August 26, 2024 15:26
A guide to installing the URW Garamond / MathDesign font if it isn't included in your LaTeX distribution..

How To Get urw-garamond And mathdesign Working in LaTeX

URW Garamond and MathDesign

Many people adore the Garamond font and its many variations. With that, LaTeX has also introduced its own version, with a complimentary math-mode font, inside the mathdesign package.

The most common way to use it is as follows:

@cashiwamochi
cashiwamochi / simple_triangulation.cc
Last active September 16, 2023 14:19
This code is used for simple triangulation. It uses findEssentialMat, recoverPose, triangulatePoints in OpenCV. For viewer, PCL is used. You can watch 3D points and 2 camera poses. I checked alcatraz2.jpg and alcatraz1.jpg in pcv_data.zip (https://www.oreilly.co.jp/pub/9784873116075/). Perhaps there is something wrong ( actually it looks working…
#include <opencv2/opencv.hpp>
#include <pcl/common/common_headers.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <Eigen/Core>
#include <Eigen/LU>
@FlorianWolters
FlorianWolters / cpp-source_code_snippets.md
Last active February 20, 2025 13:30
C++ source code snippets

C++ source code snippets

Represent one byte

using Byte = std::uint8_t;

Represent a dynamic number of bytes

#include <vector>
@listochkin
listochkin / node-command-line-options.txt
Created April 17, 2014 11:00
Node V8 GC-related options
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0
@Buildstarted
Buildstarted / timers.ts
Created November 14, 2013 05:47
4 different timer implementations in typescript
module Utilities {
export class Timer implements eg.IUpdateable {
private OnTick: eg.EventHandler;
private _start: number;
private _interval: number;
private _started: boolean;
private _lastTime: number;
constructor(interval: eg.TimeSpan);
constructor(interval: eg.TimeSpan, callback?: Function);
@niw
niw / libpng_test.c
Last active June 9, 2025 00:00
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng16 libpng_test.c
@drautb
drautb / CMake: Variable Dump
Created July 3, 2013 20:11
This snippet will dump all CMake variables to the build output
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()