This file contains 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
/* | |
* https://overreacted.io/algebraic-effects-for-the-rest-of-us/ | |
*/ | |
private val effectsStack = ThreadLocal<EffectsFrame>() | |
fun <T> perform(effectKey: Any): T { | |
var frame = effectsStack.get() | |
while (frame != null) { | |
@Suppress("UNCHECKED_CAST") |
This file contains 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 | |
adb kill-server | |
adb start-server | |
echo "Connect device with usb cable" | |
adb wait-for-device | |
ANDROID_IP=`adb shell ifconfig wlan0 | awk '/inet addr/ {gsub("addr:", "", $2); print $2}'` | |
adb tcpip 5555 | |
adb connect $ANDROID_IP:5555 |