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
name: myproject | |
options: | |
bundleIdPrefix: com.myproject | |
usesTabs: false | |
indentWidth: 4 | |
tabWidth: 4 | |
createIntermediateGroups: true | |
deploymentTarget: | |
iOS: "14.5" |
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 UIKit | |
final class SomeView: LayoutView | |
{ | |
let view1 = UIView() | |
let view2 = UIView() | |
let view3 = UIView() | |
override func layout() { | |
super.layout() |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
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 UIKit | |
public extension UIView { | |
var autoLayout: AutoLayout { | |
return AutoLayout(self) | |
} | |
} |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
.DEFAULT_GOAL := hello | |
CA = ca | |
CA_NAME = Janodev CA | |
SERVER = jano | |
SERVER_DOMAIN = jano.dev | |
CLIENT = client | |
CLIENT_NAME = Janodev Notes User | |
SERVER_CONF = server.conf | |
CLIENT_CONF = client.conf |
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 UIKit | |
// this one doesn’t require a helper function | |
var label: UILabel = { | |
$0.backgroundColor = .blue | |
$0.text = "This is a playground" | |
$0.textColor = .white | |
$0.textAlignment = .center | |
return $0 |
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/Foundation.h> | |
@interface ObjC: NSObject | |
+ (BOOL)catchException:(void(^)(void))tryBlock error:(__autoreleasing NSError **)error; | |
@end |
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
// From https://albertodebortoli.com/2018/03/12/easy-view-controller-unit-testing/ | |
import XCTest | |
import UIKit | |
class ControllerLifecycle<T: UIViewController> | |
{ | |
private lazy var this = type(of: self).self | |
private var rootWindow: UIWindow? | |
var rootController: T? { |