Skip to content

Instantly share code, notes, and snippets.

@david0
david0 / tigcc-atanh-bug.c
Created March 15, 2013 19:00
Bug with TIGCC 0.96: atanh(-0.9) returns 1.4722 instead of -1.4722
#include <math.h>
#include <stdio.h>
#include <tigcclib.h>
#define RETURN_VALUE
void _main() {
push_END_TAG();
push_Float(atanh(-0.9));
}
@david0
david0 / timatrix2csv.py
Created March 21, 2013 15:04
Converts matrices from Texas Instruments Calculators (TI89, TI Voyage 200) to CSV.
#!/usr/bin/python
# Reads matricies files build by the TI Voyage 200/TI82+ (*.v2m-files)
# and outputs csv
#
# Example:
# $ ./timatrix2csv.py main.test.v2p > test.csv
from struct import pack, unpack, calcsize
from collections import namedtuple
from sys import argv, stdout
@david0
david0 / strip-autocomplete.user.js
Created March 3, 2014 15:26
Greasymonkey/Tampermonkey script that strips "autocomplete" attributes from username and password fields
// ==UserScript==
// @name Strip autocomplete attributes
// @namespace david0
// @version 0.1
// @description This plugin gives the control about your passwords back to your browser and allows the browser to store every password.
// @include http://*
// @include https://*
// @copyright 2014, David
// ==/UserScript==
@david0
david0 / php-winpath-helper
Last active March 23, 2017 00:14
PHPStorm+cygwin path helpler
Helper utility for php from cygwin for using with phpStorm
@david0
david0 / Makefile
Last active August 29, 2015 14:04
alternativer Neo2 Layout Windows treiber
CFLAGS=-std=c99
LD=$(CC)
all: keymapper.exe
keymapper.exe: main.o
$(LD) -o keymapper.exe $<
@david0
david0 / handout.tex
Created August 23, 2014 10:53
Latex Template to create an A4 handout
% Template to create an A4 handout
% input should be a 16:9 PDF presentation
\documentclass[a4paper]{article}
%\documentclass[a4paper]{beamer}
%\documentclass[a4paper]{handoutWithNotes}
%\pgfpagesuselayout{4 on 1 with notes}[a4paper,border shrink=5mm]
\usepackage{pdfpages}
%\AtBeginSection[]
@david0
david0 / POC-deterministic-zip-checksums
Last active June 27, 2022 15:48
proof of concept for deterministic/reproduceable Zip file checksums
proof of concept to make Zip-file checksums more reliable
related to https://github.com/composer/composer/issues/2540
@david0
david0 / Makefile.in.patch
Last active December 7, 2015 08:00
vamp-plugin-sdk makefile patch
--- Makefile.in.orig 2015-12-03 20:56:09.000000000 +0100
+++ Makefile.in 2015-12-04 07:27:19.000000000 +0100
@@ -103,16 +103,20 @@
# public entry point. It's not essential, but makes a tidier library.
PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
-
-## For OS/X with g++:
-#DYNAMIC_LDFLAGS = -dynamiclib
-#PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
@david0
david0 / compile.log
Last active December 12, 2015 13:06
Ardour 4.4 + libsigc++-2.6.4 nil bug
2015-12-12 13:54:19 +0100
./waf
install
Waf: Entering directory `/private/tmp/ardour201512/ardour-4.4/build'
[ 1/860] cxx: libs/appleutility/AUOutputBL.cpp -> build/libs/appleutility/AUOutputBL.cpp.1.o
[ 2/860] cxx: libs/appleutility/AUParamInfo.cpp -> build/libs/appleutility/AUParamInfo.cpp.1.o
[ 3/860] cxx: libs/appleutility/CAAudioChannelLayout.cpp -> build/libs/appleutility/CAAudioChannelLayout.cpp.1.o
[ 4/860] cxx: libs/appleutility/CAAudioChannelLayoutObject.cpp -> build/libs/appleutility/CAAudioChannelLayoutObject.cpp.1.o
@david0
david0 / ardour_calf_osx.png
Last active December 12, 2015 16:03
Ardour + Calf running on OS X
ardour_calf_osx.png