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
Testing started at 9:26 AM ... | |
07/18 09:26:57: Launching LoginActivityEspress... | |
$ adb push /Users/esa/Documents/AndroidStudioProjects/driver-android-new/apks/etobeedriver-dev-debug.apk /data/local/tmp/com.etobee.driver | |
$ adb shell pm install -r "/data/local/tmp/com.etobee.driver" | |
pkg: /data/local/tmp/com.etobee.driver | |
Success | |
$ adb push /Users/esa/Documents/AndroidStudioProjects/driver-android-new/etobeedriver/build/outputs/apk/etobeedriver-dev-debug-androidTest.apk /data/local/tmp/com.etobee.driver.test |
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
val denom = arrayOf(1, 2, 5, 10, 20, 50, 100) | |
val amount = arrayOf(5, 11, 53, 122, 155, 157, 210, 200) | |
fun main(args: Array<String>) = amount.forEach { currentAmount -> | |
val suggestions = mutableListOf<Int>() | |
denom.forEach { | |
if (it >= currentAmount) { | |
suggestions += it |
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
##---------------Begin: proguard configuration common for all Android apps ---------- | |
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-verbose | |
-dump class_files.txt | |
-printseeds seeds.txt | |
-printusage unused.txt |
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
public class LruStorage extends LinkedHashMap<String, byte[]> | |
implements KV.Storage { | |
private final ExecutorService mService = Executors.newSingleThreadExecutor(); | |
private final KV.Storage mStorage; | |
private final int mMaxSize; | |
public LruStorage(KV.Storage storage, int size) { | |
super(size/2, 0.75f, true); | |
mStorage = storage; |
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
private static OkHttpClient getUnsafeOkHttpClient() { | |
try { | |
// Create a trust manager that does not validate certificate chains | |
final TrustManager[] trustAllCerts = new TrustManager[] { | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { | |
} | |
@Override |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
TARGET_DIR = ARGV[0] | |
@failing_module = [] | |
@no_test_module = [] | |
def fail_number(file_path) | |
file = IO.read(file_path) |
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
class MemoryProfilerRule : TestRule { | |
override fun apply(base: Statement?, description: Description?): Statement { | |
return MemoryProfilerWatcher().apply(base, description) | |
} | |
private inner class MemoryProfilerWatcher : TestWatcher() { | |
private val runtime = Runtime.getRuntime() | |
private var before: Long = 0 |
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
require 'formula' | |
class Drafter < Formula | |
homepage 'http://apiblueprint.org' | |
head 'https://github.com/apiaryio/drafter.git', :tag => 'v4.1.0' | |
def install | |
system "./configure", "--shared" | |
system "make", "drafter" | |
bin.install Dir["bin/drafter"] |
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
#!/usr/bin/env bash | |
TARGET=temp_target | |
AAR_URL=$1 | |
TARGET_NAME=$2 | |
ZIP_NAME=jetifier.zip | |
# Download Jetifier | |
curl "https://dl.google.com/dl/android/studio/jetifier-zips/1.0.0-beta09/jetifier-standalone.zip" -o $ZIP_NAME |