Skip to content

Instantly share code, notes, and snippets.

View Koze's full-sized avatar
:octocat:
Refactoring

Koze Koze

:octocat:
Refactoring
View GitHub Profile
@Koze
Koze / SwiftDiffs.tsv
Created June 9, 2018 21:30
macOS 11.13.5 - 10.14 first Beta (18A293u) PrivavteFrameworks/Swift diffs
10.13.5 10.14 Beta (18A293u) Diffs
libswiftAVFoundation.dylib libswiftAVFoundation.dylib
libswiftAccelerate.dylib libswiftAccelerate.dylib
libswiftAppKit.dylib libswiftAppKit.dylib
libswiftCloudKit.dylib libswiftCloudKit.dylib
libswiftContacts.dylib libswiftContacts.dylib
libswiftCore.dylib libswiftCore.dylib
libswiftCoreAudio.dylib libswiftCoreAudio.dylib
libswiftCoreData.dylib libswiftCoreData.dylib
libswiftCoreFoundation.dylib libswiftCoreFoundation.dylib
@Koze
Koze / PrivavteFrameworkDiffs.tsv
Last active January 28, 2019 14:31
macOS 11.13.5 - 10.14 first Beta (18A293u) PrivavteFrameworks diffsv
10.13.5 10.14 Beta (18A293u) Diff
ACDEClient.framework ACDEClient.framework
AOSAccounts.framework AOSAccounts.framework
AOSAccountsLite.framework AOSAccountsLite.framework
AOSKit.framework AOSKit.framework
AOSMigrate.framework AOSMigrate.framework
AOSUI.framework AOSUI.framework
APFS.framework APFS.framework
APTransport.framework APTransport.framework
AVConference.framework AVConference.framework
@Koze
Koze / FrameworksDiffs.tsv
Last active June 9, 2018 21:22
macOS 11.13.5 - 10.14 first Beta (18A293u) Frameworks diffs
10.13.5 10.14 Beta (18A293u) Diff
AGL.framework AGL.framework
AVFoundation.framework AVFoundation.framework
AVKit.framework AVKit.framework
Accelerate.framework Accelerate.framework
Accounts.framework Accounts.framework
AdSupport.framework Added
AddressBook.framework AddressBook.framework
AppKit.framework AppKit.framework
AppKitScripting.framework AppKitScripting.framework
@Koze
Koze / compare.csv
Last active February 1, 2018 15:12
Compare Exif and metadata tag.
Properties MetadataTags
{
ColorModel = RGB;
DPIHeight = 72;
DPIWidth = 72;
Depth = 8;
Orientation = 6;
PixelHeight = 3024;
PixelWidth = 4032;
ProfileName = "sRGB IEC61966-2.1";
@Koze
Koze / metadata.txt
Last active February 1, 2018 11:29
Metadata with iOS 11 iPhone X back camera
<CGImageMetadataTag 0x600000838580> exif:SceneType = 1
<CGImageMetadataTag 0x6000008384c0> exif:SubsecTimeDigitized = 084
<CGImageMetadataTag 0x600000838920> exif:GPSDestBearingRef = T
<CGImageMetadataTag 0x6000008387a0> exif:GPSAltitudeRef = 0
<CGImageMetadataTag 0x600000837ea0> xmp:CreatorTool = 11.1
<CGImageMetadataTag 0x600000838180> exif:Flash = <CFBasicHash 0x600000c78c00 [0x105615bb0]>{type = mutable dict, count = 5,
entries =>
0 : <CFString 0x1068b86b8 [0x105615bb0]>{contents = "Function"} = <CGImageMetadataTag 0x600000838240> exif:Function = False
1 : <CFString 0x1068b8658 [0x105615bb0]>{contents = "Fired"} = <CGImageMetadataTag 0x6000008381a0> exif:Fired = False
2 : <CFString 0x1068b8678 [0x105615bb0]>{contents = "Return"} = <CGImageMetadataTag 0x600000838200> exif:Return = 0
@Koze
Koze / exif.txt
Last active July 16, 2018 11:25
Exif data with iOS 11 iPhone X back camera
{
ColorModel = RGB;
DPIHeight = 72;
DPIWidth = 72;
Depth = 8;
Orientation = 6;
PixelHeight = 3024;
PixelWidth = 4032;
ProfileName = "sRGB IEC61966-2.1";
"{Exif}" = {
@Koze
Koze / StringSort.m
Created January 19, 2018 03:17
String sort similar to iOS.
- (void)sortTest
{
NSArray<NSString *> *array = @[@"英語", @"中国語", @"韓国語", @"ロシア語", @"ルーマニア語"];
for (NSString *string in [array sortedArrayUsingSelector:@selector(compare:)]) {
NSLog(@"%@", string);
}
NSLog(@"\n");
// ルーマニア語
// ロシア語
// 中国語
@Koze
Koze / MFMailComposeViewController+XXAppearance.m
Last active November 19, 2017 01:41
Change the status bar to white when MFMailComposeViewController is launched from UIActivityViewController on iOS 11.
@implementation MFMailComposeViewController (XXAppearance)
// called when UIViewControllerBasedStatusBarAppearance = YES
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
// called when UIViewControllerBasedStatusBarAppearance = YES
- (UIViewController *)childViewControllerForStatusBarStyle
@Koze
Koze / ViewController.h
Last active September 19, 2017 21:26
iOS 11 UIImagePicker test
@import UIKit;
@import Photos;
@interface ViewController : UIViewController
@end
@Koze
Koze / AppDelegate.h
Created August 8, 2017 03:30
Change PersistentContainer URL dynamically.
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong) NSPersistentContainer *persistentContainer;
@property (nonatomic) NSURL *databaseURL;