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
| enum TestError: Error { | |
| case test | |
| } | |
| extension ObservableType { | |
| func retryWhen( | |
| predicate: @escaping (Error) -> Bool, | |
| maxRetry: Int, |
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 Foundation | |
| import RxSwift | |
| enum MyError: Error { | |
| case requestError1 | |
| case requestError2 | |
| case requestError3 | |
| case requestError4 | |
| case requestError5 | |
| } |
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
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2017 Alexander Grebenyuk (github.com/kean). | |
| import Foundation | |
| import RxSwift | |
| import RxCocoa | |
| extension ObservableType { |
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 os | |
| import json | |
| from ftplib import FTP | |
| import boto3 | |
| # Source https://github.com/Vibish/FTP_SFTP_LAMBDA/blob/master/FTPThroughLambda.py | |
| # https://www.edureka.co/community/17558/python-aws-boto3-how-do-i-read-files-from-s3-bucket | |
| # https://medium.com/better-programming/transfer-file-from-ftp-server-to-a-s3-bucket-using-python-7f9e51f44e35 | |
| # https://github.com/kirankumbhar/File-Transfer-FTP-to-S3-Python/blob/master/ftp_to_s3.py | |
| # https://dashbird.io/blog/python-aws-lambda-error-handling/ |
- OSMC 웹사이트에서 인스톨러 다운로드 ( https://osmc.tv/download/ )
- 인스톨러에서 필요한 옵션을 선택 (자동으로 설치 파일 다운로드 및 메모리에 복사)
- 메모리를 라즈베리파이에 삽입 후 전원 연결
- 자동으로 설치완료 및 재부팅
- 빠른 세팅을 위한 설정 기록
- Raspberry Pi 2 / 3 / 3+ osmc 2020.10-1 OSMC_TGT_rbp2_20201019.img.gz 8abb0a98ad845bf447a2a3eb0bed394d
- 폰트 설치
sudo apt-get install fonts-nanum
To enable the rotation of a single view controller used to display the preview of Images/Videos. It is intuitive to allow user to rotate there device and screen changes accordingly, so it feels pleasant. But to achieve this, we need to enable the (almost) all Supported Device orientations.
Ex: `Portrait`, `LandscapeLeft`, `LandscapeRight`.
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
| // | |
| // UIViewController+Rotation.m | |
| // Ulysses | |
| // | |
| // Created by Götz Fabian on 12.10.17. | |
| // Copyright © 2017 Ulysses GmbH & Co. KG. All rights reserved. | |
| // | |
| #import "UIViewController+Rotation.h" |
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
| apply plugin: 'kotlin-kapt' | |
| // ...(중략)... | |
| dependencies { | |
| // for async logic | |
| implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' | |
| // Room | |
| implementation "androidx.room:room-runtime:2.2.2" |
