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
#!/usr/bin/env python | |
# encoding: utf-8 | |
def parse_rules(obj): | |
assert obj != None | |
rules = [] | |
stack = [] | |
def _parse(key, item): |
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
/* | |
README: | |
Updated on 13/Oct. I can use self.favoriteList in .m file. Then we can use custom getter here. | |
1. The implemetation I did for the first time was correct. I used "@property (atomic) NSMutableArray<NSString *> *favoriteList;" in @interface Booking() and it works. | |
2. I don't need "//@synthesize favoriteList = _favoriteList;" for creating setter and getter, becuase Xcode will create them automaticlly now. | |
3. I think my implementation is better than having a "@property (atomic) NSMutableArray<NSString *> *favoriteList2;" in .m. Becuase having a favoriteList2 may confuse people. The cons of my implementation is that you may create custom getter and setter so you don't want to use _favoriteList, but for this simple example it should be fine. | |
*/ | |
// |
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
// | |
// WatchSessionManager.swift | |
// WatchConnectivityDemo | |
// | |
// Created by Natasha Murashev on 9/3/15. | |
// Copyright © 2015 NatashaTheRobot. All rights reserved. | |
// | |
import WatchConnectivity |
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
static NSInteger const maxRetryCountForFetchingTicket = 10; | |
- (void)_handleFetchTicketFailWithError:(NSError *)inError petID:(NSString *)inPet | |
{ | |
if ([inError code] == KKInvalidSessionError) { | |
//error handling | |
return; | |
} | |
retryCount ++; |
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
Hi [~bevan] [~pia] [~peteru], here I record three video, they are: | |
Test Case 01 - SignupLoginView | |
TestCase 02 TSItemView on credit card page | |
Test Case 03 - signup error | |
And I wrote test cases that I will put in Confluence to share with whoever needs it. | |
## Test Cases | |
- [ ] sign up view | |
- [ ] **signup successful** |
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
// ECSingalingChannel.m | |
- (void)onSocketSignalingMessage:(NSDictionary *)msg type:(NSString *)type { | |
if (!signalingDelegate) { | |
signalingDelegate = [_roomDelegate clientDelegateRequiredForSignalingChannel:self]; | |
[signalingDelegate setStreamId:message.streamId]; | |
[signalingDelegate setPeerSocketId:message.peerSocketId]; | |
[self setSignalingDelegate:signalingDelegate]; | |
} | |
} |