This file contains hidden or 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
| // | |
| // CXEImageToVideo.swift | |
| // VideoAPPTest | |
| // | |
| // Created by Wulei on 16/12/14. | |
| // Copyright © 2016年 wulei. All rights reserved. | |
| // | |
| import Foundation | |
| import AVFoundation |
This file contains hidden or 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 Foundation | |
| extension String | |
| { | |
| var length: Int { | |
| get { | |
| return countElements(self) | |
| } | |
| } | |
This file contains hidden or 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
| static NSString * BCP47LanguageCodeFromISO681LanguageCode(NSString *ISO681LanguageCode) { | |
| if ([ISO681LanguageCode isEqualToString:@"ar"]) { | |
| return @"ar-SA"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"cs"]) { | |
| return @"cs-CZ"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"da"]) { | |
| return @"da-DK"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"de"]) { | |
| return @"de-DE"; | |
| } else if ([ISO681LanguageCode hasPrefix:@"el"]) { |
This file contains hidden or 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
| UIView *myView = cell.containerView; | |
| CALayer *layer = myView.layer; | |
| CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity; | |
| rotationAndPerspectiveTransform.m34 = 1.0 / -1000; | |
| rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI / 0.3, 0.0f, 1.0f, 0.0f); | |
| layer.transform = rotationAndPerspectiveTransform; | |
| [UIView animateWithDuration:1.0 animations:^{ | |
| layer.transform = CATransform3DIdentity; | |
| }]; |
This file contains hidden or 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
| license: gpl-3.0 | |
| height: 600 | |
| redirect: https://observablehq.com/@d3/d3-force-directed-graph |