Skip to content

Instantly share code, notes, and snippets.

View jamesonwilliams's full-sized avatar
💻

Jameson Williams jamesonwilliams

💻
View GitHub Profile
@jamesonwilliams
jamesonwilliams / okhttp-4.3.1-log-spam.md
Last active October 5, 2021 05:25
OkHttp 4.3.1 didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path

OkHttp 4.3.1 emits log spam on Android, even when using it in trivial way.

Example code:

Disposable disposable = Single.fromCallable(() ->
    new OkHttpClient().newCall(new Request.Builder()
        .url("https://raw.githubusercontent.com/square/okhttp/master/README.md")
        .get()
        .build())
@jamesonwilliams
jamesonwilliams / pinwheel-timer.md
Last active January 30, 2020 05:21
A timer that can be poked, to reset

Pinwheel Timer

This is named after the Pinwheel toy.

Another reasonable name might be "Resettable Timer."

You can picture spinning it. Before it stops spinning it, you help it to keep going, so that it won't stop.