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.evolutionnext.demo.virtualthreads; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URI; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; | |
import java.util.concurrent.*; |
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.evolutionnext.demo.virtualthreads; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URI; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; | |
import java.util.concurrent.*; |
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 class GroupBy<T, K> implements Gatherer<T, HashMap<K, List<T>>, Map.Entry<K, List<T>>> { | |
private final Function<T, K> groupFunction; | |
public GroupBy(Function<T, K> groupFunction) { | |
this.groupFunction = groupFunction; | |
} | |
@Override | |
public Supplier<HashMap<K, List<T>>> initializer() { |
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
#!/bin/bash | |
# Function to check a single git repository | |
check_git_repo() { | |
local dir=$1 | |
cd "$dir" || return | |
# Check for uncommitted changes | |
uncommitted_changes=$(git status --porcelain) | |
if [ ! -z "$uncommitted_changes" ]; then |
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 java.util.concurrent.ExecutionException; | |
import java.util.concurrent.StructuredTaskScope; | |
import java.util.concurrent.atomic.AtomicLong; | |
public class MillionsOfTasks { | |
private final AtomicLong atomicLong; | |
public MillionsOfTasks() { | |
atomicLong = new AtomicLong(); | |
} |
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
[ | |
{ | |
"type": "record", | |
"namespace": "MyEvents", | |
"name": "PhoneNumber", | |
"fields": [ | |
{ | |
"name": "countryCode", | |
"type": "string" | |
}, |
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
@REM ---------------------------------------------------------------------------- | |
@REM Licensed to the Apache Software Foundation (ASF) under one | |
@REM or more contributor license agreements. See the NOTICE file | |
@REM distributed with this work for additional information | |
@REM regarding copyright ownership. The ASF licenses this file | |
@REM to you under the Apache License, Version 2.0 (the | |
@REM "License"); you may not use this file except in compliance | |
@REM with the License. You may obtain a copy of the License at | |
@REM | |
@REM http://www.apache.org/licenses/LICENSE-2.0 |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
dns.alpha.kubernetes.io/internal: api.internal.dik8ssecurity01.k8s.local | |
kubectl.kubernetes.io/default-container: kube-apiserver | |
creationTimestamp: null | |
labels: | |
k8s-app: kube-apiserver | |
name: kube-apiserver |
openpgp4fpr:8FC6B46B0E6D168B9AD09E774EE08417F5FD33D2
NewerOlder