This file contains 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/Foundation.h> | |
@interface HLOrder : NSObject | |
@property (strong, nonatomic) NSString *identifier; | |
@property (strong ,nonatomic) NSString *status; | |
@property (strong, nonatomic) NSArray *products; | |
@end |
This file contains 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
int equilibrium (int A[], int n){ | |
int sum = 0; | |
int solution = -1; | |
int leftSum = 0; | |
int rightSum = 0; | |
// Calculate the sum of all P in A | |
for (int i = 0; i < n; i++) | |
sum += A[i]; | |
// Try to find an equilibrium -> if yes return the first one | |
for (int i = 0; i < n; i++){ |
This file contains 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/Foundation.h> | |
@interface NSString (Char) | |
-(char *)toChar; | |
@end |
This file contains 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/Foundation.h> | |
@interface NSString (Reverse) | |
+(NSString*)stringReverse:(NSString*)str; | |
@end |
This file contains 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/Foundation.h> | |
@interface NSMutableDictionary (Minus) | |
-(void) minusDictionary:(NSDictionary*)otherDictionary; | |
@end |
This file contains 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 UITabBarController (HideViews) | |
@property (nonatomic, strong) NSString *hideViews; | |
@end |
This file contains 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
edit VMware preference file : ~/Library/Preferences/VMware\ Fusion/preferences | |
add these two lines: | |
pref.autoFitGuestToWindow = "FALSE" | |
pref.autoFitFullScreen = "stretchGuestToHost" | |
The 1st line disables auto fit for Single Window mode. | |
The 2nd one disable it for Full Screen mode |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Bucket | |
type = "2" | |
version = "2.0"> | |
<Breakpoints> | |
<BreakpointProxy | |
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint"> | |
<BreakpointContent | |
shouldBeEnabled = "Yes" | |
ignoreCount = "0" |