- 为什么应聘我们公司?
- bugfix of your own code
- add feature of your own code
| @import Photos; | |
| [PHPhotoLibrary requestAuthorizationForAccessLevel:PHAccessLevelReadWrite handler:^(PHAuthorizationStatus status) { | |
| NSLog(@"PHAuthorizationStatus: %ld", status); | |
| PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; | |
| fetchOptions.includeHiddenAssets = YES; | |
| fetchOptions.includeAllBurstAssets = YES; | |
| PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithOptions:fetchOptions]; |
| # Uncomment the next line to define a global platform for your project | |
| # platform :ios, '9.0' | |
| target '%TargetName%' do | |
| # Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
| use_frameworks! | |
| # Pods for %TargetName% | |
| # pod 'FBSDKCoreKit' | |
| end |
| # 2.7 | |
| CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include -I/usr/local/opt/zlib/include" \ | |
| LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" \ | |
| PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" \ | |
| pyenv install -v 2.7.12 --force | |
| # 3.x | |
| CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \ | |
| LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib" \ | |
| pyenv install -v 3.3.6 |
| #!/bin/sh | |
| set -e | |
| if [ -z "$1" ]; then | |
| shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4 | |
| else | |
| shot_path="$*" | |
| fi |
| /* | |
| * Copyright (C) 2016 Jeff Gilfelt. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #ifndef NS_DESIGNATED_INITIALIZER | |
| #if __has_attribute(objc_designated_initializer) | |
| #define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer)) | |
| #else | |
| #define NS_DESIGNATED_INITIALIZER | |
| #endif | |
| #endif |
| // Taken from http://PSPDFKit.com. This snippet is under public domain. | |
| #define UIKitVersionNumber_iOS_7_0 0xB57 | |
| BOOL PSPDFIsUIKitFlatMode(void) { | |
| static BOOL isUIKitFlatMode = NO; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| // We get the modern UIKit if system is running >= iOS 7 and we were linked with >= SDK 7. | |
| if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_7_0) { | |
| isUIKitFlatMode = (NSVersionOfLinkTimeLibrary("UIKit") >> 16) >= UIKitVersionNumber_iOS_7_0; | |
| } |
| /** 获取国内手机号运营商 | |
| * @param phone 手机号 | |
| * @return `U`是联通,`M`是移动,`T`是电信 | |
| */ | |
| +(NSString*)carrierOfPhone:(NSString*)phone{ | |
| if (phone.length>11) { | |
| //去掉乱七八糟的字符 | |
| phone=[[phone componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"+- "]] componentsJoinedByString:@""]; | |
| //如果86开头 去掉 |