Skip to content

Instantly share code, notes, and snippets.

@balzer82
balzer82 / alpha-beta-filter.ipynb
Last active September 12, 2023 13:39
Alpha-Beta-Filter in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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>
@balzer82
balzer82 / 2015-02-14_10-31-44.csv
Last active August 29, 2015 14:15
Tesla Model S P85+ Acceleration
We can't make this file beautiful and searchable because it's too large.
loggingTime,loggingSample,locationTimestamp_since1970,locationLatitude,locationLongitude,locationAltitude,locationSpeed,locationCourse,locationVerticalAccuracy,locationHorizontalAccuracy,locationFloor,locationHeadingTimestamp_since1970,locationHeadingX,locationHeadingY,locationHeadingZ,locationTrueHeading,locationMagneticHeading,locationHeadingAccuracy,accelerometerTimestamp_sinceReboot,accelerometerAccelerationX,accelerometerAccelerationY,accelerometerAccelerationZ,gyroTimestamp_sinceReboot,gyroRotationX,gyroRotationY,gyroRotationZ,motionTimestamp_sinceReboot,motionYaw,motionRoll,motionPitch,motionRotationRateX,motionRotationRateY,motionRotationRateZ,motionUserAccelerationX,motionUserAccelerationY,motionUserAccelerationZ,motionAttitudeReferenceFrame,motionQuaternionX,motionQuaternionY,motionQuaternionZ,motionQuaternionW,motionGravityX,motionGravityY,motionGravityZ,motionMagneticFieldX,motionMagneticFieldY,motionMagneticFieldZ,motionMagneticFieldCalibrationAccuracy,activityTimestamp_sinceReboot,activity,activ
@balzer82
balzer82 / Leistung-E2-180.csv
Last active August 29, 2015 14:14
We have a LogLog Graph and need some Values out of it
# n [1/min] P [kW]
250.0 3.0
260.0 3.2
270.0 3.4
280.0 3.6
290.0 3.8
300.0 4.1
310.0 4.3
320.0 4.5
330.0 4.8