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
| // inspiration from https://stackoverflow.com/a/53030159 | |
| class AttributeHelper | |
| { | |
| public static IEnumerable<(Type, string, PropertyInfo, int)> GetAttributeList<T>(Type @type, string path = "", HashSet<string> visited = null, int level = 0) where T : Attribute | |
| { | |
| visited = visited ?? new HashSet<string>(); | |
| if (!visited.Add(path)) | |
| { | |
| yield break; |
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 java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; |
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
| version: '3.7' | |
| services: | |
| zookeeper: | |
| image: zookeeper:3.4.9 | |
| hostname: zookeeper | |
| container_name: zookeeper | |
| ports: | |
| - "2181:2181" | |
| environment: |
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
| ('b' + 'a' + + 'a' + 'a').toLowerCase() |
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
| docker-compose -f kafka-docker-compose.yml up |
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
| <script src="https://unpkg.com/[email protected]"></script> | |
| <script src="https://unpkg.com/[email protected]"></script> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
| <ul id="example-2"> | |
| <li v-for="(item, index) in items"> | |
| {{ parentMessage }} - {{ index }} - {{ item.title }} | |
| </li> | |
| </ul> |
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.kritacademy.spring.sample; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.springframework.core.MethodParameter; | |
| import org.springframework.core.annotation.AnnotationUtils; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.http.converter.HttpMessageConverter; | |
| import org.springframework.http.server.ServerHttpRequest; | |
| import org.springframework.http.server.ServerHttpResponse; | |
| import org.springframework.web.bind.annotation.ControllerAdvice; |
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.kritacademy.spring.sample; | |
| import org.springframework.core.annotation.AliasFor; | |
| import java.lang.annotation.*; | |
| /** | |
| * @author krit on 12/19/2017. | |
| */ | |
| @Target({ElementType.METHOD, ElementType.TYPE}) |
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
| vat: | |
| rate: 0.07 |
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.kritacademy.spring.sample.fees; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.stereotype.Service; | |
| import java.math.BigDecimal; | |
| /** | |
| * @author krit on 7/23/2017. |
NewerOlder