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 / regex.md
Last active August 12, 2020 08:26
Reg Ex Survivor guide
@mcgivrer
mcgivrer / InputHandler.java
Last active April 2, 2021 23:17
A Simple InputHandler with action vs. key mapping, mainly for gaming purpose
/**
* The <code>InputHandler</code> is implementing the <code>KeyListener</code> to
* be the keyboard manager. It is mapping some <code>keyEvent</code> code to
* possible <code>ACTIONS</code>.
* <ul>
* <li>the <code>keyMapping</code> are the map containing the mapping between
* some KeyCode to <code>ACTIONS</code> values,</li>
* <li>the internal <code>keys</code> map contains all keys status as boolean
* values,</li>
* <li>the <code>actions</code> contains all Action events produced.</li>
@mcgivrer
mcgivrer / git-survival-guide.md
Last active May 31, 2022 19:36
Humble GIT Survival Guide
title author date version description tags
Git Survival Guide
Frédéric Delorme
2022-MAY-20
1.0.5
This docuemnt intends to provide some helpt on git usage. Some parts are from their respective author (see provided links)
git,branch,tag,flow

Humble Git Survival Guide

@mcgivrer
mcgivrer / README.md
Last active February 4, 2022 10:45
Maven POM with packaging, producing an archive containing the a jar and some launching scripts

README

The structure of this project template is as follow:

[projectRoot]
|_ src
|  |_ assembly
|  |  |_scripts
| | |_dep.xml
@mcgivrer
mcgivrer / tools-survival-guide.md
Last active May 4, 2022 13:42
Tools survival guide
title created author description
Tools survival guide
2022
Fréédric Delorme
some useful information for any user or developer using Linux

Tools Survival Guide

Tmux

@mcgivrer
mcgivrer / create-java-project.sh
Last active May 16, 2022 15:33
Generate a Java project from scratch (v2)
#!/bin/bash
if [ $1 -eq ""]; then
#---- Display help message ---------------------------------------
echo -e "Command line: $0
Usage:
-------
$0 -n [project_name] -p [project_version] -a [author_name] -e [author_email] -j [java_version] -k [app_package_name]
where:
- p [project_name] name of the project directory to be generated (will be used capitalized as application name and main class),
- v [project_version] the version for the project to be initialized
@mcgivrer
mcgivrer / powerline-and-tmux.md
Last active March 16, 2022 23:22
Powerline and tmux
@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 / 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 / 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