Skip to content

Instantly share code, notes, and snippets.

View Mozilla9's full-sized avatar
💭
I may be slow to respond.

Serge Maslyakov Mozilla9

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
#
# First param is the extension name
#
EXT_NAME="${1}"
#!/bin/bash
#
# First param is the extension name
#
TMPDIR="${SRCROOT}/build/localizations/tmp"

Steps

  • Create a folder, e.g. ~/Desktop/crashlog_dir.
  • Put your MyAppName.ipa in folder.
  • Put your MyAppName.crash in folder.
  • Then..
  1. cd /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/

  2. cp symbolicatecrash ~/Desktop/crashlog_dir/

@Mozilla9
Mozilla9 / jsonmodel+magicalrecord.md
Last active August 5, 2020 23:22
JSONModel + MagicalRecord

Create CoreData entity from JSONModel object

#import "JSONModel.h"

@interface User : JSONModel

@property(nonatomic, copy) NSString <Optional> *name;
@property(nonatomic, copy) NSString <Optional> *email;
@property(nonatomic, copy) NSString <Optional> *phone;
@interface AsyncTable()

@property(nonatomic, strong) NSMutableArray* alphaKeys;
@property(nonatomic, strong) NSOperationQueue *serialQueue;

@end

@implementation AsyncTable    
@interface AsyncTable()

@property(nonatomic, strong) NSMutableArray* alphaKeys;
@property(nonatomic, assign) NSUInteger isDataLoading;

@end

@implementation AsyncTable    
- (void)saveWebDataInternal:(id)data completion:(void(^)(id, NSError *))completion
{
    NSBlockOperation *op = [[NSBlockOperation alloc] init];
    __block id result = nil;
    __block NSError *error = nil;

    op.completionBlock = ^{
        dispatch_async(dispatch_get_main_queue(), ^{
 completion(result, error);
- (void)saveWebDataInternal:(TaxiSpecialPlacesHierarchyResponseModel *)data completion:(void(^)(NSArray *))completion
{
        NSBlockOperation *op = [[NSBlockOperation alloc] init];

        op.completionBlock = ^{
            dispatch_async(dispatch_get_main_queue(), ^{
                [self loadCachedDataInternal:completion];
            });
 };
@Mozilla9
Mozilla9 / design_useful_links.md
Last active October 27, 2015 11:10
design_useful_links.md