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
CATransaction.begin() | |
CATransaction.setCompletionBlock({ | |
// Every animation added to this transaction is now finished | |
}) | |
UIView.animateWithDuration(0.5, delay: 0.5, options: [], animations: { | |
view1.alpha = 1.0 | |
}, completion: { finished in | |
self.addSeveralLayerAnimations() | |
}) |
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 <XCTest/XCTest.h> | |
@interface RACSignal : NSObject | |
- (instancetype)someOperatorWithObject:(NSObject *)object; | |
- (NSString *)name; | |
@end |
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 <XCTest/XCTest.h> | |
#define RACNameBlockFromFormat(...) (^NSString *{\ | |
return [NSString stringWithFormat:__VA_ARGS__]; \ | |
}) | |
@interface RACSignal : NSObject | |
- (instancetype)someOperatorWithObject:(NSObject *)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
#import <XCTest/XCTest.h> | |
@interface RACSignal : NSObject | |
- (instancetype)someOperatorWithObject:(NSObject *)object; | |
- (NSString *)name; | |
@end |
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
# If you prefer to have this in yor fastfile | |
fastlane_version "1.90.0" | |
default_platform :ios | |
platform :ios do | |
lane :duplicates do |options| | |
remove_local_duplicate_profiles | |
end |
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/UIKit.h> | |
@interface UIScrollView (ScrollsToTop) | |
+ (void)forceNewViewsDefaultValueForScrollsToTop; | |
+ (void)makeOnlyThisScrollViewScrollToTopOnStatusBarTap:(UIScrollView *)scrollView; | |
- (void)makeOnlyThisScrollViewScrollToTopOnStatusBarTap; | |
@end |
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
CGPoint CGPointApplyCATransform3D(CGPoint point, CATransform3D transform, CGPoint anchorPoint, CATransform3D parentSublayerTransform) | |
{ | |
static CALayer *sublayer, *layer; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
sublayer = [CALayer layer]; | |
layer = [CALayer layer]; | |
[layer addSublayer:sublayer]; | |
}); | |
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
// MIT License | |
// | |
// Copyright (c) 2016 Thane Gill <me@thanegill.com> | |
// Copyright (c) 2014-2017 Art.sy, Inc. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of | |
// this software and associated documentation files (the "Software"), to deal in | |
// the Software without restriction, including without limitation the rights to | |
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
// of the Software, and to permit persons to whom the Software is furnished to do |
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/bash | |
# Created by Håvard Fossli <hfossli@gmail.com> in 2013 | |
# This is free and unencumbered software released into the public domain. | |
# For more information, please refer to <http://unlicense.org/> | |
# | |
# Description | |
# A bash script for fetching all branches and tags of a git project as snapshots into separate folders | |
# | |
# Keywords |
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/bash | |
BASEDIR="$( cd "$(dirname "$0/")" ; pwd -P )" | |
BUILD_DIR="$BASEDIR/Builds" | |
PROJECT_FILE="Butterfly.xcodeproj" | |
PRODUCT_NAME="Butterfly" | |
TARGET_NAME="Butterfly-iOS" | |
CONFIGURATION="Release" | |
CLEAR='\033[0m' |