Skip to content

Instantly share code, notes, and snippets.

View DuartBreedt's full-sized avatar

Duart Breedt DuartBreedt

View GitHub Profile
@ceNobiteElf
ceNobiteElf / ChineseCalendarVersion.kt
Last active January 26, 2022 06:55
A joke implementation of calendar versioning based on the Chinese Calendar that can be used to generate version names and codes for Android. Happy lunar new year!
import java.lang.Math.addExact
import java.lang.Math.multiplyExact
data class Tag(val name: String, val value: Int = 0) {
companion object {
fun release(value: Int = 9): Tag =
Tag("", value)