skip to content
/var/log/little-things
Search any posts

Repositories and code snippets

This is a list of my repositories and code snippets

Repositories

In this section, repositories are summarized by programming language.

C++

Libraries

dualcomplex

“dualcomplex” is a cross-platform C++ template library that provides operations for dual complex numbers. It can be used as a header-only library and supports C++11 or later.

dualquat

“dualquat” is a cross-platform C++ template library that provides operations on dual quaternions using Eigen. It can be used as a header-only library and supports C++11 and later.

plucker

“plucker” is a cross-platform C++ template library that provides operations on Plücker coordinates of lines. It can be used as a header-only library and supports C++11 and later.

Examples

CMakeExamples

This is a collection of examples that use CMake for each case of a C++ project.

CPPExamples

This is a collection of examples that use C++11.

  • BitonicSort
  • ComparingFloatingPointNumbers
  • ConvertString
  • ExpressionTemplate
  • HalfPrecisionFloatingPoint
  • LUDecomposition
  • Logger
  • PimplIdiom
  • ParseFntFile
  • Range
  • ServiceLocator
  • Singleton
  • SpecificInterface
  • ThreadPool
  • Other
cpp_examples

This is a collection of examples that use C++14 or C++17.

  • circular_buffer

    Circular buffer implemented using only the standard library.

  • stack_resource

    A stack memory allocator using only the standard library.

  • pubsub_event

    This is a Publish-Subscribe messaging model implemented using only the standard library.

  • dual

    Header-only class template for dual numbers using only the standard library.

mark-and-sweep-gc

This is an example of a simple mark-and-sweep garbage collection using C++.

OpenGL Examples

This is a collection of examples of real-time rendering techniques using OpenGL.

It supports C++11 or later and OpenGL 4.x.

  • AdaptiveTerrainTessellation
  • BillboardBeam
  • Bloom
  • Dithering
  • KawaseBlur
  • LightStreak
  • RadialBlur
  • ToneMapping
  • Other

Java

Examples

RecursiveDimensionalClustering

This is an example of Recursive Dimensional Clustering, one of the fast algorithms for finding collisions or clusters in a dataset.

Python

Modules

fpq

This package provides modules for manipulating floating point numbers quantization using NumPy.

image_packer

Pack multiple images of different sizes or formats into one image.

malloc_tracer

This is a debugging tool for tracing malloc that occurs inside a function or class.

perfbench

perfbench measures execution time of code snippets with Timeit and uses Plotly to visualize the results.

Examples

python-poetry-example

A simple example of how to use pyenv + poetry + tox + pytest.

quaternion

This package provides a class for manipulating quaternion objects.

Code snippets

This section summarizes code snippets by theme/topic.

Mathematics

Complex number

Geometry

Analysis

Vector calculus

Set theory

Probability theory

Physics

Rigid body mechanics

Computer science

Floating point number

Color

Noise

Sort

Python

matplotlib

pytorch