Skip to content

Instantly share code, notes, and snippets.

View mcgivrer's full-sized avatar

Frédéric Delorme mcgivrer

View GitHub Profile
@mcgivrer
mcgivrer / BUILD_5.2_README.md
Last active December 31, 2024 14:28
Build v5.2 with properties file to define project.
title Java Project Build script
version 5.2
description bring a very simple tool to compile java project to a jar file with JAR dependencies, execute unit test and check quality code.
createdAt 2023-10-23
author
name email
Frédéric Delorme
<fredericDOTdelormeTgmailDOTcom>
tag 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
@mcgivrer
mcgivrer / powerline-and-tmux.md
Last active March 16, 2022 23:22
Powerline and tmux