I hereby claim:
- I am vy on github.
- I am vy (https://keybase.io/vy) on keybase.
- I have a public key whose fingerprint is F1A5 FC81 7614 255A 8E44 1A9A D37D 4387 C9BD 368E
To claim this, I am signing this object:
/* | |
* Copyright © 2021 Volkan Yazıcı ([email protected]) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 2020 Volkan Yazıcı | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package com.vlkan; | |
import com.zaxxer.hikari.HikariConfig; | |
import com.zaxxer.hikari.HikariDataSource; | |
import com.zaxxer.hikari.metrics.prometheus.PrometheusMetricsTrackerFactory; | |
import io.micrometer.core.instrument.Clock; | |
import io.micrometer.core.instrument.MeterRegistry; | |
import io.micrometer.prometheus.PrometheusConfig; | |
import io.micrometer.prometheus.PrometheusMeterRegistry; | |
import io.prometheus.client.CollectorRegistry; |
package com.experiment.pubsub.pubsubdriver; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.Mono; | |
import reactor.core.scheduler.Scheduler; | |
import reactor.core.scheduler.Schedulers; | |
import java.time.Duration; |
package com.vlkan.demo.spring; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import javax.annotation.PostConstruct; |
I hereby claim:
To claim this, I am signing this object:
tc qdisc add dev eth0 root handle 1: prio | |
tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 5s | |
tc filter add dev eth0 protocol ip parent 1:0 u32 match ip sport 34001 0xffff flowid 1:3 |
import com.google.common.collect.Lists; | |
import com.google.common.collect.Maps; | |
import java.util.*; | |
/** | |
* Implements methods to compute the shortest minimax paths in a graph. | |
* | |
* A minimax path is the shortest length path such that the | |
* maximum edge weight along a path is minimum. (See the Wikipedia <a |
/** | |
* Returns shortest paths between all pairs using Floyd-Warshall algorithm. | |
* Nodes are assumed to be enumerated without any holes and enumeration | |
* starts from 0. | |
* | |
* @param nodes the set of vertices | |
* @param links the map of edges with costs | |
* @return shortest paths between all pairs, including the source and destination | |
*/ | |
def allPairsShortestPath(nodes: Set[Int], links: Map[Int, Set[Int]]): Map[Int, Map[Int, Seq[Int]]] = { |
#ifndef MERGE_NODE_ALGORITHM_HPP | |
#define MERGE_NODE_ALGORITHM_HPP | |
template <class T> | |
class MergeNodeAlgorithm { | |
public: | |
virtual bool empty() const = 0; | |
virtual void pop() = 0; | |
virtual T get() const = 0; |