Skip to content

Instantly share code, notes, and snippets.

View equant's full-sized avatar
☎️
ring ring

Nathanial Hendler equant

☎️
ring ring
View GitHub Profile
@mvanga
mvanga / music_theory.py
Last active December 28, 2023 04:33
Basic Music Theory in ~200 Lines of Python
# The code for my article with the same name. You can find it at the URL below:
# https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python
# MIT License
#
# Copyright (c) 2021 Manohar Vanga
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@fbrinker
fbrinker / i3-display-swap.sh
Last active March 6, 2024 11:09
Swap i3 displays / workspaces between displays
#!/usr/bin/env bash
# requires jq
DISPLAY_CONFIG=($(i3-msg -t get_outputs | jq -r '.[]|"\(.name):\(.current_workspace)"'))
for ROW in "${DISPLAY_CONFIG[@]}"
do
IFS=':'
read -ra CONFIG <<< "${ROW}"
if [ "${CONFIG[0]}" != "null" ] && [ "${CONFIG[1]}" != "null" ]; then
@taldcroft
taldcroft / 10-startup.py
Last active September 10, 2017 01:28
IPython startup magic
# ~/.ipython/profile_default/startup/10-mystartup.py
import numpy as np
ip = get_ipython()
def import_astropy(self, arg):
ip.ex('import astropy')
ip.ex('print(astropy.__version__)')
ip.ex('from astropy.io import ascii')
@pgburt
pgburt / Podcast-Checklist.md
Last active April 13, 2024 22:19
Audacity Podcast Checklist

Recording

  • Set Audacity to use the External mic.
  • Ensure you're recording in 16-bit PCM + 44100Hz.
  • Do a sound check, record everyone in the room speaking. You want the lighter part of the meter bar (the green or red bar at the top) to bounce between -12db and -6db while people are talking. It's hard to achieve this... so just settle for as close as you can get, without the bars going off the scale :)
  • Play it back and tweak levels until it sounds good @ 60% speaker volume.
  • Save the Project BEFORE recording live :D (prevents quality issues)

Edit for Content

  • Join recordings to one track.
  • Listen to it + Edit bad content out.