Skip to content

Instantly share code, notes, and snippets.

IndraMahkota

Block or report user

Report or block IndraMahkota

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Tugas
#include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
cout << "Masukkan nilai A: ";
cin >> a;
View CustomOnItemClickListener.java
import android.view.View;
public class CustomOnItemClickListener implements View.OnClickListener {
private final int position;
private final OnItemClickCallback onItemClickCallback;
public CustomOnItemClickListener(int position, OnItemClickCallback onItemClickCallback) {
this.position = position;
this.onItemClickCallback = onItemClickCallback;
}
View layout_details.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_details"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
View MovieFragment.java
package com.indramahkota.moviecatalogue.fragments;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SearchView;
import android.widget.Toast;
View TheMovieDbViewModel
package com.indramahkota.moviecatalogue.viewmodels;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.indramahkota.moviecatalogue.BuildConfig;
View mapbox.js
var mymap = L.map('mapid').setView([-0.0610732,109.3422024], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
id: 'mapbox.streets',
accessToken: 'pk.eyJ1IjoiaW5kcmFtYWhrb3RhIiwiYSI6ImNqbmV0ZXY1MDEzaHQzcXBsZW9qeGlwOG0ifQ.PMT988D2Cjhph1mY9e92wQ'
}).addTo(mymap);
var circle = L.circle([-0.032973, 109.322001], {
You can’t perform that action at this time.