Skip to content

Instantly share code, notes, and snippets.

View lucasecdb's full-sized avatar

Lucas Cordeiro lucasecdb

View GitHub Profile
function Expletives({ children }) {
let [, forceUpdate] = useState();
let mounted = useRef(false);
useEffect(() => {
mounted.current = true;
// don't want to cause any seizures.
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
return;
@mda590
mda590 / gist:9404128f5157f38098189616a56070f6
Created March 20, 2017 22:33
Install Docker on RHEL AWS
sudo yum-config-manager --enable "Red Hat Enterprise Linux Server 7 Extra(RPMs)"
sudo yum install docker -y
@maurisvh
maurisvh / spectrogram.py
Last active January 27, 2025 18:47
ANSI art spectrogram viewer that reads audio from a microphone
#!/usr/bin/python
import numpy
import pyaudio
import re
import sys
WIDTH = 79
BOOST = 1.0