Skip to content

Instantly share code, notes, and snippets.

View anta40's full-sized avatar

Andre anta40

  • Jakarta, Indonesia
  • 04:29 (UTC +07:00)
View GitHub Profile
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;
}
class Togel {
private int no, banyak;
public Togel (int no, int banyak){
this.no = no;
this.banyak = banyak;
}
public int getNo(){ return no; }
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;
[
{"nomortogel":1, "banyak": 1},
{"nomortogel":4, "banyak": 2},
{"nomortogel":4, "banyak": 2},
{"nomortogel":6, "banyak": 1}
]
<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">
@anta40
anta40 / people.json
Created April 21, 2020 12:41
search people
{
"status": true,
"message": "General Searching",
"data": {
"size": 1,
"data": [
{
"user_id": "114",
"employee_id": null,
"office_shift_id": null,
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;
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;
<?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"
FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener( MainActivity.this, new OnSuccessListener<InstanceIdResult>() {
@Override
public void onSuccess(InstanceIdResult instanceIdResult) {
String mToken = instanceIdResult.getToken();
}
});