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
""" | |
Tested on Linux with python 3.7 | |
Must have portaudio installed (e.g. dnf install portaudio-devel) | |
pip install pyqtgraph pyaudio PyQt5 | |
""" | |
import numpy as np | |
import pyqtgraph as pg | |
import pyaudio | |
from PyQt5 import QtCore, QtGui |
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
uglystick = True | |
def ugly_python(): | |
if uglystick: | |
print "one space" | |
if uglystick: | |
print 'five space' | |
def more_uglyness(): | |
if uglystick: | |
print 'two space x2' |
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
""" | |
Before running: | |
$ pip install pillow | |
$ pip install requests | |
Example usage: | |
$ python mosaic_builder.py puppies my_template_image.jpg | |
For optional arguments: | |
$ python mosaic_builder.py -h |