Skip to content

Instantly share code, notes, and snippets.

@balzer82
balzer82 / electromagneticWave
Last active August 29, 2015 13:58
Animation for an Electromagnetic Wave
clear all
close all
clc
%% Zeichne eine elektromagnetische Welle
f=103.2e6; % Frequenz der Welle
w=2*pi*f; % Kreisfrequenz
oversampling=20;% Abtastung
c=3e8; % Lichtgeschwindigkeit in m/s
@balzer82
balzer82 / ffmpeg.md
Last active August 29, 2015 14:03
ffmpeg Vimeo encoding options

Install ffmpeg on Mac:

sudo port install ffmpeg

Vimeo has a 500MB filesize limit in the basic account, so you might want to reduce the file size to the limit, if it is too large. Let's say you have a 20min video file, which is too large. Then you have to reduce the bitrate for encoding:

(500 MB * 8192) / (20min * 60) = ~3413 kilobits/s

Minus the bitrate for audio:

@balzer82
balzer82 / iPhone Verfügbarkeits Checker.py
Last active August 29, 2015 14:08
Checken ob iPhone im Store verfügbar ist und antwittern
# -*- coding: utf-8 -*-
import requests
import tweepy
import time
import sys
# Get Store Number from here:
# https://reserve.cdn-apple.com/DE/de_DE/reserve/iPhone/stores.json
try:
stores = requests.get('https://reserve.cdn-apple.com/DE/de_DE/reserve/iPhone/stores.json').json()['stores']
@balzer82
balzer82 / WhyCorrectHorseBatteryStaple.ipynb
Created November 24, 2014 13:23
Why XKCD Comic about the 'correcthorsebatterystaple' password
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / avarage_salary.ipynb
Created November 25, 2014 10:08
Average Salary by Programming Language
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / Sportwette.ipynb
Last active August 29, 2015 14:10
Wette bleibt Glücksspiel. Wir wetten auf Unentschieden beim Fußball. Lohnt das?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balzer82
balzer82 / ungespielt.ipynb
Last active August 29, 2015 14:12
`ungespiel` Channel Entwicklung vor und mit Mediakraft
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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 / 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>