Skip to content

Instantly share code, notes, and snippets.

View addeeandra's full-sized avatar
🐣
Nothing happening

Aditya Chandra addeeandra

🐣
Nothing happening
View GitHub Profile
@addeeandra
addeeandra / DatePickerBindingAdapter.kt
Last active October 21, 2022 09:16
Binding Adapter of Spinner, DatePicker, View, TextView, RecyclerView and SwipeRefreshLayout
import android.widget.DatePicker
import android.widget.Spinner
import androidx.databinding.BindingAdapter
import androidx.databinding.InverseBindingAdapter
import androidx.databinding.InverseBindingListener
import java.util.*
@BindingAdapter(value = ["selectedDate", "selectedDateAttrChanged"], requireAll = false)
fun DatePicker.selectedDate(
newSelectedDate: Date?,
# make sure to run `update` and `upgrade` before proceeding, and if there is kernel update, please reboot before continue
#!/bin/bash
sudo nala install linux-firmware linux-generic ronn build-essential pkg-config
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
mkdir -p ~/downloads
# /etc/systemd/zram-generator.conf
[zram0]
zram-size = 1024
compression-algorithm = lzo-rle
[zram1]
zram-size = 1024
compression-algorithm = lzo-rle