Skip to content

Instantly share code, notes, and snippets.

View dtanner's full-sized avatar

Dan Tanner dtanner

  • Target
  • Minneapolis MN US
View GitHub Profile
@dtanner
dtanner / date-time-naming.md
Created November 9, 2022 05:15
Date/Time Naming Conventions

date/time naming conventions

Type Description Recommended Suffix Sample Name Sample Printed Value
Instant A date-time without time-zone, fixed to UTC timestamp created_timestamp 1970-01-01T00:00:00Z
ZonedDateTime A date-time with time-zone specified date_time start_date_time 1970-01-01T00:00:00-06:00
LocalDate A date without time-zone date birth_date 2000-01-29
LocalTime A time without time-zone time start_time 08:34 AM
@dtanner
dtanner / convert.main.kts
Last active April 19, 2023 20:03
Kotlin script to generate GitHub Actions README documentation from Action inputs
#!/usr/bin/env kotlin
@file:DependsOn("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
@file:DependsOn("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2")
@file:DependsOn("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2")
@file:DependsOn("com.fasterxml.jackson.core:jackson-databind:2.14.2")
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.KotlinModule
@dtanner
dtanner / language-stats.md
Created September 10, 2024 16:45
JVM Language popularity stats 2019-2023