https://www.javaspecialists.eu/archive/Issue215-StampedLock-Idioms.html
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
services: | |
spring-petclinic: | |
image: spring-petclinic:latest | |
healthcheck: | |
test: wget --no-verbose --tries=1 --spider http://localhost:8080/actuator/health || exit 1 | |
interval: 30s | |
timeout: 5s | |
start_period: 30s | |
retries: 5 |
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
package com.ak.app; | |
import org.junit.jupiter.api.Test; | |
import java.time.DayOfWeek; | |
import java.time.LocalDate; | |
import java.time.temporal.TemporalAdjusters; | |
class SecondSaturdayOfMonth { | |
@Test |
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
signal <- c(1, 0, 0, 1) | |
fft_result <- fft(signal) | |
print(fft_result) |
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
package com.ak.app; | |
import org.junit.jupiter.api.Test; | |
import java.util.*; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ConcurrentMap; | |
import java.util.function.BiConsumer; | |
import java.util.function.Consumer; | |
import java.util.function.Function; |
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
package com.ak.app; | |
import javax.annotation.Nonnull; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.logging.Logger; | |
import java.util.stream.IntStream; | |
public class CommonPoolTest { | |
private CommonPoolTest() { | |
} |
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
package com.ak.util; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.atomic.LongAccumulator; | |
import java.util.function.UnaryOperator; | |
import java.util.stream.Stream; | |
import org.testng.Assert; | |
import org.testng.annotations.Test; |
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
package com.ak.util; | |
import java.time.Duration; | |
import java.time.Instant; | |
import java.time.temporal.TemporalAmount; | |
import java.util.Random; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.DelayQueue; | |
import java.util.concurrent.Delayed; | |
import java.util.concurrent.TimeUnit; |
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
package com.ak.fx.core; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.logging.Logger; | |
import java.util.stream.IntStream; | |
import org.junit.jupiter.api.Test; |
NewerOlder