brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
#import <Foundation/Foundation.h> | |
#import "JSONKit.h" | |
#import "ObjectMapper.h" | |
#import "TwitterSearchResult.h" | |
#import "Result.h" | |
#import "Metadata.h" | |
int main (int argc, const char * argv[]) | |
{ |
If you are the only controlling the HTML, change it so that your input field has default values for accessibility. You can do this via several of the attributes. If you don't have access to the HTML... | |
You can inject javascript into your webview and change the title attribute of the <input> tags, giving them a default and static accessibilityLabel. | |
NSString *result = [self.webView stringByEvaluatingJavaScriptFromString:@"var inputs = document.getElementsByTagName('input');" | |
"for (var index = 0; index < inputs.length; index++){inputs[index].title = 'input ' + index;}" | |
]; | |
Here I give the nth <input> tag an accessibility label of "input n". |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
-(void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *, id))success | |
failure:(void (^)(AFHTTPRequestOperation *, NSError *))failure { | |
void (^newSuccessBlock)(AFHTTPRequestOperation*, id) = | |
^(AFHTTPRequestOperation *operation, id responseObject){ | |
NSError * customError = nil; | |
//Do some custom error processessing | |
if(customError){ | |
if(nil != failure) |
To remove a submodule you need to:
curl -X POST \ | |
-H "X-Parse-Application-Id: LL9oIdzIkmwl5xyowQQu0fTmXyUWfet9RuAzwHfj" \ | |
-H "X-Parse-REST-API-Key: R3S8PYQKuzeV4c8MUeO5ved46C50MEp56boDHW1O" \ | |
-H "Content-Type: application/json" \ | |
-d @data.json \ | |
https://parseapi.back4app.com/functions/import |
/// | |
/// https://stackoverflow.com/a/29741007 | |
/// | |
let s = Struct() // Struct | |
withUnsafePointer(to: s) { | |
print(String(format: "%p", $0) | |
} | |
/// | |
/// http://stackoverflow.com/a/36539213/226791 |
- (UIImage *)dynamicImage | |
{ | |
UITraitCollection *const baseTraitCollection = /* an existing trait collection */; | |
UITraitCollection *const lightTraitCollection = [UITraitCollection traitCollectionWithTraitsFromCollections:@[baseTraitCollection, [UITraitCollection traitCollectionWithUserInterfaceStyle:UIUserInterfaceStyleLight]]]; | |
UITraitCollection *const purelyDarkTraitCollection = [UITraitCollection traitCollectionWithUserInterfaceStyle:UIUserInterfaceStyleDark]; | |
UITraitCollection *const darkTraitCollection = [UITraitCollection traitCollectionWithTraitsFromCollections:@[baseTraitCollection, purelyDarkTraitCollection]]; | |
__block UIImage *lightImage; | |
[lightTraitCollection performAsCurrentTraitCollection:^{ | |
lightImage = /* draw image */; |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.