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 java.util.ArrayList | |
public class StateMachine<S, T>( | |
private var stateObject: State<S, T>, | |
private var states: List<State<S, T>> | |
) { | |
public val state: S | |
get() = stateObject.value | |
public fun move(input: T) { |
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 java.lang.ref.WeakReference; | |
import retrofit.Callback; | |
import retrofit.RetrofitError; | |
import retrofit.client.Response; | |
public abstract class WeakCallback<T, C> implements Callback<T> { | |
private final WeakReference<C> context; |
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
# Path | |
export DEV_FOLDER=~/development | |
export TOOLS_FOLDER=$DEV_FOLDER/tools | |
export PYTHON_VENV=~/development/envs | |
PATH=/usr/local/bin:$PATH | |
PATH=$PATH:/Applications/Android\ Studio.app/sdk/platform-tools | |
PATH=$PATH:$TOOLS_FOLDER/ndk | |
PATH=$PATH:~/development/gradle/gradle-1.9/bin |
NewerOlder