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
/** | |
shared util on React-Native src | |
*/ | |
import { | |
PushNotificationIOS, | |
Platform | |
} from 'react-native'; | |
import firebase from 'react-native-firebase'; | |
import appStore from '../stores/appStore'; // mobX |
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 29 commits ████▏░░░░░░░░░░░░░░░░ 19.9% | |
🌆 Daytime 44 commits ██████▎░░░░░░░░░░░░░░ 30.1% | |
🌃 Evening 36 commits █████▏░░░░░░░░░░░░░░░ 24.7% | |
🌙 Night 37 commits █████▎░░░░░░░░░░░░░░░ 25.3% |
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
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
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)) } | |
} |