Skip to content

Instantly share code, notes, and snippets.

@heeplr
heeplr / plot.py
Created February 18, 2023 16:56
dynamically sized plotille widget with textual
import plotille
from rich.text import Text
from textual.app import App, ComposeResult
from textual.widgets import Header, Static
class Plot(Static):
"""auto sizing carthesian plot"""
export const Model = BackboneModel.extend({
/* list of read-only attributes */
readOnly: [],
toJSON: function (options) {
/* convert attributes to JSON but omit the ones from "readOnly" */
return _.clone(
return _.omit(BackboneModel.prototype.toJSON.apply(this), this.readOnly)
)
}
@heeplr
heeplr / README.md
Last active November 4, 2020 11:53
ardupilot wheel encoder error

Wheel encoders on rover are connected according to the wiki but WHEEL_DISTANCE output is very strange. (Images show 1/4 rotation of the wheel at moderate speed. Oscilloscope shows PINA as White and PINB as Green)

@heeplr
heeplr / jabra_talk_dfu_firmware_update.md
Last active July 12, 2021 23:07
Jabra Talk 45 firmware upgrade on linux with dfu-util

HOWTO Upgrade Firmware of Jabra Talk 45 on linux

  1. Download firmware package (windows version) from https://www.jabra.com/supportpages/jabra-talk-45 (or your countries version accordingly)

  2. Extract using 7z:

# 7z e Jabra_Talk_45-v3.4.0-de_de-T45.exe