Skip to content

Instantly share code, notes, and snippets.

@jthiem
jthiem / readintodb.py
Created March 3, 2019 22:19
Read moisture, temp and luminosity from Chirp sensor and store into a db.
import sqlite3
import mychirp
import datetime
import os
import tempfile
# connect to sensor and read the values
C = mychirp.Chirp()
C.trigger()
#!/usr/bin/python3
# make a pretty plot of the recent (1 week) moisture and temperature
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import sqlite3
import pandas as pd
import datetime
@jthiem
jthiem / Handout.ipynb
Created November 3, 2017 09:46
Begleitmaterial für die Vorlesung "Sprachverbesserung bei Normal- und Schwerhörenden: Algorithmen und Bewertung", mit Antworten
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jthiem
jthiem / animate.py
Created November 1, 2017 19:13
Raspberry Pi Zero Halloween project code: animate text on an OLED display and blink LEDs
import math
import time
import random
import Adafruit_GPIO.SPI as SPI
import Adafruit_SSD1306
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
@jthiem
jthiem / SRCII.ipynb
Last active May 2, 2017 21:41
Sample Rate Conversion: It's all about the Filter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Audio resampling in Python\n",
"\n",
"*by Joachim Thiemann, 11.8.2016, joachim.thiemann@uni-oldenburg.de*\n",
"\n",
@jthiem
jthiem / Resampling lib comparison.ipynb
Last active August 10, 2016 21:41
Audio resampling in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.