Skip to content

Instantly share code, notes, and snippets.

View DominiQN's full-sized avatar

남동민 DominiQN

View GitHub Profile
@DominiQN
DominiQN / OffsetDateTimeTest.kt
Created December 7, 2022 12:13
OffsetDateTime 동등성 비교
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.time.OffsetDateTime
// junit5
class OffsetDateTimeTest {
@Test
fun 동등성() {
val `UTC 기준 1월1일 0시` = OffsetDateTime.parse("2022-01-01T00:00:00Z")
val `한국시 기준 1월1일 9시` = OffsetDateTime.parse("2022-01-01T09:00:00+09:00")
@DominiQN
DominiQN / better-nodejs-require-paths.md
Created August 3, 2019 08:00 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions