- Audio Programming for Beginners Tutorials (Youtube playlist)
- Audio Signal Processing for Music Applications (Coursera MOOC)
- Fundamentals of Audio and Music Engineering: Part 1 Musical Sound & Electronics
- Coding a Synthesizer in C (Youtube playlist)
import re | |
from enum import StrEnum | |
class TokenType(StrEnum): | |
PLUS = "PLUS" | |
MINUS = "MINUS" | |
MUL = "MUL" | |
DIV = "DIV" | |
LPAREN = "LPAREN" |
from enum import StrEnum | |
class TokenType(StrEnum): | |
PLUS = "PLUS" | |
MINUS = "MINUS" | |
MUL = "MUL" | |
DIV = "DIV" | |
LPAREN = "LPAREN" | |
RPAREN = "RPAREN" |
import argparse | |
import pydot | |
def should_delete(node_name, max_depth=2): | |
return node_name.count(".") >= max_depth | |
def truncate_node_name(node_name, max_depth=2): | |
return '.'.join(node_name.strip('"').split('.')[:max_depth]) |
Notes from the Mystery Machine Bus
I've spent the past eight years (starting back in June 2004) writing elaborate rants about a bunch of vaguely related software engineering issues.
I was doing all that ranting because I've been genuinely perplexed by a set of "bizarre" world-views held dear by -- as far as I can tell -- about half of all programmers I encounter, whether online or in person.
Last week, after nearly a decade of hurling myself against this problem, I've finally figured it out. I know exactly what's been bothering me.
In today's essay I'm going to present you with a new conceptual framework for thinking about software engineering. This set of ideas I present will be completely obvious to you. You will probably slap yourself for not having thought of it yourself. Or you might slap the person next to you. In fact you probably have thought of it yourself, because it is so blindingly obvious.
from fastapi import FastAPI, APIRouter, Request | |
from fastapi.responses import RedirectResponse, HTMLResponse | |
router = APIRouter() | |
@router.get('/form') | |
def form(): | |
return HTMLResponse(""" | |
<html> |
from __future__ import absolute_import, print_function, division | |
from collections import namedtuple | |
import sys | |
def exit_showing_usage(): | |
print("""Usage: pudb [options] [SCRIPT-TO-RUN|-m MODULE] [ARGUMENTS] | |
Options: |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, absolute_import, division | |
def run(options, script_args): | |
print('options', options, 'script_args', script_args) | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, absolute_import, division | |
import itertools | |
import json | |
from PIL import Image, ImageFilter | |
def pairwise(iterable): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, absolute_import, division | |
import urwid | |
PALETTE = [ | |
('bold', 'bold', ''), | |
] |