This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"homieServer": "tcp://192.168.188.250:1883", | |
"homieUser": "", | |
"homiePassword": "", | |
"homieDeviceName": "daikin-heatingunit", | |
"daikinIP": "192.168.188.200", | |
"daikinPort": 80, | |
"properties": [ | |
{ | |
"path": "0/DateTime", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.beans.BeanInfo; | |
import java.beans.IntrospectionException; | |
import java.beans.Introspector; | |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Change this to the full directory path that contains the source media | |
SOURCE_MEDIA_DIR="/Video_Library_nas" | |
#Change this directory to the full directory path that will contain the proxy media | |
#As those files are rather small, this could be a cloud directory | |
PROXY_MEDIA_DIR="/Video_Library_proxy" | |
#Images will be resized to be of at most this width | |
IMG_WIDTH=1024 | |
#Videos will be resized to be at most this wide | |
VIDEO_WIDTH=450 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static BigInteger srl(BigInteger l, int width, int shiftBy) { | |
if (l.signum() >= 0) | |
return l.shiftRight(shiftBy); | |
BigInteger opener = BigInteger.ONE.shiftLeft(width + 1); | |
BigInteger opened = l.subtract(opener); | |
BigInteger mask = opener.subtract(BigInteger.ONE).shiftRight(shiftBy + 1); | |
BigInteger res = opened.shiftRight(shiftBy).and(mask); | |
return res; | |
} |