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
void * -[HelloService getValue](void * self, void * _cmd) { | |
var_18 = [@"Hello thanhvu.dev" retain]; | |
var_28 = [var_18 retain]; | |
objc_storeStrong(var_18, 0x0); | |
rax = [var_28 autorelease]; | |
return rax; | |
} |
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
// | |
// UIViewController+Extensions.h | |
// | |
// Created by thanhvu on 7/21/19. | |
// Copyright © 2019 thanhvu. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
NS_ASSUME_NONNULL_BEGIN |
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
// | |
// UIStoryboard+Swizzling.h | |
// | |
// Created by thanhvu on 7/21/19. | |
// Copyright © 2019 thanhvu. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
NS_ASSUME_NONNULL_BEGIN |
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
- (BOOL)isKindOfClass:(Class)cls { | |
for (Class tcls = [self class]; tcls; tcls = tcls->superclass) { | |
if (tcls == cls) return YES; | |
} | |
return NO; | |
} |
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
#!/bin/sh | |
cd /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Source/ | |
git clone https://github.com/ThanhDev2703/MVP-C MVP-C.xctemplate |
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
/** | |
* Rich Text to HTML. | |
* @param {string} qRange Input text. | |
* @returns {string} Text as HTML. | |
* @customfunction | |
*/ | |
function RICHTEXT_TO_HTML(qRange) { | |
var indexBold = false; | |
var indexItalic = false; | |
var indexUnderline = false; |
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
class Project { | |
var name: String | |
var createdDate: Date | |
init(name: String, createdDate: Date = Date()) { | |
self.name = name | |
self.createdDate = createdDate | |
} | |
} |
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
/// | |
/// @Generated by Mockolo | |
/// | |
import Foundation | |
public class ProjectDaoMock: ProjectDao { | |
public init() { } | |
public private(set) var addProjectCallCount = 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
import Foundation | |
func hello(name: String) { | |
let today = Date() | |
print("Hello \(name). Today is \(today)") | |
} | |
hello(name: "Thanh") |
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
struct User { | |
var isActive: Bool | |
} |