I hereby claim:
- I am coolio107 on github.
- I am coolio (https://keybase.io/coolio) on keybase.
- I have a public key whose fingerprint is 615F 1BFA 954F 1493 3897 714A 18E8 7C7B FD6A B005
To claim this, I am signing this object:
- (UIInterfaceOrientation)relativeInterfaceOrientationFromRotationAngle:(CGFloat)angle { | |
NSArray * conversionMatrix = @[ @(UIInterfaceOrientationPortrait), | |
@(UIInterfaceOrientationLandscapeRight), | |
@(UIInterfaceOrientationPortraitUpsideDown), | |
@(UIInterfaceOrientationMaskLandscapeLeft)]; | |
NSInteger oldIndex = [conversionMatrix indexOfObject:@(self.interfaceOrientation)]; | |
if (oldIndex == NSNotFound) | |
return UIInterfaceOrientationUnknown; | |
NSInteger newIndex = (oldIndex - (NSInteger)roundf(angle / M_PI_2)) % 4; |
I hereby claim:
To claim this, I am signing this object:
// | |
// CoreImage filter chain to blur an arbitrary UIImage | |
// Input: blur radius and target size | |
// This is assumed to be called on a background queue, it takes a response block to process the completed, blurred image | |
// <C> 2013/2014 Joerg Schwieder, use at will; I'd love to see an attribution, of course but don't demand it. | |
// Contains some pseudo code, see comments. | |
// | |
+ (CGFloat)blurRadius { |