.concatMap { [weak self] in
return self?.tryLoginMutation() ?? .empty()
}
.do(onError: { [weak self] error in
self?.nonFatalErrorRecorder.record("Splash Failure", with: error)
})
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
| if (!(test(test3) && test(test4) && test(test5)) | |
| return "올바른 점수가 아닙니다"; | |
| Integer score3 = Integer.parseInt(input3); | |
| Integer score4 = Integer.parseInt(input4); | |
| Integer score5 = Integer.parseInt(input5); | |
| return (score3 < 40 || score4 < 40 || score5 < 40) | |
| ? "과락입니다. (점수미달)" | |
| : (score3 + score4 + score5) / 3.0 >= 60 | |
| ? "합격입니다." |
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
| <html lang="ko"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Load movie list in RxJS!!</title> | |
| </head> | |
| <body> | |
| <div id="app-container"> | |
| <div id="form"> |
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
| // | |
| // Javascript reduce 예제 → https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce | |
| // | |
| const array1 = [1, 2, 3, 4]; | |
| const reducer1 = (accumulator, currentValue) => { | |
| return accumulator + currentValue; | |
| }; | |
| // 5 + 1 + 2 + 3 + 4 |
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
| // | |
| // main.swift | |
| // Curry | |
| // | |
| // Created by DongHyeon Kim on 2020/05/23. | |
| // Copyright © 2020 DongHyeonKim. All rights reserved. | |
| // | |
| import Foundation |
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 React, { useEffect, useRef } from 'react'; | |
| import { Link, useRouteMatch } from 'react-router-dom'; | |
| import styles from './SubmenuBar.module.css'; | |
| export interface IProps {} | |
| const SubmenuBar: React.FC<IProps> = (props) => { | |
| const { path } = useRouteMatch(); | |
| const tabs = [ | |
| { title: '제주탐험', url: path + 'abc' }, |
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 { v4 as uuid } from 'uuid'; | |
| import { NativeMessageChannel, Message, MessageData } from './NativeMessageChannel'; | |
| export class NativeCommandBus { | |
| private messageChannel: NativeMessageChannel; | |
| private resultResolvers: { [messageId: string]: (value: any) => void } = {}; | |
| constructor( | |
| topic: string = "*" | |
| ) { |
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
| // | |
| // Created by donghyeon on 2020/10/18. | |
| // | |
| import Foundation | |
| import WebKit | |
| extension WKWebView { | |
| func disableZoom() { | |
| let script: String = """ |
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 WebView.disableTouchCalloutAndUserSelect() { | |
| this.evaluateJavascript(""" | |
| (function() { | |
| const head = document.getElementsByTagName('head')[0]; | |
| const style = document.createRange().createContextualFragment(` | |
| <style type="text/css"> | |
| *:not(input):not(textarea) { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; | |
| } |
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
| class JsonObjectSpliterator<T>( | |
| private val mapper: ObjectMapper, | |
| private val inputStream: InputStream, | |
| private val clazz: Class<T> | |
| ) : Spliterators.AbstractSpliterator<T>(Long.MAX_VALUE, NONNULL or IMMUTABLE) { | |
| private val parser: JsonParser by lazy { | |
| mapper.createParser(inputStream.reader(Charsets.UTF_8)).also { | |
| check(it.nextToken() === JsonToken.START_ARRAY) { "Expected content to be an array" } | |
| } | |
| } |
OlderNewer