Android | iOS | Gen | Down max |
---|---|---|---|
NETWORK_TYPE_CDMA | 2G | ||
NETWORK_TYPE_IDEN | 2G | ||
NETWORK_TYPE_GPRS | CTRadioAccessTechnologyGPRS | 2.5G | |
NETWORK_TYPE_EDGE | CTRadioAccessTechnologyEdge | 2.75G | |
NETWORK_TYPE_1xRTT | CTRadioAccessTechnologyCDMA1x | 3G | |
NETWORK_TYPE_UMTS | CTRadioAccessTechnologyWCDMA | 3G | |
NETWORK_TYPE_EVDO_0 | CTRadioAccessTechnologyCDMAEVDORev0 | 3.5G | |
NETWORK_TYPE_EVDO_A | CTRadioAccessTechnologyCDMAEVDORevA | 3.5G |
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
- (void)correctAngleWithImage:(UIImage *)image | |
{ | |
VNImageRequestHandler *handler = [[VNImageRequestHandler alloc] initWithCGImage:image.CGImage options:@{}]; | |
VNDetectHorizonRequest *request = [[VNDetectHorizonRequest alloc] initWithCompletionHandler:^(VNRequest * _Nonnull request, NSError * _Nullable error) { | |
if (error) { | |
NSLog(@"%@", error); | |
} | |
else { | |
NSAssert(request.results.count > 0, @"No Results"); | |
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
// UIActivityTypes | |
NSString * const UIActivityTypePostToInstagram = @"com.burbn.instagram.shareextension"; | |
NSString * const UIActivityTypeFacebookMessenger = @"com.facebook.Messenger.ShareExtension"; | |
NSString * const UIActivityTypeWhatsApp = @"net.whatsapp.WhatsApp.ShareExtension"; | |
NSString * const UIActivityTypeTelegraph = @"ph.telegra.Telegraph.Share"; | |
NSString * const UIActivityTypeGmail = @"com.google.Gmail.ShareExtension"; | |
NSString * const UIActivityTypeTencent = @"com.tencent.mqq.ShareExtension"; | |
NSString * const UIActivityTypeViber = @"com.viber.app-share-extension"; | |
NSString * const UIActivityTypeTumblr = @"com.tumblr.tumblr.Share-With-Tumblr"; | |
NSString * const UIActivityTypeSkype = @"com.skype.skype.sharingextension"; |
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 android.content.Context; | |
import android.content.SharedPreferences; | |
import android.provider.Settings.Secure; | |
import android.telephony.TelephonyManager; | |
import java.io.UnsupportedEncodingException; | |
import java.util.UUID; | |
public class DeviceUuidFactory { |
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 <UIKit/UIKit.h> | |
@interface NumberPadDoneBtn : UIView | |
@end | |
@interface NumberPadButton : UIButton | |
@end |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
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
#!/bin/bash | |
# Replaces classes in Android Package Files | |
# (c) Sebastian Fischer, CC-BY | |
# Can be used to rebuild an App with a modified version of a used library, | |
# as required for closed works that link to an LGPL library. | |
# Depends on: https://code.google.com/p/dex2jar/ |
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
#!/bin/sh | |
# Check if the individual developer has his own hook | |
CMD_NAME=`basename $0` | |
if [ -f $GIT_DIR/hooks/personal/$CMD_NAME ] | |
then | |
# If so, run it. $@ passes all the command line arguments passed to this function | |
# If the personal hook fails, fail this one as well | |
if ! $GIT_DIR/hooks/personal/$CMD_NAME $@ | |
then |