Skip to content

Instantly share code, notes, and snippets.

@hankkuu
hankkuu / cartesianProduct.kt
Created November 11, 2023 07:14 — forked from bastman/cartesianProduct.kt
Kotlin collections - leftJoin,innerJoin, ...
infix fun <T,O>List<T>.cartesianProduct(others:List<O>):List<Pair<T,O>> =
flatMap{ t:T->
others.map { o-> Pair(t,o) }
}
inline fun <T, O, R> List<T>.mapCartesianProduct(others: List<O>, transform: (Pair<T, O>) -> R): List<R> =
flatMap { t: T ->
others.map { o -> transform(Pair(t, o)) }
}
@hankkuu
hankkuu / how-to-write-by-markdown.md
Created June 26, 2023 00:58 — forked from ihoneymon/how-to-write-by-markdown.md
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@hankkuu
hankkuu / Recent coding in languages
Last active February 7, 2021 13:02
Recent coding in languages
We couldn’t find that file to show.
@hankkuu
hankkuu / I'm a night 🦉
Last active April 8, 2021 00:30
I'm an early
🌞 Morning 29 commits ████▏░░░░░░░░░░░░░░░░ 19.9%
🌆 Daytime 44 commits ██████▎░░░░░░░░░░░░░░ 30.1%
🌃 Evening 36 commits █████▏░░░░░░░░░░░░░░░ 24.7%
🌙 Night 37 commits █████▎░░░░░░░░░░░░░░░ 25.3%
@hankkuu
hankkuu / NotifService.js
Created April 25, 2019 07:46 — forked from geoseong/NotifService.js
Firebase Cloud Messaging via AWS Lambda
/**
shared util on React-Native src
*/
import {
PushNotificationIOS,
Platform
} from 'react-native';
import firebase from 'react-native-firebase';
import appStore from '../stores/appStore'; // mobX