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 | |
REGEX_DEV_TCPIP="192\.168\.[0-9].*" | |
REGEX_INET_IP_1="inet (192\.168\.[0-9]\.[0-9]{1,3})" | |
REGEX_INET_IP_2="[0-9\.]+" | |
#List the devices on the screen for your viewing pleasure | |
echo "listing devices..." | |
adb devices | |
echo |
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
# NOTE: these functions assume ANDROID_HOME/tools/bin is in your PATH | |
buildapks() { | |
bundletool build-apks --bundle=${1} --output=${2} | |
} | |
installapks() { | |
bundletool install-apks --apks=${1} | |
} |
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
data class Worker( | |
val quality: Int, | |
val wage: Int, | |
val ratio: Double = wage.toDouble() / quality.toDouble() | |
) | |
class MaxHeap(private var capacity: Int = 32) { | |
private var array = arrayOfNulls<Worker>(capacity) | |
var size = 0 |
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
.syntax unified | |
.arch armv6-m | |
.section .isr_vector, "a" | |
.align 2 | |
.globl __isr_vector | |
__isr_vector: | |
.long __StackTop /* Top of Stack */ | |
.long Reset_Handler /* Reset Handler */ | |
.long NMI_Handler /* NMI Handler*/ |
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 org.mockito.verification.VerificationMode | |
inline fun <T : Any> T.verify(verification: KVerification<T>.(T) -> Unit) = this.apply { | |
KVerification(this).verification(this) | |
} | |
class KVerification<out T>(private val mock: T) { | |
fun <R> invoked(mode: VerificationMode? = null, methodCall: T.() -> R): R { | |
return if (null != mode) { |
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
Homebrew build logs for libftdi on macOS 10.14 | |
Build date: 2018-07-01 20:10:12 |
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
Homebrew build logs for libftdi on macOS 10.14 | |
Build date: 2018-07-01 19:48:01 |
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
Homebrew build logs for libftdi on macOS 10.14 | |
Build date: 2018-07-01 19:32:06 |
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
Homebrew build logs for libtool on macOS 10.14 | |
Build date: 2018-07-01 18:32:45 |
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
// | |
// Binary.swift | |
// | |
// Created by Jefferson Jones on 2/14/17. | |
// Copyright © 2017 Jefferson Jones. All rights reserved. | |
// | |
import Foundation | |
class Binary { |