Skip to content

Instantly share code, notes, and snippets.

Drakeet drakeet

Block or report user

Report or block drakeet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View OkHttp with https getUnsafeOkHttpClient
import com.squareup.okhttp.OkHttpClient;
public class OkHttpUtils {
View TextDrawable
public class TextDrawable extends Drawable {
private final String text;
private final Paint paint;
public TextDrawable(String text) {
this.text = text;
this.paint = new Paint();
* Copyright (C) 2006 The Android Open Source Project
* 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
* Unless required by applicable law or agreed to in writing, software
drakeet / install-comodo-ssl-cert-for-nginx.rst
Created Mar 5, 2016 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

public class MainActivity extends AppCompatActivity implements Updatable {
private TextView textView;
protected void onCreate(Bundle savedInstanceState) {
textView = (TextView) findViewById(;
public class CustomMatchers {
public static Matcher<View> withBackground(final int resourceId) {
return new TypeSafeMatcher<View>() {
public boolean matchesSafely(View view) {
return sameBitmap(view.getContext(), view.getBackground(), resourceId);
-keep public class * extends android.os.Binder
-keepclassmembers enum * {
**[] $VALUES;
public *;
# v7
-keep public class** { *; }
-keep public class** { *; }
View gist:7cbfee84b1587a7c4c4e8167a7ca7f0e
### Keybase proof
I hereby claim:
* I am drakeet on github.
* I am drakeet ( on keybase.
* I have a public key ASCtsAYEK4FBAGci9LMr_H8U7MURxIVrbnVqfgzSUCyzpgo
To claim this, I am signing this object:
View QuickReturnDelegate.kt
* @author drakeet
class QuickReturnDelegate(private val scrollSlop: Int = 12) : RecyclerView.OnScrollListener() {
private lateinit var callback: (hide: Boolean) -> Unit
private var scrollY: Int = 0
View kotlin-proguard-rules
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String);
static void checkNotNullExpressionValue(java.lang.Object, java.lang.String);
static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String);
static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String);
static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String);
static void checkFieldIsNotNull(java.lang.Object, java.lang.String);
static void checkNotNull(java.lang.Object, java.lang.String);
static void checkNotNullParameter(java.lang.Object, java.lang.String);
You can’t perform that action at this time.