Skip to content

Instantly share code, notes, and snippets.

View janLo's full-sized avatar
🤡

Jan Losinski janLo

🤡
View GitHub Profile
@janLo
janLo / caldav.php
Created April 23, 2012 10:55
My Environment
<?php
// vim: ft=php
/**********************
* Connection options *
**********************/
/*
* HTTP auth method
* ================
@janLo
janLo / de_DE.patch
Created May 22, 2012 00:16
German translation patch for agendav
diff --git a/web/lang/de_DE/de_DE.php b/web/lang/de_DE/de_DE.php
index e8b7211..5096aa7 100644
--- a/web/lang/de_DE/de_DE.php
+++ b/web/lang/de_DE/de_DE.php
@@ -84,12 +84,20 @@ $labels['friday_short'] = 'Fr';
$labels['saturday_short'] = 'Sa';
$labels['today'] = 'Heute';
+$labels['tomorrow'] = 'Morgen';
$labels['month'] = 'Monat';
@janLo
janLo / gist:586b2a074f3ba5dd14ad
Created August 30, 2015 01:10
Notification Center for Pebble - Emoj translation
U+00a9 > :copyright:
U+00ae > :registered:
U+203c > :bangbang:
U+2049 > :interrobang:
U+2122 > (tm)
U+2139 > :information_source:
U+2194 > :left_right_arrow:
U+2195 > :arrow_up_down:
U+2196 > :arrow_upper_left:
U+2197 > :arrow_upper_right:
import pyaudio
import struct
import sys
import numpy as np
from blinkstick import blinkstick
from PIL import Image
import time
import pyaudio
import struct
import sys
import numpy as np
from blinkstick import blinkstick
from PIL import Image
import time
#!/usr/bin/env python
import pyaudio
import struct
import sys
import argparse
import numpy as np
from PIL import Image
#!/usr/bin/env python
import pyaudio
import struct
import sys
import argparse
import numpy as np
from PIL import Image
class Normalizer(object):
num_samples = 100
def __init__(self, length):
self._length = length
self._array = np.zeros(length * self.num_samples, dtype='f')
self._idx = 0
def __call__(self, data):
new_idx = (self._idx + self._length) % len(self._array)
@janLo
janLo / fhem.cfg
Created September 28, 2016 19:56
attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global motd Messages collected while initializing FHEM:\
configfile: WEB: creating device allowed_WEB for attribute basicAuth\
WEBphone: creating device allowed_WEBphone for attribute basicAuth\
attr global statefile ./log/fhem.save
attr global updateInBackground 1
diff --git a/homeassistant/components/pilight.py b/homeassistant/components/pilight.py
index ec3fa04..8a78ec8 100644
--- a/homeassistant/components/pilight.py
+++ b/homeassistant/components/pilight.py
@@ -7,6 +7,9 @@ https://home-assistant.io/components/pilight/
import logging
import socket
import time
+import threading
+