Skip to content

Instantly share code, notes, and snippets.

👀
At work

T. Meissner tmeissner

👀
At work
Block or report user

Report or block tmeissner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmeissner
tmeissner / Dockerfile
Created Aug 19, 2019
Dockerfile for SymbiYosys with GHDL-synth plugin
View Dockerfile
FROM debian:buster-slim AS build
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
clang \
bison \
flex \
libreadline-dev \
@tmeissner
tmeissner / psl_test_endpoint_ended.vhd
Last active Mar 14, 2016
Test case of evaluating PSL endpoint & ended constructs in VHDL code
View psl_test_endpoint_ended.vhd
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library std;
use std.env.all;
entity psl_test_endpoint is
@tmeissner
tmeissner / mp3_rename.py
Created Feb 18, 2016
Small tool to rename audio files in a directory
View mp3_rename.py
#!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import os
import stat
import re
import argparse
parser = argparse.ArgumentParser()
@tmeissner
tmeissner / py3_closures.py
Last active Aug 29, 2015
Some experiments with closures in Python 3
View py3_closures.py
def closure():
container = 0
def inc():
nonlocal container
container += 1
def get():
return container
def dec():
nonlocal container
container -= 1
@tmeissner
tmeissner / speiseplan.py
Last active Aug 29, 2015
Extract menu data from html file
View speiseplan.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import xml.dom.minidom as DOM
class SpeisePlan:
'''Class for parsing and extracting the meal data for each day of a week
lying in a given HTML file'''
@tmeissner
tmeissner / tb_adder_osvvm.vhd
Created Aug 14, 2014
Simple example of functional coverage using CoveragePkg of OSVVM
View tb_adder_osvvm.vhd
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use std.env.all;
library OSVVM;
use OSVVM.RandomPkg.all;
use OSVVM.CoveragePkg.all;
@tmeissner
tmeissner / st7565-lcd.c
Last active Dec 27, 2015
C tool to use a ST7565-LCD with Raspberry Pi
View st7565-lcd.c
#include <stdio.h>
#include <bcm2835.h>
// pin defines
#define LCD_CS 24
#define LCD_RST 23
#define LCD_A0 22
#define LCD_CLK 27
#define LCD_SI 17
@tmeissner
tmeissner / raspiweb.html
Last active Dec 20, 2015
raspiweb html website, relies on some external and self written js & css sources
View raspiweb.html
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>raspiweb</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@tmeissner
tmeissner / gcf.js
Created Jul 30, 2013
small javascript library for ajax & some other things
View gcf.js
// variable to en-/disable debug
// set to 1 to enable debug log
if (DEBUG === undefined) {
var DEBUG;
}
var gcf = {
@tmeissner
tmeissner / raspiweb.py
Last active Dec 20, 2015
python cgi script to generate temperature data in JSON format
View raspiweb.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import cgi
import json
import re
import os
import hashlib
import base64
import datetime
You can’t perform that action at this time.