Skip to content

Instantly share code, notes, and snippets.

View MasKoding's full-sized avatar

Dimas Priyandi MasKoding

View GitHub Profile
implementation 'com.github.bumptech.glide:glide:4.14.2'
// retrofit library
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
jcenter()
maven { url "https://jitpack.io" }
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cvKategori"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
app:cardCornerRadius="5dp"
app:cardElevation="3dp">
object Api {
var Categories = "https://www.themealdb.com/api/json/v1/1/categories.php"
}
package com.example.learnview.network
object Api {
var Categories = "https://www.themealdb.com/api/json/v1/1/categories.php"
var Filter = "https://www.themealdb.com/api/json/v1/1/filter.php?c={strCategory}"
var DetailRecipe = "https://www.themealdb.com/api/json/v1/1/lookup.php?i={idMeal}"
}
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.example.learnview'
compileSdk 33
defaultConfig {
<?php
require_once 'connect.php';
if(isset($_POST['submit'])){
$taskInput = $_POST['task'];
$statusSelected = $_POST['status'];
<?php
require_once 'connect.php';
$status = ['Done','On Progress',"Pending","Unfinished"];
$taskInput = $statusSelected = "";
function setColorStatus($colorStatus){
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",