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 *vc = // ViewController | |
id mockVC = [OCMockObject partialMockForObject:vc]; | |
UIButton *button = // Button on view of ViewController | |
UIStoryboardSegue *storyBoardSegue = [OCMArg checkWithBlock:^BOOL(id obj){ | |
UIStoryboardSegue *segue = obj; | |
UIViewController *src = segue.sourceViewController; | |
UIViewController *dst = segue.destinationViewController; | |
NSString *idtf = segue.identifier; |
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
### Keybase proof | |
I hereby claim: | |
* I am messeb on github. | |
* I am messeb (https://keybase.io/messeb) on keybase. | |
* I have a public key ASBdLKgcqx4kpDUor-OwoWOn0gG3sHXSQNxwtsDREhckpwo | |
To claim this, I am signing this object: |
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
extension URLResponse { | |
/// Returns casted `HTTPURLResponse` | |
var http: HTTPURLResponse? { | |
return self as? HTTPURLResponse | |
} | |
} | |
extension HTTPURLResponse { | |
/// Returns `true` if `statusCode` is in range 200...299. | |
/// Otherwise `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
## Create Let's Encrypt certificate for DOMAIN and www subdomain of DOMAIN. | |
DOMAIN=example.com | |
[email protected] | |
.PHONY: default install generate | |
default: install | |
install: |