Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
flutter on fire

malik kurosaki malikkurosaki

💭
flutter on fire
View GitHub Profile
View xls to json javascript.md

xls to json javascript

<html lang="en">    

<title> Convert Excel File To JSON </title>

<head>
    <script src="js/jquery.js"> </script>
    <script lang="javascript" src="js/xlsx.full.min.js"></script>
@malikkurosaki
malikkurosaki / android barcode scaner .md
Created Oct 26, 2019
android membuat scaner qr droid
View android barcode scaner .md

android baarcode scaner

dependencynya

   // barcode reader
    implementation 'info.androidhive:barcode-reader:1.1.5'
    implementation 'com.google.firebase:firebase-ml-vision:23.0.0'
View firebase ui login.md

firebase ui login

  // firebase
    implementation 'com.google.firebase:firebase-core:17.2.0'
    implementation 'com.google.firebase:firebase-messaging:20.0.0'
    implementation 'com.google.firebase:firebase-auth:19.1.0'
    implementation 'com.google.firebase:firebase-database:19.2.0'
View cek koneksi internet.md

cek koneksi internet

// network manager
    implementation 'com.github.jumadeveloper:networkmanager:0.0.2'
View jadikan email sebagai key .md

jadikan email sebagai key

 public static String getGoogleMail() {
        if (user() != null){
            String[] eml = user().getEmail().split("@");
            return eml[0].replaceAll("[^A-Za-z0-9 ]","xxx");
        }else {
            return null;
        }
@malikkurosaki
malikkurosaki / android mendapatkan date time.md
Created Oct 24, 2019
android mendapatkan waktu date time
View android mendapatkan date time.md

android mendapatkan date time wakru

private String getDateTime() {
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss", Locale.getDefault());
        Date date = new Date();
        return dateFormat.format(date);
}
View komunikasi dari fragment ke fragment.md

komunikasi dari fragment ke fragment

dari dialog fragment

package dev.malikkurosaki.gombalinkita.Dialog;

import android.app.Activity;
import android.content.Context;
import android.os.AsyncTask;
@malikkurosaki
malikkurosaki / mendapatkan view.md
Created Oct 23, 2019
mendapatkan view dari recyclerview
View mendapatkan view.md

mndapatkan view dari recycler view

 containerPilihSuara.post(()->{
                    View vi = containerPilihSuara.findViewHolderForPosition(posisi).itemView;
                    CardView cardView = vi.findViewById(R.id.wadahPilihSuara);
                    for (int i =0;i<adapterPilihSuara.getItemCount();i++){
                        View vi2 = containerPilihSuara.findViewHolderForPosition(i).itemView;
                        CardView cv = vi2.findViewById(R.id.wadahPilihSuara);
                        cv.setCardBackgroundColor(getResources().getColor(R.color.color1));
@malikkurosaki
malikkurosaki / top 8 search engine.md
Last active Oct 23, 2019
top 8 search engine sqllite
View top 8 search engine.md

top 8 search engine sql lite

 @Query("select *,count(*) from tabel_hasil_pencarian group by nama order by 2 desc limit 10")
    List<TabelHasilPencarian> dapatkanTop8HasilPencarian();

update

@malikkurosaki
malikkurosaki / tanda melar recyclerview.md
Created Oct 23, 2019
menghilangkan tanda melar direcyclervie
View tanda melar recyclerview.md

Menghilangkan Tanda Melar Direcyclerview

<android.support.v7.widget.RecyclerView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:overScrollMode="never"
    android:background="#FFFFFF"
    android:scrollbars="vertical" />