Skip to content

Instantly share code, notes, and snippets.

@balzer82
balzer82 / simpleNeuralNetwork.ipynb
Last active March 9, 2016 12:42
A Simple Neural Network with Lasagne/Theano and Keras
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / InverseSensorModels.ipynb
Created February 17, 2016 12:36
Parametrierung eines Mixture Density Sensor Models für Tinkerforge Ultraschall Bricklet
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / tinkerforge-us-lookup-table.csv
Last active February 10, 2016 12:54
Lookup-Table for Tinkerforge Ultraschall Bricklet
RAW Distance[cm]
0 2.0
1 2.0
2 2.1
3 2.1
4 2.2
5 2.2
6 2.3
7 2.3
8 2.4
@balzer82
balzer82 / immoanalyze.ipynb
Last active December 13, 2015 23:16
Analyzing immo data in Dresden
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / randompick.py
Last active August 29, 2015 14:24
Teacher help: randomly choose a person and a topic to repeat
import random
import time
peeps = [u'Person A', u'Person B', u'Person C']
thema = [u'Unterschied Benziner/Diesel',
u'Zweikreisbremsanlage mit ABS',
u'Betriebsmittel und Umweltgefahren',
u'X',
u'Y']
@balzer82
balzer82 / 21306Waehler.ipynb
Created June 8, 2015 12:42
Die 21306 Wähler von Tatjana Festerling im Portrait (Statistisch)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / ExcelColumns.py
Last active August 29, 2015 14:22
If you want to convert between Excel Column (e.g. 'BF') and which number it is and back
import string
letter = string.ascii_uppercase
def num2excelcolumn(n):
'''
letter for the corresponding column
'''
if not isinstance(n, int):
raise Exception('Spalte kann nur ganze Zahl sein')
if n<27:
return letter[n-1]
@balzer82
balzer82 / Pyramide.m
Created April 2, 2015 06:27
Create a .gif of a rotating 3D Pyramide with Matlab
l=1;
ecken = {'Geld', 'Zeit', 'Kind', 'Ruhm+Ehre'};
%% Base
%
x=0;
y=1;
z=l;
for a = 0:120:360
@balzer82
balzer82 / audionormalization.sh
Created March 30, 2015 13:11
Audio Normalize and YouTube Optimization with ffmpeg
#Audio Normalize and YouTube Optimization with ffmpeg:
#Get the max volume of your out.ogv with:
ffmpeg -i out.ogv -af "volumedetect" -f null /dev/null
#then level up with the value you have under max-vol and prepare the stream for YouTube, e.g.:
ffmpeg -i out.ogv -c:v libx264 -preset fast -crf 18 -af "volume=13dB" -c:a aac -q:a 5 -pix_fmt yuv420p -strict -2 test.mp4
@balzer82
balzer82 / multicar.urdf
Last active August 29, 2015 14:15
Robot Description File for ROS
<?xml version="1.0"?>
<robot name="Multicar">
<link name="base_link">
<visual>
<geometry>
<cylinder length="0" radius="0"/>
</geometry>
<origin xyz="0 0 0" rpy="0 0 0" />
</visual>