Skip to content

Instantly share code, notes, and snippets.

View hasenbalg's full-sized avatar
🐩

koongfoopoodle hasenbalg

🐩
View GitHub Profile
@hasenbalg
hasenbalg / displaytest.py
Created March 1, 2018 14:29
system monitor for a 4line lcd
#!/usr/bin/python
import time
from subprocess import *
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
# Zuordnung der GPIO Pins (ggf. anpassen)
DISPLAY_RS = 7
DISPLAY_E = 8
DISPLAY_DATA4 = 25
@hasenbalg
hasenbalg / installTypescriptChromebook.sh
Created February 20, 2018 13:50
Install typescript on an old cruton ubuntu for chrome book and sets up example project
function makeIndexHtml {
FILE="index.html";
touch $FILE;
cat >$FILE <<EOL
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>New TypeScript Project</title>
gg=G autoindent
yy Zeile kopieren
dd Zeile ausschneiden
p Zeie wieder einfuegen
@hasenbalg
hasenbalg / 0x81567580ebe4659F35fBe57e43861B06E97a3aE6
Created November 6, 2017 17:25
0x81567580ebe4659F35fBe57e43861B06E97a3aE6
0x81567580ebe4659F35fBe57e43861B06E97a3aE6