This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Wezterm with Tmux keybinds | |
-- https://gist.github.com/AB9IL/60a3ab046f787f3b04e169054aa41238 | |
-- Pull in the wezterm API | |
local wezterm = require 'wezterm'; | |
return { | |
default_prog = default_prog, | |
hide_tab_bar_if_only_one_tab = true, | |
-- Do not hold on exit by default. | |
-- Because the default 'CloseOnCleanExit' can be annoying when exiting with | |
-- Ctrl-D and the last command exited with non-zero: the shell will exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--minimalist Wezterm config | |
--https://gist.github.com/AB9IL/7650164e753d786ef4c7ee066e847ca5 | |
local wezterm = require 'wezterm'; | |
return { | |
default_prog = default_prog, | |
hide_tab_bar_if_only_one_tab = true, | |
exit_behavior = 'Close', | |
term = 'xterm-256color', | |
color_scheme = 'Pro', | |
window_frame = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty itself. | |
env: | |
# TERM variable | |
# | |
# This value is used to set the `$TERM` environment variable for | |
# each instance of Alacritty. If it is not present, alacritty will |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Copyright (c) by Philip Collier, github.com/AB9IL | |
# This script is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. There is NO warranty; not even for | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
import matplotlib.pyplot as plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pyqtgraph as pg | |
from matplotlib import cm | |
import pyaudio | |
from PyQt5 import QtCore, QtGui | |
FS = 48000 #Hz | |
CHUNKSZ = 1024 #samples | |
class MicrophoneRecorder(): |