Skip to content

Instantly share code, notes, and snippets.

View mcgivrer's full-sized avatar
🌐
Work onto a Platform !

Frédéric Delorme mcgivrer

🌐
Work onto a Platform !
View GitHub Profile
@mcgivrer
mcgivrer / JavaSimpleAppTemplate.java
Last active April 5, 2024 22:15
Java Simple Application Template (batch like)
package com.java.simple.app;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
/**
* Main class for project JavaSimpleAppTemplate
*
@mcgivrer
mcgivrer / BUILD_5.1_README.md
Last active November 2, 2023 14:19
Build v5.1 with properties file to define project.
title version description createdAt author tag
Java Project Build script
5.1
bring a very simple tool to compile java project to a jar file with JAR dependencies, execute unit test and check quality code.
2023-10-23
name email
Frédéric Delorme
<frederic.delorme@gmail.com>
java, build, unit-test, javadoc, doc, wrapjar, zip
@mcgivrer
mcgivrer / Configuration.java
Last active April 8, 2023 16:21
Pure Java implementation for Configruation
/**
* {@link Configuration} loads a properties file and
* let user gather converted value to
* <ul>
* <li>Integer,</li>
* <li>Double,</li>
* <li>Boolean,</li>
* <li>String.</li>
* <li>{@link Dimension} </li>
* <li>{@link Rectangle2D}</li>
@mcgivrer
mcgivrer / BoundingBox.java
Created March 17, 2023 20:43
A Quadtree implementation
/**
* Bounding Box for any object managed by the system.
*
* @author Frédéric Delorme
*/
public class BoundingBox {
/**
* position for the boundingbox.
*/
@mcgivrer
mcgivrer / Vector2d.java
Created March 3, 2023 20:25
A Vector2d implmentation class to compute some 2D vector math
import java.util.List;
import java.util.Objects;
/**
* {@link Vector2d} class is to define, manage and operate 2D Vector.
* <p>
* eg.usage :
*
* <pre>
* // create a vector
@mcgivrer
mcgivrer / MAVEN_README.md
Last active October 20, 2022 14:18
Maven with JUnit 5 + Cucumber project on a Github Repo

Maven Template

Here is a maven template file to :

  • create JAR
  • Javadoc
  • execute Unit and Cucumber Tests
  • build Shaded JAR
  • generate epub+pdf from 'docs/' markdown files
  • push github pages from 'docs/' markdown files
@mcgivrer
mcgivrer / .bash_aliases
Created September 15, 2022 14:46
Useful aliases
#!/bin/bash
alias l='ls --color=yes'
alias ll='l -l'
alias mci='mvn clean install'
alias mcin='mci -DskipTests=true'
alias mpp='mvn release:prepare'
alias mpperf='mvn release:perform'
alias idea='idea64.exe %1 &'
alias ltree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
@mcgivrer
mcgivrer / Installing-and-using-WSL2-Ubuntnu.md
Last active September 2, 2022 12:33
Installing and using WSL2+Ubuntu

Installing and using WSL2+Ubuntu

Installing

WSL 2

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
@mcgivrer
mcgivrer / pom-with-junit5
Created July 27, 2022 09:47
Maven, Junit5 and Cucumber test execution
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>core</groupId>
<artifactId>usecasetdd</artifactId>
<version>0.0.2-SNAPSHOT</version>
<name>UseCaseTDD</name>
<description>A demonstration project on how to create sustainable project.</description>
<inceptionYear>2022</inceptionYear>
<properties>
@mcgivrer
mcgivrer / intellij-trick-and-tips.md
Created April 19, 2022 13:51
IntelliJ Trick and Tips

IntelliJ Trick & Tips

Git Bash as a Terminal

Configure Git bash as terminal figure 1 - Configure Git Bash at defalut IntelliJ terminal

  1. Define the path and command line arguments to