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/python | |
import numpy | |
import pyaudio | |
import re | |
import sys | |
WIDTH = 79 | |
BOOST = 1.0 |
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 Control.Monad (when, forM) | |
import Data.Array | |
import Data.Char (isSpace) | |
import Data.List (elemIndices, transpose, intercalate) | |
import Data.Maybe (catMaybes) | |
import Data.Monoid ((<>)) | |
import Data.Text (Text) | |
import System.Exit (die) | |
import Text.Printf (printf) |
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
-- to watch: telnet localhost 8887 | |
-- to stream: script -f >( (echo hello streamname; cat -) | nc -q5 localhost 8888 > /dev/tty ) | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Control.Concurrent | |
import Control.Concurrent.Chan | |
import Control.Concurrent.MVar | |
import Control.Monad |