This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
π Morning 82 commits βββββββββββββββββββββ 12.9% | |
π Daytime 194 commits βββββββββββββββββββββ 30.5% | |
π Evening 227 commits βββββββββββββββββββββ 35.7% | |
π Night 133 commits βββββββββββββββββββββ 20.9% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun hashCodeOf(vararg values: Any?): Int = | |
values.fold(0) { acc, value -> | |
(acc * 31) + value.hashCode() | |
} | |
class Category( | |
val id: Long? = null, | |
val name: String, | |
val createdAt: LocalDateTime? = null, | |
val updatedAt: LocalDateTime? = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.CaseFormat; | |
import org.springframework.beans.factory.InitializingBean; | |
import org.springframework.stereotype.Component; | |
import javax.persistence.Entity; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
import javax.transaction.Transactional; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.gunkim | |
fun main() { | |
val thread = Thread { | |
System.out.printf("νμ¬ μ€λ λ : %s%n", Thread.currentThread().name) | |
System.out.printf("νμ¬ μ€λ λμλ μ°μ μμκ° μ€μ λμμ. %s", Thread.currentThread().priority) | |
}.apply { | |
name = "μ μμ μ€λ λ" | |
priority = Thread.MAX_PRIORITY | |
uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { t: Thread, e: Throwable -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
gift-db: | |
image: amd64/mysql | |
command: | |
- --character-set-server=utf8mb4 | |
- --collation-server=utf8mb4_unicode_ci | |
environment: | |
MYSQL_ROOT_PASSWORD: 1234 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Node( | |
val data: Int, | |
var left: Node? = null, | |
var right: Node? = null | |
) | |
/** | |
* 1 | |
* /\ | |
* 2 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> // POSIX μ€λ λ μ¬μ©μ μν ν€λ νμΌ | |
#include <stdio.h> // μ μΆλ ₯ κ΄λ ¨ ν€λ νμΌ | |
#define NUM_THREADS 5 // μμ±ν μ€λ λμ κ°μλ₯Ό μ μ | |
// μ€λ λκ° μ€νν ν¨μ | |
void *runner(void *param) { | |
// μ€λ λ μ’ λ£ | |
pthread_exit(0); | |
} |