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) setSelected:(BOOL) value{ | |
| if (value == true) { | |
| self.layer.borderWidth=5.0f; | |
| self.layer.borderColor = [[UIColor greenColor] CGColor]; | |
| self.enabled = YES; | |
| } else { | |
| self.layer.borderWidth=0.0f; | |
| self.layer.borderColor = [self.backgroundColor CGColor]; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>en</string> | |
| <key>CFBundleExecutable</key> | |
| <string>$(EXECUTABLE_NAME)</string> | |
| <key>CFBundleIdentifier</key> | |
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
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
| NSURLSession *session = [NSURLSession sharedSession]; | |
| NSLog(@"Current thread:%@",[NSThread currentThread]); | |
| [[session dataTaskWithURL:url | |
| completionHandler:^(NSData *data, | |
| NSURLResponse *response, | |
| NSError *error) { | |
| NSLog(@"Current thread:%@",[NSThread currentThread]); | |
| } |
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
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| [self highLightSquares:moves]; | |
| NSLog(@"Current thread:%@",[NSThread currentThread]); | |
| }); |
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
| Chess board ready: | |
| Rb Nb Bb Qb Kb Bb Nb Rb | |
| Pb Pb Pb Pb Pb Pb Pb Pb | |
| - - - - - - - - | |
| - - - - - - - - | |
| - - - - - - - - | |
| - - - - - - - - | |
| Pw Pw Pw Pw Pw Pw Pw Pw |
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
| { | |
| "personalBest": [ | |
| { | |
| "timeInSecond": 9557, | |
| "distance": "marathon" | |
| }, | |
| { | |
| "timeInSecond": 4723, | |
| "distance": "half-marathon" | |
| }, |
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 Foundation | |
| struct Constants { | |
| struct Urls { | |
| static let BaseUrl = "https://myserver" | |
| static let FtpUrl = "ftp://myserver" | |
| } | |
| struct Folders { |
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
| # LABS_FOLDER references the folder that contains 'solutions' and '00-PARENT' folders | |
| cd $LABS_FOLDER | |
| # Vous pouvez modifiez le groupId avec le nom de votre société si vous le souhaitez | |
| mvn archetype:generate -DgroupId=com.retengr -DartifactId=01-IOC -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false | |
| cd 01-IOC | |
| # Si vous utilisez Eclipse | |
| mvn eclipse:eclipse |
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 com.retengr.model.Client; | |
| import com.retengr.model.Compte; | |
| import com.retengr.service.BanqueService; | |
| import org.junit.Assert; | |
| import org.junit.BeforeClass; | |
| import org.junit.Test; | |
| import org.springframework.context.ApplicationContext; | |
| import java.util.Arrays; | |
| import java.util.List; |
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
| package com.retengr.service; | |
| import java.util.List; | |
| import com.retengr.model.Client; | |
| import org.junit.Assert; | |
| import org.junit.BeforeClass; | |
| import org.junit.Test; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.support.ClassPathXmlApplicationContext; |