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
| #!/bin/bash | |
| command="tmux new-session \;" | |
| for i in $(seq 1 $(($# - 1))); do | |
| command="${command} split-window -h \;"; | |
| done | |
| command="${command} select-layout tiled \;"; | |
| idx=0 |
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 org.example; | |
| import java.util.Map; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| public class Partitioning { |
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 pl.anestoruk; | |
| import org.apache.kafka.clients.admin.AdminClient; | |
| import org.apache.kafka.clients.admin.OffsetSpec; | |
| import org.apache.kafka.clients.consumer.KafkaConsumer; | |
| import org.apache.kafka.clients.producer.KafkaProducer; | |
| import org.apache.kafka.clients.producer.ProducerRecord; | |
| import org.apache.kafka.common.TopicPartition; | |
| import org.apache.kafka.common.serialization.StringDeserializer; | |
| import org.apache.kafka.common.serialization.StringSerializer; |
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
| @SpringBootTest | |
| @ActiveProfiles(["test"]) | |
| @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD) | |
| class ListConversionTest extends Specification { | |
| private static class SomeCoolObject {} | |
| @TestConfiguration | |
| static class TestRouteConfiguration { |