Skip to content

Instantly share code, notes, and snippets.

View martin2250's full-sized avatar

Martin Pittermann martin2250

View GitHub Profile
@jkullick
jkullick / raspberry-pi-chroot-armv7-qemu.md
Last active March 24, 2024 14:36
Chroot into Raspberry Pi ARMv7 Image with Qemu
# install dependecies
apt-get install qemu qemu-user-static binfmt-support

# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest

# extract raspbian image
unzip raspbian_latest
@pentlander
pentlander / tasker_morse.js
Created July 14, 2016 00:57
Vibrate to the contact's initials in morse code with Tasker
var dotLength = 110;
var dashLength = 3 * dotLength;
var pauseBetweenElements = 2 * dotLength;
var pauseBetweenWords = 3 * dotLength;
function nameToVibrations(fullName) {
var initials = getInitials(fullName);
var vibrations = initials.map(wordToMorseCode)
.map(morseCodeToVibrations)
.join(",".concat(pauseBetweenWords).concat(","));