Required HW + SW:
- Mi Temperature and Humidity Monitor 2
- ESP32 (flash size min: 4mb) with BT LE
- MQTT
- HASS.IO
Steps: ESP32 + bluetooth firmware: http://ota.tasmota.com/tasmota32/release/tasmota32-bluetooth.bin
Required HW + SW:
Steps: ESP32 + bluetooth firmware: http://ota.tasmota.com/tasmota32/release/tasmota32-bluetooth.bin
using System; | |
using System.Runtime.InteropServices; | |
namespace ATIDisplay | |
{ | |
static class Kernel32 | |
{ |
using System; | |
using System.Runtime.InteropServices; | |
namespace ATIDisplay | |
{ | |
static class Kernel32 | |
{ |
uint wang_hash(uint seed) | |
{ | |
seed = (seed ^ 61) ^ (seed >> 16); | |
seed *= 9; | |
seed = seed ^ (seed >> 4); | |
seed *= 0x27d4eb2d; | |
seed = seed ^ (seed >> 15); | |
return seed; | |
} | |
package fboldog.chrometabsaver | |
import android.content.Intent | |
import android.support.test.InstrumentationRegistry | |
import android.support.test.InstrumentationRegistry.getInstrumentation | |
import android.support.test.uiautomator.UiDevice | |
import org.junit.Test | |
import android.support.test.runner.AndroidJUnit4 | |
import android.support.test.uiautomator.UiSelector | |
import android.util.Log |
package hu.akarnokd.comparison | |
import org.openjdk.jmh.annotations.* | |
import java.util.* | |
import java.util.concurrent.TimeUnit | |
fun main(args: Array<String>) { | |
val s = ShakespearePlaysScrabbleWithKotlin() | |
s.init() | |
System.out.println(s.measureThroughput()) |
// usage: | |
// buildscript { | |
// apply from: 'https://git.io/kotlinEAP' | |
// ... | |
// } | |
// and call kotlinEAP(it) in repositories | |
ext.kotlinEAP = { RepositoryHandler handler -> | |
handler.maven { | |
url 'https://dl.bintray.com/kotlin/kotlin-eap' |
diff --git a/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt b/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
index 3d23e13..70317f6 100644 | |
--- a/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
+++ b/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
@@ -31,13 +31,13 @@ public fun List<String>.joinToCamelCaseAsVar(): String = when(size) { | |
else -> get(0).toCamelCaseAsVar() + drop(1).joinToCamelCase() | |
} | |
-public fun Array<String>.joinToCamelCase(): String = when(size()) { | |
+public fun Array<String>.joinToCamelCase(): String = when(size) { |
/* | |
Copyright 2016 Ferenc Boldog | |
Copyright 2012 Viktor Klang | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
import android.app.Activity; | |
import android.support.annotation.IdRes; | |
import android.view.View; | |
import java.lang.annotation.Annotation; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
import java.lang.reflect.Field; |