Skip to content

Instantly share code, notes, and snippets.

View malihehmoradi's full-sized avatar
✨Looking for new challenges✨

Maliheh Moradi malihehmoradi

✨Looking for new challenges✨
View GitHub Profile
@malihehmoradi
malihehmoradi / PaymentMethod.kt
Last active March 14, 2023 13:14
Create an enum class for defining two constants with specific name and value.
import java.text.NumberFormat
import java.util.*
enum class PaymentMethod(val balance: Double) {
CASH(14.02) {
override fun printFormattedAmount(): String {
return NumberFormat.getCurrencyInstance(Locale.US).format(balance)
}
},
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 23, 2025 09:46
Conventional Commits Cheatsheet