Skip to content

Instantly share code, notes, and snippets.

View denispeyrusaubes's full-sized avatar

Peyrusaubes denispeyrusaubes

View GitHub Profile
-(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];
<?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>
NSURLSession *session = [NSURLSession sharedSession];
NSLog(@"Current thread:%@",[NSThread currentThread]);
[[session dataTaskWithURL:url
completionHandler:^(NSData *data,
NSURLResponse *response,
NSError *error) {
NSLog(@"Current thread:%@",[NSThread currentThread]);
}
dispatch_async(dispatch_get_main_queue(), ^{
[self highLightSquares:moves];
NSLog(@"Current thread:%@",[NSThread currentThread]);
});
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
{
"personalBest": [
{
"timeInSecond": 9557,
"distance": "marathon"
},
{
"timeInSecond": 4723,
"distance": "half-marathon"
},
import Foundation
struct Constants {
struct Urls {
static let BaseUrl = "https://myserver"
static let FtpUrl = "ftp://myserver"
}
struct Folders {
# 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
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;
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;