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 / weather_station_tweeter.py
Last active October 7, 2017 10:06
Tinkerforge Weather Station plus Tweepy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import sys
import time
from datetime import timedelta
try:
import tweepy
@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 / 31C3: a new dawn-Top10-Talks.png
Last active February 24, 2021 07:47
Top 10 Video views of CCC events from media.ccc.de
31C3: a new dawn-Top10-Talks.png
@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