I hereby claim:
- I am AlonsoFloo on github.
- I am alonsofloo (https://keybase.io/alonsofloo) on keybase.
- I have a public key whose fingerprint is FA55 3E1F F6FE EE77 190E 92B7 9FF6 013D C330 70F2
To claim this, I am signing this object:
-----BEGIN CERTIFICATE----- | |
MIIGAjCCA+qgAwIBAgIJAM64OixRfexaMA0GCSqGSIb3DQEBCwUAMIGVMQswCQYD | |
VQQGEwJGUjETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQg | |
V2lkZ2l0cyBQdHkgTHRkMSgwJgYDVQQDDB9GbG9yaWFuIFlhbm5pY2sgRnJlZGVy | |
aWMgQUxPTlNPMSQwIgYJKoZIhvcNAQkBFhVhbG9uc28uZmxvb0BnbWFpbC5jb20w | |
HhcNMjMwMTE0MTEzMTM0WhcNMzgwMTEwMTEzMTM0WjCBlTELMAkGA1UEBhMCRlIx | |
EzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMg | |
UHR5IEx0ZDEoMCYGA1UEAwwfRmxvcmlhbiBZYW5uaWNrIEZyZWRlcmljIEFMT05T | |
TzEkMCIGCSqGSIb3DQEJARYVYWxvbnNvLmZsb29AZ21haWwuY29tMIICIjANBgkq | |
hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEApd14qTZI+zp1VurtZmsViY1d/uZWBtY0 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
"""Helper script to generate a TrustKit or HPKP pin from a PEM/DER certificate file. | |
How to use : | |
> python get_pin_from_certificate.py cert.pem | |
> python get_pin_from_certificate.py --type DER ca.der | |
""" | |
from __future__ import print_function | |
from subprocess import Popen, PIPE | |
from sys import stdin |
class Settings { | |
static let shared: Settings = { | |
Settings() | |
}() | |
private init() { | |
// Private, due to singleton | |
} | |
@UserDefaultProperty("on_off", defaultValue: false) |
class ForegroundServiceLauncher(private val serviceClass: Class<out Service>) { | |
private var isStarting = false | |
private var shouldStop = false | |
@Suppress("DEPRECATION") | |
private inline fun <reified T : Service> Context.isServiceRunning(service: Class<out T>) = | |
(getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager) | |
.getRunningServices(Integer.MAX_VALUE) | |
.any { it.service.className == service.name } |
interface HasWorkerInjector { | |
fun workerInjector(): AndroidInjector<Worker> | |
} | |
class AndroidInjection { | |
companion object {} | |
} | |
fun AndroidInjection.Companion.inject(worker: Worker) { |
public abstract class AbstractBindableItem<Item extends AbstractBindableItem & IItem & IClickable, VH extends FastBindableViewHolder<Item, Binding>, VM extends AndroidViewModel, Binding extends ViewDataBinding> extends AbstractItem<Item, VH> { | |
@NotNull | |
private VM viewModel; | |
public AbstractBindableItem(@NotNull VM viewModel) { | |
super(); | |
this.viewModel = viewModel; | |
} |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Matrix; | |
import android.media.ExifInterface; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.support.annotation.FloatRange; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |