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 / typora-install.sh
Last active March 22, 2020 12:10
Typora ubuntu installation
#!/bin/bash
# see https://gist.github.com/mcgivrer/954b1340305cbe8f07bcdd3895da3d16
# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
@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 / book.css
Last active May 15, 2019 15:08
Generate PDF-EPUB from markdown with maven
/* BB eBooks BoilerPlate EPUB */
/* Modify as Needed */
/* NOT SUITABLE for Kindle */
/* visit us @ http://bbebooksthailand.com/developers.html */
/* This adds margins around every page to stop ADE's line numbers from being superimposed over content */
@page {margin: 10px;}
/*===Reset code to prevent cross-reader strangeness===*/
@mcgivrer
mcgivrer / README.md
Created January 30, 2019 23:27
Create some badges in the README.md file

README

Build & Checks

CI

Travis

Build Status

@mcgivrer
mcgivrer / license-badges.md
Created October 30, 2018 20:58 — forked from sadv1r/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

@mcgivrer
mcgivrer / pom.xml
Created August 19, 2018 14:08 — forked from alicanalbayrak/pom.xml
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>
@mcgivrer
mcgivrer / Configuration.java
Last active May 24, 2018 12:31
A simple Java Configuration class to provide some easy configuration capabilities to any Java project.
/**
* This `Configuration` class load properties from `res/configuration.properties` file.
* some provided helpers will retrieve:
* - String value `Configuration.get(String key, String default)`
* - int value `Configuration.getInteger(String key, inf default)`
* - float value `Configuration.getFloat(String key, float default)`
*
* @author McGivrer
* @see https://gist.github.com/McGivrer
* @see https://twitter.com/McGivrer
@mcgivrer
mcgivrer / Vector2D.java
Last active January 25, 2018 22:42
Math Helpers : Vector2D class to manage Vector !
/**
* SnapGames
*
* @year 2017
*
*/
package com.snapgames.sample.basicplayer.math;
/**
* Internal Class to manipulate simple Vector2D.
@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/
@mcgivrer
mcgivrer / Drop.java
Last active July 7, 2017 13:57
Java 2D RainDrop
private class Drop {
double x0;
double y0;
double v0; //initial velocity
double t; //time
double angle;
double x;
double y;