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
protocol MyTextFieldDelegate: UITextFieldDelegate { | |
/// Asks the delegate if the character before the cursor or currently selected text should be deleted. | |
/// | |
/// - Parameters: | |
/// - textField: The text field containing the text. | |
/// - range: Range of the text that is going to be deleted. If cursor is at the beginning, range's `location` and `length` are 0. | |
/// - Returns: `true` if the specified text range should be deleted; otherwise, `false` to keep the old text. | |
func textField(_ textField: MyTextField, shouldDeleteBackwardsCharactersIn range: NSRange) -> Bool | |
} |
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
#include <iostream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
class LongLong { | |
long left; |
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 Foundation | |
protocol Domain { | |
associatedtype Parent = Domain | |
static var name: String { get } | |
static var fullName: String { get } | |
} |
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
/** | |
* returns the dictionary of updated or created managed objects where the key is object's entityIdentifierKey value | |
* requires identifier to be unique | |
* parsingBlock needs to implement the updating of each object from with assosiated dictionary | |
*/ | |
+ (NSDictionary *)parseObjectsForClass:(Class)objectClass | |
fromArray:(NSArray *)array | |
entityIdentifierKey:(NSString *)entityIdentifierKey | |
dictIdentifierKey:(NSString *)dictIdentifierKey | |
deleteUnmatched:(BOOL)deleteUnmatched |