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 | |
extension CACornerMask { | |
static var noCorners: CACornerMask { return [] } | |
static var topLeftCorner: CACornerMask { return .layerMinXMinYCorner } | |
static var topRightCorner: CACornerMask { return .layerMaxXMinYCorner } | |
static var bottomLeftCorner: CACornerMask { return .layerMinXMaxYCorner } | |
static var bottomRightCorner: CACornerMask { return .layerMaxXMaxYCorner } | |
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
func onAppOpenAttribution(_ attributionData: [AnyHashable: Any]) { | |
// If opening app from onelink shortlink we check for `af_dp` property | |
if let deeplink = attributionData[Keys.deeplink] as? String, | |
let deeplinkURL = URL(string: deeplink) { | |
delegate?.setDeeplinkURL(deeplinkURL) | |
return | |
} | |
// Else we get `link` property and and parse it's params |
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
{ | |
data = { | |
clips = ( | |
{ | |
"clip_board_ids" = ( | |
7925 | |
); | |
creator = { | |
id = 823408; | |
name = "Martin Pilch"; |
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
<head> | |
<!-- iOS --> | |
<meta property="al:ios:url" content="ztory://view/magazines" /> | |
<meta property="al:ios:app_store_id" content="647302038" /> | |
<meta property="al:ios:app_name" content="Ztory" /> | |
<!-- Android --> | |
<meta property="al:android:url" content="ztory://view/magazines"> | |
<meta property="al:android:package" content="com.ztory.main"> | |
<meta property="al:android:app_name" content="Ztory"> | |
<!-- Other headers --> |
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
* Tracktivity : TRSignInInfoCell.m | |
* | |
* Copyright (c) 2013, Tapmates s.r.o. (www.tapmates.com). | |
* Created by martin pilch on 08/07/14. | |
* | |
* All rights reserved. This source code can be used only for purposes specified | |
* by the given license contract signed by the rightful deputy of Tapmates s.r.o. | |
* This source code can be used only by the owner of the license. | |
* | |
* Any disputes arising in respect of this agreement (license) shall be brought |
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
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-8-[_spotNameLabel(<=140)]" | |
options:NSLayoutFormatAlignAllBaseline | |
metrics:nil | |
views:viewsDictionary]; | |
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_spotNameSeparator(==_spotNameLabel)]" | |
options:NSLayoutFormatAlignAllBaseline | |
metrics:nil | |
views:viewsDictionary]; |
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
// | |
// TMViewDeckController.h | |
// | |
// Created by Martin Pilch on 4/25/13. | |
// Copyright (c) 2013 Martin Pilch. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface TMViewDeckController : UIViewController |
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
// | |
// UIImageView+DownloadProgress.h | |
// | |
// | |
// Created by Martin Pilch on 3/29/13. | |
// | |
// | |
#import "UIImageView+AFNetworking.h" |
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)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
//... Initialization of application | |
//Screen notification handlers | |
NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; | |
[center addObserver:self selector:@selector(handleScreenDidConnectNotification:) | |
name:UIScreenDidConnectNotification object:nil]; | |
[center addObserver:self selector:@selector(handleScreenDidDisconnectNotification:) | |
name:UIScreenDidDisconnectNotification object:nil]; |
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
GSObject *dictionary = [[[GSObject alloc] init] autorelease]; | |
[dictionary putStringValue:@"facebook" forKey:@"provider"]; | |
[dictionary putStringValue:@"109322029116699" forKey:@"facebookAppId"]; | |
[dictionary putStringValue:@"tw4" forKey:@"facebookLocalAppId"]; | |
[dictionary putStringValue:@"email,user_birthday,user_location,publish_stream,offline_access" forKey:@"facebookExtraPermissions"]; |
NewerOlder