Skip to content

Instantly share code, notes, and snippets.

View SimonGenin's full-sized avatar

Simon Genin (ges@odoo) SimonGenin

View GitHub Profile
@SimonGenin
SimonGenin / index.html
Created July 3, 2018 22:56
Vue.JS - Advanced Data Grid Component
<script type="text/x-template" id="dropdown-template">
<div class="dropdown" v-show="show" v-bind:class="originClass" transition="dropdown">
<slot>No dropdown content!</slot>
</div>
</script>
<script type="text/x-template" id="datagrid-template">
<table id="{{ id }}" class="table-striped datagrid">
<thead>
<tr>
@SimonGenin
SimonGenin / install-Python-AmazonLinux-20171023.log
Created December 16, 2018 16:27
Amazon Linux AMI, pyenv, virtualenv, Python, ... Hello, World!
### prerequisites
sudo yum groupinstall "Development Tools"
git --version
gcc --version
bash --version
python --version # (system)
sudo yum install -y openssl-devel readline-devel zlib-devel
sudo yum update
### install `pyenv`
@SimonGenin
SimonGenin / code.r
Created May 20, 2019 15:43
Code R - question 11
#Q11
MustardAnswer <- c(1, 1)
SeigleAnswer <- c(1, 1)
splittedBySpecies <- split( data , f = data$Espece )
for (species in splittedBySpecies) {
splittedBySpeciesAndDensity <- split (splittedBySpecies, f = splittedBySpecies$DensiteTot)
}
data<-read.table("competition.csv",
sep=";",
header=TRUE,
dec=",")
# Ajoute la colonne de poids individuel
data$PoidsInd <- data$Poids/data$DensiteSp
# On sépare les deux espèces
@SimonGenin
SimonGenin / tsconfig.json
Created October 15, 2020 15:40 — forked from ryanatkn/tsconfig.json
A TypeScript 3.5 tsconfig.json with all options organized and with documentation comments
{
// Commented-out options have their default values.
"include": ["src/**/*"],
"exclude": ["node_modules/*"],
// "files": [], // A list of relative or absolute file paths to include.
// "extends": "", // A string containing a path to another configuration file to inherit from.
// "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
// "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.
"compilerOptions": {