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
HR Process / | |
* Why is the vacancy open? Is this a new position or has someone previously held it? | |
* What's the main problem company is trying to solve by filling this position | |
* What are the recruitment steps? | |
* What’s the documental employment basis? How do we manage the docs? | |
* How do we handle payments? Do I send invoices? | |
Process / | |
* What are the day-to-day processes? | |
* How do you plan new tasks? How do you estimate them? What about deadlines management? |
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 XCTest | |
import Combine | |
import RxSwift | |
final class PlaygroundTests: XCTestCase { | |
private let input = stride(from: 0, to: 10_000_000, by: 1) | |
override class var defaultPerformanceMetrics: [XCTPerformanceMetric] { | |
return [ | |
XCTPerformanceMetric("com.apple.XCTPerformanceMetric_TransientHeapAllocationsKilobytes"), |
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
//______ unwrap | |
Observable.from([1, 2, nil, 4]) | |
.unwrap() | |
.bind { print($0) } | |
// Output: 1, 2, 4 | |
//______ filterMap | |
Observable.of(1, 2, 3, 4, 5, 6) | |
.filterMap { $0 % 2 == 0 ? .map($0 * 2) : .ignore } | |
// Output: 4, 8, 12 |
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
// materialized + errors, elements | |
let checkinEvents = checkin | |
.flatMapLatest { [checkinService] in | |
checkinService.post(checkinRequest: $0).asObservable().materialize() | |
} | |
.share() | |
checkinEvents | |
.elements() | |
.bind(to: showSuccessScreen) |
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
// Native way | |
var sections = [["Section 1": [1, 2, 3]], | |
["Section 2": [4, 5, 6]]] | |
func numberOfSections(in tableView: UITableView) -> Int { | |
return sections.count | |
} | |
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
return sections[section].count |
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
// Native way | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(self.handlePan)) | |
panGestureRecognizer.maximumNumberOfTouches = 3 | |
view.addGestureRecognizer(panGestureRecognizer) | |
} | |
@objc private func handlePan(_ sender: UIPanGestureRecognizer) { | |
switch sender.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
// native way | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NotificationCenter.default.addObserver( | |
self, | |
selector: #selector(keyboardChangedFrame), | |
name: UIResponder.keyboardDidChangeFrameNotification, | |
object: nil | |
) | |
} |