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
from PIL import Image, ImageDraw, ImageFont | |
import argparse | |
import numpy as np | |
sample_rate = 0.4 | |
def ascii_art(file): | |
im = Image.open(file) |
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
# Set wlan0 to unmanaged | |
cat >/etc/NetworkManager/NetworkManager.conf <<'EOF' | |
[main] | |
plugins=keyfile | |
[keyfile] | |
unmanaged-devices=interface-name:wlan0 | |
EOF | |
service network-manager restart | |
# Configure IP addr |
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
use_bpm 100 | |
live_loop :pad do | |
chords = [ | |
[:a2, :g3, :c4, :e4], | |
[:d2, :f3, :c4, :e4], | |
[:g2, :f3, :a3, :d4], | |
[:c2, :g3, :d4, :e4] | |
] |