Skip to content

Instantly share code, notes, and snippets.

Jameson Williams jamesonwilliams

Block or report user

Report or block jamesonwilliams

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
@jamesonwilliams
jamesonwilliams / simple-datastore-consumer.md
Last active Feb 28, 2020
Simple DataStore Consumer App
View simple-datastore-consumer.md

Sample App Consuming Maven Local

app/src/main/java/com/amplifyframework/dsconsumer/MainActivity.java:

package com.amplifyframework.dsconsumer;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
@jamesonwilliams
jamesonwilliams / okhttp-4.3.1-log-spam.md
Last active Jan 30, 2020
OkHttp 4.3.1 didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path
View okhttp-4.3.1-log-spam.md

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

Example code:

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 Jan 30, 2020
A timer that can be poked, to reset
View pinwheel-timer.md

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.

You can’t perform that action at this time.