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
# 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 |
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 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 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 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
^((?!ResourcesManager|InputEventReceiver|PopupWindow|MaliEGL|PhoneWindow|GraphicBuffer|.MALI..Gralloc.|InputMethodManager|libc-netbsd|NativeCrypto|OpenSSLLib|VelocityTracker|Posix|View|System.out|ADB_SERVICES|BatteryMeterView|BufferQueue|dalvikvm|ActivityThread|PowerManagerService|SurfaceFlinger|OpenGLRenderer|ANRManager|InputReader|PhoneInterfaceManagerEx|PowerManagerNotifier|KeyguardUpdateMonitor|WifiStateMachine|PowerManagerDisplayController|WifiHW|AppOps|StatusBar\.NetworkController|dingtao_Resolver|Provider.Settings|System.out|SignalClusterView|wpa_supplicant|SurfaceFlinger|Tethering|SIMHelper|wifi).)*$ |
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
<?xml version="1.0"?><!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<module name="Checker"> | |
<!--module name="NewlineAtEndOfFile"/--> | |
<module name="FileLength" /> | |
<module name="FileTabCharacter" /> | |
<!-- Trailing spaces --> |
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
==== Warrior ==== | |
UI: | |
dmepObqjPcQgfcfNsjvUfjP2Lqsmmj4yuvwMuPNrsmnQQCnsQTPK03OQQXjvOZjHQ5jvq5Eiuk2hcLshujLfkrpuczIKK4IkPQnQKOpIqPAKcjvNuQOzsss3eHs2Ps9tuXqfsSuH4PQMQixvQaBvij5RkjmxHKYEH)kvnyPuhwulwi1JPktMexMYMvIpJQgTuCAKwTqsQxlHYSr52iA3u53KA4c1YL0ZvmDIRly7iKVJGXJq15rLwVubz)sjdFiHNrcc(G3nQ4lQuiQ4BvCsCfCfKW5YzzzmbBv7tf14JXwIIM6e8soPehILQU(vMWRgpv7sCJnC(QoeJ7cKPkLN3Qd2(WPk4RixRuDTv71c18GZ0zfKWvOlluVat4IeozGjuKGabVM9mKWjdmHIeei4HX69y5zWLAWWLmZCcs4KbMqrcceCpwEgKWhQJNz4RyTir6Ktei4vnZqcNmWeksqGab3iEC2PykiAi4EiHTpKW5YzzzmbBvRgN6PDiA8fTtwjlZp4C6GKQ25E94mDwbjCjZmNGeozGjuKGab3JLNbj8H64zg(kwlsKo5ebcUcDzH6fycxKWjdmHIeei4vnZqcNmWeksqGGpXMhs4d1XZmSvbNmWeksy7dLqGGhgR3JLNbL4HX690KrNfuIxZEgs4KbMqrccei4vJNQDjUXgEouZrNR4cL0QRu7e81ZiQd6Sv7vQDcUcDIzzUjJ4IQAlcER24sLYZBvKWfUXg(izjm4bNrK5e8Cq04grMtWJIMGvX9cJOj7BOkgUqjnf8Wy9bhvqje8gJY3iy7RJrf14UazQs55T6GTpCHsA1t7qg2D7ItvWJK5nCcufPb7Uf6cb7UiHZLZYYyc2(JVODYkzz(bNthKu1o3Rhp6CTintxrcBFyxa7Uy7dBvWkxTRVv9xfvwTGkD9VB3cfhlQwTAi4mDwbjCjZmNGeozGjuKGab3JLNbj8H64zg(kwlsKo5ebcUcDzH6fycxKWjdmHIeei41 |
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
set PATH /home/pablo/development/android-studio/bin $PATH | |
set PATH /home/pablo/development/flatbuffers-1.1.0 $PATH | |
set PATH /home/pablo/Android/Sdk/platform-tools/ $PATH | |
set PATH /home/pablo/Android/Sdk/tools/ $PATH | |
set PATH /home/pablo/.gem/ruby/1.9.1/bin $PATH | |
set PATH /home/pablo/Android/NDK $PATH | |
set PATH /home/pablo/.cargo/bin $PATH | |
set PATH /home/pablo/swift-2.2/usr/bin $PATH | |
set -g -x CC /usr/bin/clang |
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 java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Target(ElementType.FIELD) | |
@Retention(RetentionPolicy.RUNTIME) | |
public @interface DaggerOverride { | |
Class<?> value(); |
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 com.facebook.binaryresource.BinaryResource | |
import com.facebook.cache.common.CacheKey | |
import com.facebook.cache.common.WriterCallback | |
import com.facebook.cache.disk.FileCache | |
import com.facebook.crypto.Crypto | |
import com.facebook.crypto.Entity | |
import java.io.InputStream | |
fun configureFresco() { | |
val frescoConfig = ImagePipelineConfig.newBuilder(context) |
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 java.util.* | |
import kotlin.reflect.KProperty | |
class MutableFieldProperty<R, T : Any>(private val initializer: (R) -> T) { | |
private val map = WeakHashMap<R, T>() | |
operator fun getValue(thisRef: R, property: KProperty<*>): T = | |
map[thisRef] ?: setValue(thisRef, property, initializer(thisRef)) | |
operator fun setValue(thisRef: R, property: KProperty<*>, value: T): T { | |
map[thisRef] = value |
OlderNewer