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 / 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 / basic-java-survivor-guide.md
Last active February 9, 2023 14:18
Basic Java CLI Survivor Guide
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 38
---
title: the Basic Java Survival Guide : Java is an Oracle programming language (formerly a Sun one).
author: Frédéric Delorme 
createdAt: 2020-09-23
copyright: 2020,2021
description: the mandatory how-to to survive in the maelström of tools and command line tools in the Java world ecosystem.
license: MIT
---

The Basic Java Survival Guide

@mcgivrer
mcgivrer / DemoGame.java
Last active January 22, 2020 14:11
A Java DemoGame to play with
/**
* Project -=-=( DemoGame )=-=-
*
* This project aims at demobstrate basics for simple game.
*
* @author Frédéric Delorme <frederic.delorme@gmail.com>
* @since 2019
*/
import java.awt.Color;
@mcgivrer
mcgivrer / .gitignore
Last active March 20, 2024 07:45
The -Ultimate Maven Project Kit- to build project with sources, javadoc, only-one-shaded-jar, windows executable, publish artifact to git, verify version and add licenses !
/target/
/.classpath
/.project
/.vscode
/.idea
/dependency-reduced-pom.xml
/bin/
@jahe
jahe / spring-boot-cheatsheet.java
Last active May 16, 2024 07:44
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
@alicanalbayrak
alicanalbayrak / pom.xml
Last active February 20, 2019 03:02
jinput native library unpack example
<?xml version="1.0" encoding="UTF-8"?>
<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>org.gilmour.native</groupId>
<artifactId>jinput-2</artifactId>
<version>1.0-SNAPSHOT</version>
@remibantos
remibantos / wildfly_wmq.md
Last active August 24, 2022 07:03
Message Driven Beans with Wildfly and Websphere MQ

Message Driven Beans with Wildfly and Websphere MQ

Introduction

This page describes MDB (Message Driven Bean) configuration with Wildfly (> version 8 implementing Java EE 7/8) and Websphere MQ messaging broker.

Websphere MQ Resource Adapter

Description

Websphere MQ provides a resource adapter which is able to interact with latest and even legacy Websphere MQ versions. (See this link for WMQ v8.0 Resource Adapter compatibility details)

@jbenet
jbenet / simple-git-branching-model.md
Last active April 9, 2024 03:31
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@akottr
akottr / Maven.sublime-build
Last active August 1, 2022 06:47
For maven build put this file into ~/.config/sublime-text-3/Packages/User. Choose Tools -> Build System -> Maven. Ctrl+Shift+ P shows the entries (e.g mvn clean)
{
"working_dir": "$file_path",
"shell_cmd":"mvn clean install",
"variants": [
{
"name": "mvn clean install",
"shell_cmd": "mvn clean install"
},
{
"name": "mvn full build",
@carlosspohr
carlosspohr / README.md
Last active August 31, 2023 00:35
Functional Apache2 route for Gitlab 5.0

For your Ruby, you'll must install this gems:

sudo gem install passenger

sudo passenger-install-apache2-module

At this moment, you'll asked to install some Apache2's deps (three deps):

sudo apt-get install apache2-prefork-dev