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 / README.md
Last active May 28, 2019 11:01
Readme template for my projects

CTRL+R:

  • -> repository name
  • N3RO -> github name
  • -> short description
  • -> name of the course
  • -> name of the university
  • -> grade of the project
  • CONTRIBUTING.md -> url to CONTRIBUTING.md
  • CHANGELOG.md -> url to CHANGELOG.md
  • -> license name
@lilgallon
lilgallon / CHANGELOG.md
Created May 28, 2019 10:14
Changelog template for my projects

Changelog

Legend :

❌ Removed | ✔️ Added | 💫 Fixed | ✨ Improved

Version -

  • ✔️ added ...
  • 💫 fixed ...
  • ✨ improved ...
  • ❌ removed ...
@lilgallon
lilgallon / CONTRIBUTING.md
Created May 28, 2019 10:25
Contributing example for my projects

Contributing

When contributing to this repository, please make sure that the following rules are respected. If the rules are respected, you are free to change anything you want in the code ! Make a pull request and I will merge it - make sure to explain your changes ! :)

Coding style

  • Variables must be written using camelCase : thisIsMyVariable,
  • If an attribute or a variable is final, it should be written THIS_WAY,
  • Name the methods using camelCase as well : "itIsSomething()" and not this way "it_is_something()" ,
  • The getters must have "get" prefix, and then the exact name of the variable : "getHealth()" for "health",
  • If the variable is a boolean, then the getter should be written this way : "isAlive()" for "alive",
@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:
@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 / 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 / launch_options
Created September 26, 2019 23:32
CSGO launch options
-novid -tickrate 128 -language bananagaming
@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 / 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 / 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.