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 lab.agimaulana.excelreadwrite.activity; | |
import android.app.ProgressDialog; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.text.TextUtils; |
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 lab.agimaulana.excelreadwrite.adapter; | |
import android.support.v7.widget.AppCompatTextView; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; | |
import java.util.List; |
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 lab.agimaulana.excelreadwrite.model; | |
/** | |
* Created by root on 8/13/16. | |
*/ | |
public class People { | |
private String name; | |
private String job; | |
private String phone; | |
private String email; |
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
#include "videoplayer.h" | |
void VideoPlayer::run() | |
{ | |
int delay = (1000/frameRate); | |
while(!stop){ | |
if (!capture.read(frame)) | |
{ | |
stop = 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
#ifndef VIDEOPLAYER_H | |
#define VIDEOPLAYER_H | |
#include <QMutex> | |
#include <QThread> | |
#include <QImage> | |
#include <QWaitCondition> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> |
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
<script> | |
var iframe = document.createElement('iframe'); | |
iframe.src = 'http://localhost:8000/test/?source=' + window.location.href; | |
var justika = document.getElementsByClassName("shortcut-page"); | |
justika.appendChild(iframe); | |
</script> |
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 NonNullMutableLiveData<T>(private val defaultValue: T) : NonNullLiveData<T>(defaultValue) { | |
public override fun getValue(): T = super.getValue() ?: defaultValue | |
public override fun setValue(value: T) = super.setValue(value) | |
public override fun postValue(value: T) = super.postValue(value) | |
} |
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
open class NonNullLiveData<T>(private val defaultValue: T) : LiveData<T>() { | |
override fun getValue(): T = super.getValue() ?: defaultValue | |
protected override fun postValue(value: T) = super.postValue(value) | |
} |
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 android.view.KeyEvent | |
import android.view.View | |
import android.widget.EditText | |
import com.google.android.material.textfield.TextInputEditText | |
import com.justika.client.extention.addOnTextChangedListener | |
class CodeVerificationUiUtil(private val editTexts: List<EditText>) { | |
private lateinit var currentEditText: EditText |
OlderNewer