Skip to content

Instantly share code, notes, and snippets.

@ChristofKaufmann
ChristofKaufmann / bicubic.tex
Created January 19, 2022 16:05
Description of bicubic interpolation as implemented in octave's interp2.m.
\documentclass{scrarticle}
\usepackage{listings}
\lstset{%
language=Matlab,
columns=flexible,
% flexiblecolumns=true,
basicstyle=\ttfamily\small,
commentstyle=\color{green!80!black}\itshape,
keepspaces=true,
@ChristofKaufmann
ChristofKaufmann / FastLED_RGBW.h
Created May 26, 2021 11:17
This is a workaround for FastLED library to make SK6812 RGBW led strips work.
/* FastLED_RGBW
*
* Hack to enable SK6812 RGBW strips to work with FastLED.
*
* Original code by Jim Bumgardner (http://krazydad.com).
* Modified by David Madison (http://partsnotincluded.com).
* Modified by Christof Kaufmann.
*
*/
@ChristofKaufmann
ChristofKaufmann / myshape.tex
Last active July 11, 2023 12:41
Defines a TikZ node shape for a "rectangle with inverted corners".
% Keys for rectangle with inverted corners
%
% /pgf/rectangle with inverted corners selected : specify the corners to invert.
% /pgf/rectangle with inverted corners radius : set the radius of the corners.
\makeatletter
\pgfkeys{/pgf/rectangle with inverted corners selected/.store in=\pgf@lib@sh@misc@convrect@corners}
\pgfkeys{/tikz/rectangle with inverted corners selected/.store in=\pgf@lib@sh@misc@convrect@corners}
\def\pgf@lib@sh@misc@convrect@invertall{invert all}%