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
| rem | |
| rem Connect to android device for debugging over WiFi | |
| rem | |
| rem Setup | |
| echo off | |
| cls | |
| rem Header |
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
| #!/usr/bin/env bash | |
| # | |
| # Connect to android device for debugging over WiFi. Simply plug it in, run this | |
| # script, then unplug it again. | |
| # | |
| # Find path to ADB | |
| function adbpath() { | |
| # List of possible locations |
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
| package com.ydangleapps.bluetooth | |
| import nl.komponents.kovenant.* | |
| import nl.komponents.kovenant.functional.bind | |
| /** Queue operations */ | |
| class PromiseQueue { | |
| // Pending operations | |
| val pendingOperations = mutableListOf<() -> Promise<Unit, Exception>>() |
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
| package com.mypackage | |
| import nl.komponents.kovenant.Promise | |
| import nl.komponents.kovenant.deferred | |
| import nl.komponents.kovenant.functional.bind | |
| import nl.komponents.kovenant.task | |
| import nl.komponents.kovenant.then | |
| /** | |
| * Utilities for recovering promises. |