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 at.salzburgag.iot.dataplatform.smartmeter.utils.tracing; | |
import io.micronaut.aop.InterceptedMethod; | |
import io.micronaut.aop.InterceptorBean; | |
import io.micronaut.aop.MethodInterceptor; | |
import io.micronaut.aop.MethodInvocationContext; | |
import io.micronaut.core.annotation.Nullable; | |
import io.micronaut.core.convert.ConversionService; | |
import io.micronaut.core.propagation.PropagatedContext; | |
import io.micronaut.tracing.opentelemetry.OpenTelemetryPropagationContext; |
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.function.Consumer; | |
import java.util.function.Function; | |
sealed interface Result<T> { | |
static <TOK> Result<TOK> ok(TOK value) { | |
return new Ok<>(value); | |
} | |
static <TOK> Result<TOK> err(String error) { | |
return new Err<>(error); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Collaborations</title> | |
<meta charset="UTF-8"> | |
<script src="https://d3js.org/d3.v7.min.js"></script> | |
</head> | |
<body></body> | |
<script> |
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
module Code exposing (..) | |
type alias Number = | |
Int | |
type alias Entry = | |
{ name : String | |
, number : String |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Programs.fs" /> | |
<Compile Include="Tests.fs" /> |
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
using System; | |
using Xunit; | |
namespace DojoApr | |
{ | |
public delegate int DistanceCalculation (Point p1, Point p2); | |
public static class Metrics { | |
public static readonly Metric MANHATTAN = new Manhattan(); | |
public static readonly DistanceCalculation MANHATTAN1 = new Manhattan().Distance; | |
} |