Skip to content

Instantly share code, notes, and snippets.

@jobayer
jobayer / Parents.kt
Created April 28, 2020 09:35
Parents Data Model Class
@Parcelize
data class Parents(
var accountID: String = "",
var uniqueID: String = "",
var name: String = "",
var email: String = "",
var phone: String = "",
var additionalPhone: String = "",
var photoUrl: String = "",
var aadharNumber: Long = 0,
@jobayer
jobayer / build.gradle
Last active May 24, 2020 05:25
Problem fixed build.gradle file for Guava duplicate class conflict
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 19 21:32:12 2022
@author: Md Jobayer
"""
List1 = [1, 2, 5, 7, 8, 13, 16, 17, 20, 21]
def second_min(list):
@jobayer
jobayer / rpi_inference.py
Last active May 9, 2024 04:12
Predict audio files using TFLite model in Raspberry PI (Tested on RPI 3B+)
mdl_path = "models/bently.tflite"
audio_files_dir = "audio"
interpreter = tflite.Interpreter(model_path=mdl_path)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
print("Input details:", input_details)