Skip to content

Instantly share code, notes, and snippets.

View paintedpotato's full-sized avatar
💭
Mandazi on my mind

paintedpotato

💭
Mandazi on my mind
View GitHub Profile
@srix55
srix55 / DoubleClickListener.java
Last active October 16, 2023 11:43
Simple double-click listener that can be used like the way OnClickListener is used on a view in Android
import android.os.SystemClock;
import android.view.View;
import android.view.View.OnClickListener;
/**
* A simple double-click listener
* Usage:
* // Scenario 1: Setting double click listener for myView
* myView.setOnClickListener(new DoubleClickListener() {
*
@makorowy
makorowy / Classifier.kt
Created February 25, 2018 19:07
TensorFlow - Hot or Not example. Creating a classifier interface.
interface Classifier {
fun recognizeImage(bitmap: Bitmap): Result
}
@makorowy
makorowy / Result.kt
Created February 25, 2018 19:07
TensorFlow - Hot or Not example. Result data class.
data class Result(val result: String, val confidence: Float)