Skip to content

Instantly share code, notes, and snippets.

View woodworker's full-sized avatar
💭
Brömpf!

Martin Holzhauer woodworker

💭
Brömpf!
View GitHub Profile
drawerCountV = 6;
drawerCountH = 4;
// x1, x10, x100, x1K, x10K, x100K, x1M = 7 values
drawerSubsections = 7;
drawerCountTotal = drawerCountV * drawerCountH;
// ikea kallax standard
boxSides = 330;
@woodworker
woodworker / Cargo.toml
Created October 6, 2018 12:51
relm test
[package]
name = "relm-gtk-test"
version = "0.1.0"
authors = ["Martin Holzhauer <martin@holzhauer.eu>"]
[dependencies]
gtk = "^0.5.0"
relm = "^0.15.0"
relm-derive = "^0.15.0"
relm-attributes = "^0.15.0"
#include <Wire.h>
byte rows[] = {2,3,4,5,6,7,8};
const int rowCount = sizeof(rows)/sizeof(rows[0]);
byte cols[] = {A0, A1, A2, 12, 11};
const int colCount = sizeof(cols)/sizeof(cols[0]);
char keys[colCount][rowCount];
bool lastValue[colCount][rowCount];
@woodworker
woodworker / Makefile
Last active March 24, 2023 17:24 — forked from opalenic/Makefile
Template Makefile project for STM8 SDCC builds
SDCC = sdcc
STM8FLASH = stm8flash
STLINK=stlinkv2
CHIP = STM8S103
CHIP_TYPE = STM8S103F3
CHIP_TYPE_LCASE = $(shell echo $(CHIP_TYPE) | tr '[:upper:]' '[:lower:]')
CFLAGS = -lstm8 -mstm8 -L./libsrc/build/ -l./libsrc/stm8s_stdlib.a -I./libsrc/inc -D$(CHIP) -DUSE_STDPERIPH_DRIVER
#!/bin/sh
rrdtool graph powermon.png --end now --start end-4h DEF:min=powermon.rrd:load:MIN DEF:max=powermon.rrd:load:MAX DEF:avg=powermon.rrd:load:AVERAGE --color SHADEA#425466 --color SHADEB#425466 --color GRID#ffffff7f --color MGRID#FF99007f --color BACK#22374C --color FRAME#000000 --color FONT#ffffff --color CANVAS#22374C --color ARROW#FFFFFF -w 640 -h 150 -t "spacestation power consumption" -v "Watt" 'COMMENT:Watt used within the last 4 hours' 'AREA:avg#000000:Average' 'LINE1:min#46B6EE:Min' 'LINE1:max#FF9900:Max' 2>&1 | grep -v '^481x155$'
@woodworker
woodworker / .gitconfig
Last active October 23, 2015 14:03
fixed update and updatepush
[push]
default = simple
[pull]
rebase = true
[core]
excludesfile = ~/.gitignore
autocrlf = false
eol = lf
@woodworker
woodworker / util.js
Created August 31, 2014 13:59
Simple Bitwig Helper for endless controllers
/**
* @var int max
* @var callback nextCallback
* @var callback prevCallback
*/
function EndlessScroller(max, nextCallback, prevCallback) {
var lastValue = null;
var maxValue = max;
return function(value) {
++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++
+--++--------++--------++--------++------++-------++-------++-----++-------++-------++--------++-------++---+
| |
++ |
++ |
+-----------------------------------------------------------------------------------------------------------+
| |
| |
++ |
++

Keybase proof

I hereby claim:

  • I am woodworker on github.
  • I am woodworker (https://keybase.io/woodworker) on keybase.
  • I have a public key whose fingerprint is DEDD F435 A231 1777 7503 A96E 111C FF38 573E A5C7

To claim this, I am signing this object:

<?php
class ProcStream {
/**
* @var resource
*/
protected $process;
/**