Skip to content

Instantly share code, notes, and snippets.

View ugurcanlacin's full-sized avatar
🤓

Uğurcan Laçın ugurcanlacin

🤓
View GitHub Profile
# A function that generates one line commit message by using Llama3.1 and copies it to clipboard on MacOS.
#####################################################################################
### HOW TO USE? ###
### Just copy and paste the following function to your .zshrc or .bashrc ###
### Run `source .zshrc` or `source .bashrc` after you updated your file. ###
#####################################################################################
# Requirement:
@ugurcanlacin
ugurcanlacin / CompatableFutureTest
Created January 30, 2020 14:49
CompletableFuture test with time benchmark
import org.apache.commons.lang3.time.StopWatch;
import org.junit.Assert;
import org.junit.Test;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class CompatableFutureTest {