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
version: "3.8" | |
volumes: | |
local-workspace-fs: | |
name: "local-workspace-fs" | |
external: true | |
local-data-fs: | |
name: "local-data-fs" | |
external: 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
import org.apache.ignite.IgniteSpringBean; | |
import org.apache.ignite.configuration.IgniteConfiguration; | |
import org.apache.ignite.spi.discovery.DiscoverySpi; | |
import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi; | |
import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder; | |
import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Scope; |
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
static void merge(List<Long> first, List<Long> second) { | |
ListIterator<Long> firstIter = first.listIterator(); | |
ListIterator<Long> secondIter = second.listIterator(); | |
Long a = getNext(firstIter); | |
Long b = getNext(secondIter); | |
while (a != null && b != null) { | |
if (a > b) { | |
firstIter.previous(); |
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
sudo apt-get update && apt-get upgrade | |
# install java (homedir - /usr/lib/jvm/java-8-oracle/) | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
# or use this to set as default -> sudo apt install oracle-java8-set-default | |
# install maven (homedir - /usr/share/maven) |