Skip to content

Instantly share code, notes, and snippets.

Private Mode for In-Band Window Resize Notifications

Terminal emulators typically receive window resize events by installing a signal handler for the SIGWINCH signal. Handling of these signals can create challenges due to their inherently racy properties. Resize events must be synchronized with other application state in a safe manner.

Standard control sequences exist to query the current terminal size from the terminal and receive an in-band control sequence with the window size. However, this system requires polling - which is not ideal. Usually, SIGWINCH handling

@joshka
joshka / Readme.md
Last active October 14, 2022 19:32
8/Any pin PIO based UART TX code for a Raspberry Pi Pico

Raspberry Pi Pico PIO 8 Pin UART TX

This code creates a UART TX on 8 sequential pins of the Raspberry Pi Pico. The main use case being MIDI splitter devices

The second 16 port implementation should work for any number of pins, but just acts as a pure copy to those pins instead of having individual control over every pin of every byte. Hence while less flexible, the controlling software is simpler (just send a uart byte and it's copied to every pin).

Only tested in the simulator so far. https://wokwi.com/projects/344345628967436882

Used https://wokwi.com/tools/pioasm to go from uart_tx.pio.h to uart_tx.h

@MiguelMadero
MiguelMadero / AgileFailManifesto.md
Created October 11, 2012 14:02
AgileFail Manifesto

#Manifesto for Agile Software Development

We were in a rush to uncover better ways of developing software. Agile is supposed to be fast, so we did an Agile implementation of Agile and we skipped all the values and focused on the practices. Through this work we have come to value:

Daily Standups over Individuals and Interactions

Demos over Working Software

Planning Meetings over Customer Collaboration