Skip to content

Instantly share code, notes, and snippets.

@reizamv
reizamv / indonesia.xml
Created June 7, 2021 08:01
phpmaker 2021 bahasa indonesia anti error2
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ew-language date="2020/11/17" version="17.0.5" id="id" name="indonesia" desc="indonesia" author="e.World Technology Limited">
<!--
*** Important Notes:
1. Language ID should follow: https://developers.google.com/recaptcha/docs/language,
2. Locale settings are placed in a separate locale files under the "locales" folder,
3. Locale files must be named with language ID of language file (and converted to lowercase), e.g. en.json,
4. Locale files are ALWAYS used, regardless of whether the project is single language or multiple language.
-->
<global>
[All Pouch Items x99 v1.4]
B0D3B2C8 00000000
C0000000 00000020
20000014 00000063
DC000000 00000004
D2000000 00000000
[Display Boss HP v1.4]
import org.opencv.highgui.Highgui; to import org.opencv.imgcodecs.Imgcodecs; ,
Highgui.imread() to imgcodecs.imread() ,
Core.rectangle() to imgproc.rectangle() ,
Highgui.imwrite() to imgcodecs.imwrite()
@reizamv
reizamv / gist:f9ac581e4fb9d278f75a654b35b8750d
Created October 27, 2019 22:43
tambah no otomatis phpmaker
function GetNextKodeJenis() {
$sNextKode = "";
$sLastKode = "";
$value = ExecuteScalar("SELECT no_mr FROM tb_pasien ORDER BY no_mr DESC");
if ($value != "") { // jika sudah ada, langsung ambil dan proses...
$sLastKode = intval(substr($value, 2, 6)); // ambil 8 digit terakhir
$sLastKode = intval($sLastKode) + 1; // konversi ke integer, lalu tambahkan satu
$sNextKode = "MR" . sprintf('%06s', $sLastKode); // format hasilnya dan tambahkan prefix
if (strlen($sNextKode) > 8) {
$sNextKode = "MR999999";
@reizamv
reizamv / gist:aaced67ec1b3a6630d800cd2221cf62f
Last active June 17, 2018 10:21
moshi with list array data in one file
package retrofituse
import com.squareup.moshi.Json
data class Responlastnews(
@Json(name = "success") val success: String? = null,
@Json(name = "belum") val belum: List<BelumItem?>? = null
)
data class Responsenewnews(