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 { Directive, Input, OnChanges, SimpleChanges } from '@angular/core'; | |
import * as L from 'leaflet'; | |
/** | |
* Directive qui permet de gérer les fallbacks de fonds de cartes de leaflet. | |
* Liste des serveurs de tiles open source: https://leaflet-extras.github.io/leaflet-providers/preview/ | |
*/ | |
@Directive({ | |
selector: '[leaflet-tiles-fallback]' | |
}) | |
export class LeafletTilesFallbackDirective implements OnChanges { |
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
public class UserFactory { | |
private UserRepository userRepository; | |
public UserFactory(UserRepository userRepository) { | |
this.userRepository = userRepository; | |
} | |
public User createUser(UserInfo userInfo) { | |
String email = userInfo.getEmail(); |
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
public class UserFactory { | |
private UserRepository userRepository; | |
public UserFactory(UserRepository userRepository) { | |
this.userRepository = userRepository; | |
} | |
public User createUser(UserInfo userInfo) { | |
String email = userInfo.getEmail(); |
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
public class UserFactory { | |
private UserRepository userRepository; | |
public UserFactory(UserRepository userRepository) { | |
this.userRepository = userRepository; | |
} | |
public User createUser(UserInfo userInfo) { | |
if (isEmailInvalid(userInfo.getEmail())) { |
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
#Organize Import Order | |
#Tue Nov 12 09:32:46 CET 2019 | |
5=fr | |
4= | |
3=com | |
2=org | |
1=javax | |
0=java |
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" standalone="no"?> | |
<profiles version="14"> | |
<profile kind="CodeFormatterProfile" name="Clean Code 2011" version="14"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> |
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
# .prettierrc or .prettierrc.yaml | |
printWidth: 120 | |
tabWidth: 2 | |
useTabs: false | |
semi: true | |
singleQuote: false | |
quoteProps: "as-needed" | |
trailingComma: "none" | |
bracketSpacing: true | |
arrowParens: "avoid" |