Skip to content

Instantly share code, notes, and snippets.

View alkaaf's full-sized avatar

Alkaaf alkaaf

View GitHub Profile

i want to filter which data have empty size of "pembayaran_umum". in atlas there are no specific operator to check whether an array is empty or not.

this is the data looks like

[
  {
    "idtransaksi": "JUT201117085946197",
    "customer_idcustomer": "CFELE15914130508DI",
    "pembayaran_umum": [
      {
@alkaaf
alkaaf / transaksi.json
Created July 17, 2023 01:42
transaksi.json
{
"_id": "64b1c74e441cdf72e8cfc0c5",
"idtransaksi": "REGU230715050753926",
"alamat_antar": null,
"biaya_kirim": 0,
"biaya_service": 2000,
"biaya_tambah": 0,
"created_at": "2023-07-14T22:07:53.000Z",
"customer": {
"idcustomer": "KXKJA1651710272IQL",
package com.sinadme.kasirsinadme
import android.content.Context
import android.content.SharedPreferences
import com.securepreferences.SecurePreferences
/**
* Created by dalbo on 12/26/2017.
*/
class ConfSafe(var context: Context?) {
@alkaaf
alkaaf / ActivityTransaksiReguler.java
Created June 8, 2017 05:15
onSave() iku ketika save di klik. iku ndeteksi metode bayar e. Uploader iku kelas gae upload data sing offline, ketika pake emoney, aku ngga nyeluk metod iku.
package com.sinadme.kasirsinadme.MTransaksi.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.util.Log;
import android.view.View;
import com.sinadme.kasirsinadme.ActivityWithStep;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:card_view="http://schemas.android.com/tools"
android:orientation="vertical"
android:padding="@dimen/default_size"
>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:card_view="http://schemas.android.com/tools"
android:orientation="vertical"
android:padding="@dimen/default_size"
>
@alkaaf
alkaaf / fragment_data_transaksi.xml
Created March 1, 2017 15:35
iki sing nggawe padding
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/RLPencarianLanjut"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/RLPencarianLanjut"
package com.sinadme.kasirsinadme.MKeuangan.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;