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
<?php | |
require 'vendor/autoload.php'; | |
use PhpOffice\PhpSpreadsheet\Spreadsheet; | |
use PhpOffice\PhpSpreadsheet\Writer\Xlsx; | |
class MyReadFilter implements \PhpOffice\PhpSpreadsheet\Reader\IReadFilter | |
{ | |
private $limit; |
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 type="text/javascript" src="DataTables/datatables.min.js"></script> | |
<script> | |
var theTable = null; | |
$(document).ready(function() { | |
theTable = $('#table-customer').DataTable({ | |
"processing": true, | |
"serverSide": false, | |
"ordering": true, | |
"order": [[ 0, 'asc' ]], |
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"?> | |
<android.support.constraint.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=".feature.Profile.ShowWebviewActivity"> | |
<WebView | |
android:id="@+id/webview" |
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" | |
android:background="@drawable/whitebg" | |
tools:context=".activity.Apply1Activity"> | |
<androidx.core.widget.NestedScrollView |
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
array(38) { ["url"]=> string(39) "http://dev.testapi.com/login ["content_type"]=> string(30) "application/json;charset=UTF-8" ["http_code"]=> int(200) ["header_size"]=> int(479) ["request_size"]=> int(204) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.371961) ["namelookup_time"]=> float(0.00079) ["connect_time"]=> float(0.086021) ["pretransfer_time"]=> float(0.22713) ["size_upload"]=> float(0) ["size_download"]=> float(88) ["speed_download"]=> float(237) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0.366973) ["redirect_time"]=> float(0) ["redirect_url"]=> string(0) "" ["primary_ip"]=> string(12) "36.37.75.105" ["certinfo"]=> array(0) { } ["primary_port"]=> int(443) ["local_ip"]=> string(13) "192.168.1.151" ["local_port"]=> int(51152) ["http_version"]=> int(2) ["protocol"]=> int(2) ["ssl_verifyresult"]=> int(0) ["scheme"]=> string(5) "HTTPS" ["appconnect_time_ |
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
; Default Value: 0 | |
;process.max = 128 | |
; Specify the nice(2) priority to apply to the master process (only if set) | |
; The value can vary from -19 (highest priority) to 20 (lowest priority) | |
; Note: - It will only work if the FPM master process is launched as root | |
; - The pool process will inherit the master process priority | |
; unless specified otherwise | |
; Default Value: no set | |
;process.priority = -19 |
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
public String fileToBase64(String path){ | |
String base64 = ""; | |
try { | |
File file = new File(path); | |
byte[] buffer = new byte[(int) file.length() + 100]; | |
@SuppressWarnings("resource") | |
int length = new FileInputStream(file).read(buffer); | |
base64 = Base64.encodeToString(buffer, 0, length, Base64.DEFAULT); | |
} catch (IOException e) { | |
e.printStackTrace(); |
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(); | |
} | |
}); |
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
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; |