Skip to content

Instantly share code, notes, and snippets.

View zargony's full-sized avatar

Andreas Neuhaus zargony

View GitHub Profile
@zargony
zargony / pid.rs
Last active July 7, 2022 21:02
A simple PID controller
//! A simple PID controller
use std::f32;
pub struct Pid {
kp: f32,
ki: f32,
kd: f32,
setpoint: f32,
min: f32,
@zargony
zargony / kirschkuchen.rb
Last active July 7, 2022 21:08
Brute-force Lösung zum Kirschkuchen-Rätsel
#!/usr/bin/env ruby
#encoding: utf-8
class Tile
def initialize (face)
@face = face
end
attr_reader :face
@zargony
zargony / userChrome.css
Created March 28, 2024 10:46
Hide Firefox bookmark toolbar folder icons
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* hide icons for bookmark folders in toolbar, but not in dropdown menus */
#personal-bookmarks toolbarbutton.bookmark-item {
margin-left: 15px !important;
}
#personal-bookmarks toolbarbutton.bookmark-item[type="menu"] .toolbarbutton-icon {
display: none !important;
}
@zargony
zargony / opentherm-circuitjs.txt
Created May 8, 2025 15:03
OpenTherm interface circuit simulation in CircuitJS
$ 1 0.000005 10.20027730826997 50 5 43 5e-11
407 608 128 608 176 1025
407 608 208 608 256 1
34 zener-4.7 1 1.7143528192810002e-7 0 2.0000000000000084 4.7 1
z 416 288 416 224 2 zener-4.7
34 zener-4.3 1 1.7143528192810002e-7 0 2.0000000000000084 4.3 1
z 560 288 560 224 2 zener-4.3
34 zener-15 1 1.7143528192810002e-7 0 2.0000000000000084 15 1
z 512 288 512 224 2 zener-15
i 80 256 80 144 0 0.007