Skip to content

Instantly share code, notes, and snippets.

@nununoisy
nununoisy / super-triangle.py
Created May 3, 2023 06:35
Hypothetical 2A03 triangle channel if it had volume control.
import wave
import matplotlib.pyplot as plt
CPU_CLK = 1789773
SAMPLE_RATE = 48000
LENGTH_COUNTER_LENGTHS = [
10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14,
12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30
]
@nununoisy
nununoisy / README.md
Created November 24, 2019 01:25
Sway Start Script

Quick and dirty script to start Sway from TTY and a .desktop file for use in LightDM/GDM.

sudo install -vm755 start-sway /usr/bin/
sudo install -vm644 sway.desktop /usr/share/wayland-sessions/
@nununoisy
nununoisy / config.h
Created November 18, 2019 17:17
Tiny Material
#include <gtk/gtk.h>
/* Login prompt text */
static const char *user_text = "Username";
/* Password prompt text */
static const char *pass_text = "Password";
/* Session name */
static const char *session = "sway";
/* GTK UI CSS */
static const gchar *style =
@nununoisy
nununoisy / style.css
Created October 22, 2019 17:55
Waybar CSS
* {
border: none;
border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
min-height: 0;
}
window#waybar {