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 5, 2025 19:42
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default