Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <array>
struct Point
{
constexpr Point(double x, double y)
: x(x)
, y(y){};
double x, y;
};
@Psirus
Psirus / README.md
Created December 14, 2018 07:21
Record audio

Install pyaudio

sudo apt install python3-pyaudio

Make script executable

chmod +x record.py

Open in your favourite editor and adjust RECORD_SECONDS and OUTPUT_FOLDER accordingly

@Psirus
Psirus / source.c
Created December 12, 2021 15:35
Spinbutton example
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <math.h>
#include <stdlib.h>
static gint
hex_spin_input (GtkSpinButton *spin_button,
gdouble *new_val)
{
const gchar *buf;