View project.yml
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
name: myproject | |
options: | |
bundleIdPrefix: com.myproject | |
usesTabs: false | |
indentWidth: 4 | |
tabWidth: 4 | |
createIntermediateGroups: true | |
deploymentTarget: | |
iOS: "14.5" |
View Optional+Extension.swift
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 | |
extension Optional | |
{ | |
@discardableResult | |
func ifSome(_ handler: (Wrapped) -> Void) -> Optional { | |
switch self { | |
case .some(let wrapped): handler(wrapped); return self | |
case .none: return self | |
} |
View SomeView.swift
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 UIKit | |
final class SomeView: LayoutView | |
{ | |
let view1 = UIView() | |
let view2 = UIView() | |
let view3 = UIView() | |
override func layout() { | |
super.layout() |
View Makefile
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
.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 |
View ioslocaleidentifiers.csv
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 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) |
View Person.m
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/Foundation.h> | |
#undef X | |
typedef void (^salute_t)(); | |
@interface Person : NSObject | |
@property (nonatomic,copy) NSString *name; | |
@property (nonatomic,copy) salute_t salute; |
View patternMatching.swift
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
// BASIC SWITCH | |
enum Media { case Book } | |
extension Media : CustomStringConvertible | |
{ | |
var description: String { | |
switch self { | |
case .Book: return "bible" | |
} |
View AppDelegate.swift
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 UIKit | |
import PluggableApplicationDelegate | |
@UIApplicationMain | |
class AppDelegate: PluggableApplicationDelegate | |
{ | |
override var services: [ApplicationService] { | |
return [ | |
LoggerApplicationService() | |
] |
View AutoLayout.swift
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 UIKit | |
public extension UIView { | |
var autoLayout: AutoLayout { | |
return AutoLayout(self) | |
} | |
} |
View gist:5341598
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
// Not App Store safe. Only available in real devices. | |
#define RTLD_LAZY 0x1 | |
#define RTLD_NOW 0x2 | |
#define RTLD_LOCAL 0x4 | |
#define RTLD_GLOBAL 0x8 | |
NSObject *voiceSynthesizer; | |
void *voiceServices; |
NewerOlder