This file contains 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 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 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 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 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 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 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); | |
} |