This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:flutter/material.dart'; | |
class MyHttpOverrides extends HttpOverrides{ | |
@override | |
HttpClient createHttpClient(SecurityContext context){ | |
return super.createHttpClient(context) | |
..badCertificateCallback = (X509Certificate cert, String host, int port)=> true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Togel { | |
private int no, banyak; | |
public Togel (int no, int banyak){ | |
this.no = no; | |
this.banyak = banyak; | |
} | |
public int getNo(){ return no; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.charset.StandardCharsets; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"nomortogel":1, "banyak": 1}, | |
{"nomortogel":4, "banyak": 2}, | |
{"nomortogel":4, "banyak": 2}, | |
{"nomortogel":6, "banyak": 1} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Update Profile</title> | |
</head> | |
<body> | |
<form action="http://localhost/idstar/api/profile?X-Api-Key=idstar123!&X-Token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkIjoiMTMyIn0sImlhdCI6MTU4NTYyMjc5NSwiZXhwIjoxNTg1NjI5OTk1fQ.3HR9YC21j-46xriB6-Q-UceSEp9enWQPO6FiTp_mV3M" method="post" enctype="multipart/form-data"> | |
<p>Full name: <input type="text" name="fullname" value=""> | |
<p>Title: <input type="text" name="job_title" value=""> | |
<p>Date of Birth: <input type="date" name="date_of_birth" value="2018-07-22"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": true, | |
"message": "General Searching", | |
"data": { | |
"size": 1, | |
"data": [ | |
{ | |
"user_id": "114", | |
"employee_id": null, | |
"office_shift_id": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.divbyzero.app.githubusersearch.viewmodel; | |
import android.util.Log; | |
import androidx.lifecycle.LiveData; | |
import androidx.lifecycle.MutableLiveData; | |
import androidx.lifecycle.ViewModel; | |
import com.divbyzero.app.githubusersearch.api.APIEndPoint; | |
import com.divbyzero.app.githubusersearch.api.APIService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.divbyzero.app.githubusersearch; | |
import androidx.appcompat.app.AppCompatActivity; | |
import androidx.appcompat.widget.SearchView; | |
import androidx.lifecycle.Observer; | |
import androidx.lifecycle.ViewModelProvider; | |
import androidx.recyclerview.widget.LinearLayoutManager; | |
import androidx.recyclerview.widget.RecyclerView; | |
import android.content.Context; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".InputDetail"> | |
<TextView | |
android:layout_width="wrap_content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener( MainActivity.this, new OnSuccessListener<InstanceIdResult>() { | |
@Override | |
public void onSuccess(InstanceIdResult instanceIdResult) { | |
String mToken = instanceIdResult.getToken(); | |
} | |
}); |