Skip to content

Instantly share code, notes, and snippets.

View ayetolusamuel's full-sized avatar
🎯
Focusing

Ayetolu Samuel ayetolusamuel

🎯
Focusing
View GitHub Profile
{
"products" : [
{
"id" : "1",
"name" : "HDMI-Wall-Face-Plate-Single-Panel",
"description" : "The cable wall plate with HDMI Jack insert is a great solution for a customized installation.Wire your house cleanly and efficiently for audio / video with this dual port HDMI wall plate. You no longer have to resort to messy cables hanging out of an ugly hole in the wall. This wall plate is the perfect means for HDMI ports to remotely access HD displays or media sources.",
"price" : "2,000.00 ",
{
"details" : [
{
"id" : "1",
"title" : "Apostle Joshua Selman |The Person of the HOLYSPIRIT|Grand Finale 7 Days of Supernatural Encounters and Visitation",
"description" : "Apostle Joshua Selman |The Person of the HOLYSPIRIT|Grand Finale 7 Days of Supernatural Visitation and Encounter Powerful message from Apostle Joshua Selman as he round up 7 days of Supernatural Visitation and Encounter",
"url" : "https://youtu.be/W2y9BMwvDnM",
"mp3_download_link" : "https://sv27.onlinevideoconverter.com/download?file=f5d3a0b1f5h7h7c2"
},
{
var ss = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1Db2yUZ31WzqF2aeFs0bX1s6lDlb-8pBdYSQvRXlevMY/edit#gid=0"); //spreadsheet link
var sheet = ss.getSheetByName('details'); // be very careful ... it is the sheet name .. so it should match
function doPost(e){
var action = e.parameter.action;
if(action =="update_user_details"){
return update_user_details(e);
CREATE DATABASE student_management_system;
USE student_management_system;
CREATE TABLE student_details (
student_id INT(20) NOT NULL UNIQUE PRIMARY KEY,
facaulty VARCHAR(100) NOT NULL,
elective_courses VARCHAR(200) NOT NULL,
required_courses VARCHAR(200) NOT NULL,
dept VARCHAR(70) NOT NULL,
Am trying to fetch all data from sqlite database based on a particular condition i.e i have a particular column name price that contact the product price
in format(3,000.00).
so my concern now is to perform a condition such as if price is less than 10,000, my query should return data base on the query..
my implementation
Am using mvvm architecture.
this is my dao implementation(method to fetch data)
package lagrangecode.com.alausasabi.webnotifications;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.media.RingtoneManager;
import android.net.Uri;
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.provider.Settings
import androidx.appcompat.app.AppCompatActivity
1. How to Get the Current Location Through the Android Application in Kotlin
https://medium.com/swlh/how-to-get-the-current-location-through-the-android-application-in-kotlin-and-then-save-the-e3a977059f15
//runtime permission check for location
fun checkPermission(): Boolean{
return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED
}
//request permission
fun requestPermission(){
ActivityCompat.requestPermissions(this,
arrayOf(Manifest.permission.ACCESS_FINE_LOCATION),
locationPermissionCode)
Smart Fruit Care(SFC) is an AI Based app, that detects a fruit via camera and gallery and retrieve some cool features of the fruit.
such as:
**Health Benefits.
**Historical Background.
**Botanical Name
**Species etc.
For this features to be implemented in the app, Camera permission will be requested by the users of the app.