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
apply plugin: "jacoco" | |
jacoco { | |
toolVersion = deps.test.jacocoVersion | |
} | |
tasks.withType(Test) { | |
jacoco.includeNoLocationClasses = true | |
} |
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
/* | |
* Copyright 2016 Darwin Bautista | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
@Component( | |
modules = arrayOf(LoginModule::class), | |
dependencies = arrayOf(LoggedOutComponent::class)) | |
@FeatureScope | |
interface LoginComponent { | |
fun inject(activity: LogInActivity) | |
@Component.Builder | |
interface Builder { | |
fun loggedOutComponent(component: LoggedOutComponent): Builder |
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
@Singleton | |
@Component(modules = arrayOf(PersistenceModule::class)) | |
interface LoggedOutComponent { | |
fun userRepository(): UserRepository | |
} |
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
package rx.plugins; | |
import rx.Scheduler; | |
import rx.android.plugins.RxAndroidSchedulersHook; | |
import rx.schedulers.Schedulers; | |
/** | |
* Created by ata on 07.02.2016. | |
*/ | |
public class AndroidSchedulersHook extends RxAndroidSchedulersHook { |
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
source: http://code.logos.com/blog/2011/06/git_bash_in_console2.html | |
Git Bash in Console2 | |
I started using Console2 after reading Scott Hanselman’s recommendation. Not only can it display a regular command prompt and PowerShell in tabs (as he describes), any console process can be added. msysgit users can add Git Bash to by opening the Settings dialog and adding a tab with the following properties: | |
Title: Git Bash | |
Icon: C:\Program Files (x86)\Git\etc\git.ico | |
Shell: C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i" | |
Startup dir: C:\YourCode |
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
; Autohotkey Capslock Remapping Script | |
; Danik | |
; More info at http://danikgames.com/blog/?p=714 | |
; danikgames.com | |
; | |
; Functionality: | |
; - Deactivates capslock for normal (accidental) use. | |
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
; - Access the following functions when pressing Capslock: | |
; Cursor keys - J, K, L, I |
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
Observable.just(1) // 1 will be emited in the IO thread pool | |
.subscribeOn(Schedulers.io()) | |
.flatMap(...) // will be in the IO thread pool | |
.observeOn(Schedulers.computation()) | |
.flatMap(...) // will be executed in the computation thread pool | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(); // will be executed in the Android main thread (if you're running your code on Android) |
NewerOlder