Skip to content

Instantly share code, notes, and snippets.

View lilgallon's full-sized avatar
🏄‍♂️
waiting for the wave

Lilian Gallon lilgallon

🏄‍♂️
waiting for the wave
View GitHub Profile
@lilgallon
lilgallon / main.kt
Created May 7, 2021 12:33
codingame spring ai
import java.util.*
import java.io.*
import java.math.*
data class Cell (
val index: Int,
val richness: Int,
val neighbours: List<Int>
)
@lilgallon
lilgallon / minecraft.md
Created January 28, 2021 10:49
Best Minecraft launch options (jvm arguments)
@lilgallon
lilgallon / projects.md
Last active January 31, 2020 05:12
University projects

List of my University projects 🏫

Are listed here, only the projects that are on github. Some repositories may still be private because I need to clean them.

<project name>: language (tools) ~ grade

Pape Clément High School (2015 - 2016)

Game dev:

@lilgallon
lilgallon / convertVKSwingtoGLFW.java
Created December 7, 2019 04:46
This functions converts a java.awt.event.KeyEvent Virtual Key (VK) code to a GLFW key code.
/**
* All the keys listed in java.awt.event are listed here. If there
* is no GLFW equivalent the function returns -2. Otherwise it returns
* the GLFW code. -1 is reserved for the GLFW's unknown code.
*
* /!\ 1. java.awt.event.KeyEvent does not make any difference between left and right keys for:
* - shift,
* - control,
* - alt.
* So we had to decide, and this function return the code of the right one.
@lilgallon
lilgallon / convertVKtoGLFW.java
Last active December 7, 2019 02:40
This functions converts a Virtual Key (VK) code to a GLFW key code.
/**
* The most used keys are mapped here. If not, the function
* will return -2. -1 is reserved for "GLFW_KEY_UNKNOWN".
*
* Version 1.0
* Future updates here: https://gist.github.com/N3ROO/eb0cc2fc38920fb5081aba2c542eda55
*
* @param vk_code Virtual key code
* @return the GLFW key code corresponding (-2 if not supported)
*/
@lilgallon
lilgallon / vue-cheatsheet.md
Created November 20, 2019 04:09
Vue.js cheatsheet
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="js/app.js"></script>
new Vue({
    el: '#id',
    data: {
 // ...
@lilgallon
lilgallon / launch_options
Created September 26, 2019 23:32
CSGO launch options
-novid -tickrate 128 -language bananagaming
@lilgallon
lilgallon / autoexec.cfg
Created September 11, 2019 11:52
CSGO autoexec
echo "-- AUTOEXEC RUNNING --"
echo "Binding jumpthrow... (j)"
alias "+jumpthrow" "+jump;-attack"; alias "-jumpthrow" "-jump"; bind j "+jumpthrow"
echo "Binding crosshair max... (alt)"
alias "+crosshairmax" "cl_crosshairsize 5000; cl_crosshairgap -10; cl_crosshairthickness 0.5"
alias "-crosshairmax" "cl_crosshairsize 2; cl_crosshairgap -2; cl_crosshairthickness 0.1"
bind alt "+crosshairmax"
@lilgallon
lilgallon / config.cfg
Created September 11, 2019 11:49
CSGO Config
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
@lilgallon
lilgallon / print_progress.py
Last active August 7, 2019 19:27 — forked from aubricus/License
Python Progress Bar
import sys
# Print iterations progress
def print_progress(iteration, total,
prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params: