Skip to content

Instantly share code, notes, and snippets.

@jamesonwilliams
jamesonwilliams / simple-datastore-consumer.md
Last active February 28, 2020 22:53
Simple DataStore Consumer App

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 / 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.