#####Logcat Colors for IntelliJ Darcula Theme (original post)
- Preferences -> Editor -> Android Logcat
- "Save As" scheme
- Uncheck "Use inherited attributes" option
- Edit foreground color with the following
Debug : #6897BB
Info : #6A8759
#!/bin/zsh | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
brew install jenv | |
brew install nvm | |
mkdir ~/.nvm | |
brew cask install gpg-suite | |
brew tap AdoptOpenJDK/openjdk |
package com.vinaysshenoy | |
import org.approvaltests.Approvals | |
import org.approvaltests.approvers.ApprovalApprover | |
import org.approvaltests.core.ApprovalFailureReporter | |
import org.approvaltests.core.ApprovalReporterWithCleanUp | |
import org.approvaltests.core.ApprovalWriter | |
import org.approvaltests.namer.ApprovalNamer | |
import org.approvaltests.writers.ImageApprovalWriter | |
import java.awt.image.BufferedImage |
./emulator-headless -avd -list-avds | |
./emulator-headless -avd Nexus_5_API_28 |
#####Logcat Colors for IntelliJ Darcula Theme (original post)
Debug : #6897BB
Info : #6A8759
# Prerequisites | |
# - Python 3 | |
# - *nix OS | |
# - git must be available on the command line | |
# - Android SDK and Java 8 must be setup | |
# - Repository SSH fingerptint must be added to ~/.ssh/known_hosts | |
# - ANDROID_SDK_ROOT env variable must be set | |
# - An AVD with the name "uitest" must be pre-created | |
# - mongodb started and running on port 27017 |
apply from: 'secrets.gradle' | |
group 'com.vinaysshenoy' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
ext { | |
common = [ | |
kotlin: '1.3.10' | |
] |
package com.vinaysshenoy.util | |
import android.content.Context | |
import android.graphics.Typeface | |
import android.support.annotation.StringRes | |
import android.support.v4.content.res.ResourcesCompat | |
import android.text.Annotation | |
import android.text.Spannable | |
import android.text.SpannableString | |
import android.text.SpannedString |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
sealed class PresenterToViewMsg | |
data class Msg1(val prop: Int): PresenterToViewMsg() | |
data class Msg2(val prop: String): PresenterToViewMsg() | |
sealed class ViewToPresenterMsg | |
data class Msg3(val prop: Int): ViewToPresenterMsg() | |
data class Msg4(val prop: String): ViewToPresenterMsg() |
import io.reactivex.Observable | |
data class Item(val priority: Int) | |
Observable.fromArray(Item(10), Item(5), Item(25)) | |
.reduce { first, next -> if(first.priority < next.priority) first else next } | |
.toSingle() //This converts a Maybe to a Single that will emit an error if there are no elements in the stream | |
.subscribe({ println("Least priority: $it") }, {}) |