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
@interface FGEntityLine : NSObject | |
@property (readonly, nonatomic) NSUInteger companyId; | |
@property (readonly, nonatomic) NSUInteger brandId; | |
@property (readonly, nonatomic) NSUInteger propertyId; | |
/** Returns YES if all identifiers are equal. */ | |
- (BOOL)isEqualToEntityLine:(FGEntityLine *)line; | |
@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
+ (NSString*)levelName { | |
if ([self isSubclassOfClass:[FGRoom class]]) { | |
return @"Room"; | |
} | |
} |
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
2015-04-02 18:27:43.897 Baccarat[18273:1755018] INFO: POST [START] : https://api.fingi-develop.com/v3/companies/12/brands/20/properties/30/rooms/1624/store_shopping_cart_items | |
2015-04-02 18:27:43.897 Baccarat[18273:1755018] VERBOSE: body : { | |
"store_name" = "pos_store"; | |
"store_shopping_cart_item" = { | |
"item_quantity" = 1; | |
"item_selection" = ""; | |
"item_tag" = "pos_bagel"; | |
"pos_item_id" = 10026; | |
}; | |
} |
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
{ | |
"name": "hahaha", | |
"a_null": null, | |
"a_true": true, | |
"a_false": false, | |
"a_n1": -1, | |
"a_0": 0, | |
"a_1": 1, | |
"a_2": 2, | |
} |
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
// using block in interface property, use "copy" | |
@property (copy, nonatomic) void (^simpleBlock)(void); | |
@property (copy, nonatomic) BOOL (^blockWithParamter)(NSString *input); | |
// block variable declaration | |
void (^addButton)(SEL, NSString *) = ^(SEL action, NSString *imageName) { | |
}; | |
// block typedef shorthand | |
typedef BOOL (^FailureHandler)(NSError *error); |
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
- (NSArray*)usStateAbbreviations { | |
static NSArray *array = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
array = @[@"AL", @"AK", @"AZ", @"AR", @"CA", @"CO", @"CT", @"DE", @"FL", @"GA", @"HI", @"ID", @"IL", @"IN", @"IA", @"KS", @"KY", @"LA", @"ME", @"MD", @"MA", @"MI", @"MN", @"MS", @"MO", @"MT", @"NE", @"NV", @"NH", @"NJ", @"NM", @"NY", @"NC", @"ND", @"OH", @"OK", @"OR", @"PA", @"RI", @"SC", @"SD", @"TN", @"TX", @"UT", @"VT", @"VA", @"WA", @"WV", @"WI", @"WY"]; | |
}); | |
return array; | |
} | |
- (NSArray*)usStateNames { |
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
// ---------------------------------- | |
//declaration in PRIVATE scope (for using only in your class) | |
// ---------------------------------- | |
// declare in .m | |
static const int kTweetMaxCharacters = 140; | |
static NSString * const kHelloString = @"HELLO!"; | |
// ---------------------------------- | |
// declaration in PUBLIC scope (for using in other classes too) | |
// ---------------------------------- |
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
# Description: | |
# Let's make Hubot say what you want in a particular room! :D | |
# | |
# Dependencies: | |
# - | |
# | |
# Configuration: | |
# - | |
# | |
# Commands: |
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
# Description: | |
# Automatically nags "non-offline" people in a room at a particular time interval to enter something. | |
# | |
# Dependencies: | |
# cron, time, node-xmpp | |
# | |
# Configuration: | |
# HIPCHAT_STANDUP_ROOM_JID e.g. '13184_botlab@conf.hipchat.com' | |
# HIPCHAT_STANDUP_TIMEZONE e.g. "Asia/Bangkok" or "Europe/Paris" or "America/New_York" | |
# HIPCHAT_STANDUP_CRON_TIME e.g. '0 0 14-18 * * 1-5' means weekdays, every hour from 2-6PM |
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
NSString *token = [[NSProcessInfo processInfo] globallyUniqueString]; |
OlderNewer