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 { configureStore } from '@reduxjs/toolkit'; | |
import user from './user'; | |
export default function getStore() { | |
return configureStore({ | |
reducer: { | |
user, | |
}, | |
}); | |
} |
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
{ | |
"_index": "catalogue-production-2020-06-23-all", | |
"_type": "_doc", | |
"_id": "Stern--eBCVu6XGP6CW99YQ_ux_Q", | |
"_score": 22.804287, | |
"_source": { | |
"id": "Stern--eBCVu6XGP6CW99YQ_ux_Q", | |
"type": "podcast_episode", | |
"mediatype": "audio", | |
"title": "Das haben sie hinterlassen", |
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 com.aniketkadam.sharevideoshortcut | |
import org.junit.rules.TestWatcher | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.test.TestCoroutineDispatcher | |
import kotlinx.coroutines.test.resetMain | |
import kotlinx.coroutines.test.setMain | |
import org.junit.runner.Description |
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
// | |
// ObserverProtocols.swift | |
// | |
// Created by Apro on 18/12/19. | |
// | |
import Foundation | |
protocol Subscriber: class, Hashable { | |
associatedtype State |
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
// | |
// ImageTextField.swift | |
// Created by Apro on 17/12/19. | |
// | |
import UIKit | |
@IBDesignable | |
class ImageTextField: UITextField { | |
@IBInspectable var leftIcon: UIImage? |
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
// | |
// Optional+String.swift | |
// | |
// Created by Apro on 13/12/19. | |
// | |
import Foundation | |
extension Optional where Wrapped: Numeric & LosslessStringConvertible { | |
func stringOrEmpty() -> String { |
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
// | |
// UIColor+RGB.swift | |
// | |
// Created by Apro on 06/12/19. | |
// | |
import UIKit | |
extension UIColor { | |
convenience init(red: Int, green: Int, blue: Int) { |
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
// | |
// Created by Apro on 06/12/19. | |
// | |
import UIKit | |
extension JSONDecoder { | |
private static let fileType = "json" | |
func decodeFile<T: Codable>(name: String, completion: @escaping (Result<T, Error>) -> Void) { |
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
// | |
// Created by Apro on 04/12/19. | |
// | |
import UIKit | |
extension UIViewController { | |
func instantiateVC<VC: UIViewController>(storyboardId: String? = nil) -> VC { | |
return storyboard?.instantiateViewController(withIdentifier: storyboardId ?? String(describing: VC.self)) as! VC | |
} |
NewerOlder