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
🖕 👨 | |
🐛💤👔🐛 | |
⛽ 👢 | |
⚡ 8=👊=D💦 | |
🎸 🌂 | |
👢 👢 |
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 FilteredLogPolicy @Inject constructor( | |
private val logDao: LogDao, | |
private val filterRepository: FilterRepository, | |
private val dispatcher: CoroutineDispatcher = Dispatchers.IO | |
) { | |
suspend operator fun invoke() = withContext(dispatcher) { | |
filterRepository.filter.catch { | |
logError(it) | |
emit(LogFilters()) | |
}.flatMapLatest { |
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
{ | |
"basics": { | |
"name": "Kyle Riedemann", | |
"label": "Android Developer", | |
"email": "[email protected]", | |
"phone": "(404) 666-1004", | |
"website": "http://kyleriedemann.com", | |
"summary": "I'm a passionate software developer focusing mostly on Android. I've spent the last few years living in the Twin Cities, but have recently moved back to Oklahoma.", | |
"location": { | |
"postalCode": "OK 73003", |
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
# Description: Boxstarter Script | |
# Author: Kyle Riedemann <[email protected]> | |
# Last Updated: 2018-05-26 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
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
import android.app.Activity | |
import android.content.Intent | |
import android.support.test.rule.ActivityTestRule | |
import org.junit.runner.Description | |
import org.junit.runners.model.Statement | |
class AcceptanceTestRule<A : Activity?>(activityClass: Class<A>?, initialTouchMode: Boolean, launchActivity: Boolean) : ActivityTestRule<A>(activityClass, initialTouchMode, launchActivity) { | |
override fun afterActivityLaunched() { | |
super.afterActivityLaunched() |
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
task clean(type: Exec) { | |
ext.lockhunter = '\"C:\\Program Files\\LockHunter.exe\"' | |
def buildDir = file(new File("build")) | |
commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir | |
} |
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 callStackPosition: Int = 2 | |
fun Activity.trace(message: String) { | |
if (this is BaseActivity) { | |
this.logger.trace(message) | |
} else { | |
Log.v(Thread.currentThread().stackTrace[callStackPosition].className, message) | |
} | |
} |
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
import android.support.annotation.Nullable; | |
import com.fernandocejas.arrow.strings.Strings; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Builder for a static google maps URL. Must be initialized with a valid API key with the google maps service enabled. | |
* |
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
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
import com.fernandocejas.arrow.functions.Function; | |
import com.fernandocejas.arrow.functions.Predicate; | |
public class GestureDetectors { | |
public static class OnDown implements GestureDetector.OnGestureListener { | |
private final Predicate<MotionEvent> predicate; |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder