Skip to content

Instantly share code, notes, and snippets.

View kyawhtut-cu's full-sized avatar
🎯
Focusing

Kyaw Htut kyawhtut-cu

🎯
Focusing
View GitHub Profile
@kyawhtut-cu
kyawhtut-cu / TableActivity.kt
Created September 21, 2023 03:32
A lightweight tableView container helper based on recyclerView, Tiny and fast, Easy to use, No intrusion into business code. Java version https://github.com/crosswall/EasyTableScrollHelper
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import com.dindinn.dashboard.databinding.ActivityTableBinding
import com.dindinn.dashboard.databinding.ItemTableBinding
@kyawhtut-cu
kyawhtut-cu / submit.md
Created September 2, 2021 09:27 — forked from tanaikech/submit.md
Benchmark: fetchAll method in UrlFetch service for Google Apps Script

Benchmark: fetchAll method in UrlFetch service for Google Apps Script

By Google's update at January 19, 2018, fetchAll method was added to the UrlFetch service. When I saw the usage, I couldn't find the detail information about the actual running state. So I investigated about it.

As the result, it was found that the fetchAll method is worked by the asynchronous processing. The returned data is reordered by the order of requests. By this, it was also found that if you want to retrieve the data from the several URL, the process cost of UrlFetchApp.fetchAll() is much lower than that of UrlFetchApp.fetch() using for loop.

The sample scripts for server side and client side are as follows.

Sample script for server side

In this report, 5 Web Apps were used as the servers. At first, 5 standalone projects were created and the following server script was put to each project. Then, Web Apps was deployed for ea

@kyawhtut-cu
kyawhtut-cu / AesEncryptDecrypt.java
Created August 27, 2021 09:28 — forked from KushtrimPacaj/AesEncryptDecrypt.java
AES encryption in Java, equivalent of Crypt ( Encrypter.php class ) on Laravel (PHP)
import android.util.Base64;
import android.util.Log;
import com.google.gson.Gson;
import org.apache.commons.codec.binary.Hex;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.Key;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.Mac;
@kyawhtut-cu
kyawhtut-cu / README.md
Created July 26, 2021 05:37 — forked from nyancodeid/README.md
Make RESTful API with Google Apps Script and SpreadSheet

Google Script CRUD

By Ryan Aunur Rassyid

Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.

//
// Decompiled by Procyon - 6961ms
//
package com.conax.client.integrationlayer.internal;
import com.conax.client.integrationlayer.api.PlaybackErrorListener;
import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.source.dash.DashChunkSource$Factory;
import com.google.android.exoplayer2.source.dash.DashMediaSource$Factory;
import com.google.android.exoplayer2.source.dash.DefaultDashChunkSource$Factory;
data class User @JvmOverloads constructor(
var name: String,
var age: Int,
var address: String = "",
var gender: String
) {
companion object {
@JvmStatic
val TAG = User::class.java.name
public class UserTestJava {
public static void main(String[] args) {
User user = User.Companion.createUser("Mg Mg", 23, "Yangon", "male"); // that is work
User user = User.createUser("Mg Mg", 23, "Yangon", "male"); // that is error
}
}
data class User @JvmOverloads constructor(
var name: String,
var age: Int,
var address: String = "",
var gender: String
) {
companion object {
val TAG = User::class.java.name
package com.kyawhtut.ankotest;
public class UserTestJava {
public static void main(String[] args) {
User user = new User("Mg Mg", 23, "Yangon", "male"); // that is work
User user = new User("Mg Mg", 23, "male"); // that is work now
}
}
data class User @JvmOverloads constructor(
var name: String,
var age: Int,
var address: String = "",
var gender: String
)