Skip to content

Instantly share code, notes, and snippets.

View jeromelachaud's full-sized avatar
🏡
Working from home

Jerome Lachaud jeromelachaud

🏡
Working from home
View GitHub Profile
@jeromelachaud
jeromelachaud / docker_wordpress.md
Created January 21, 2019 09:32 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
/**
* @param {number} n - Nombre final du compteur.
* @param {number} cpt - Initialisation du compteur.
* @param {number} duree - Durée en seconde pendant laquel le compteur ira de 0 à 15.
* @param {number} interval - Nombre representant le palier entre chaque incrémentation valeur.
* @param {HTMLElement} node - Noeud où sera rafraîchi la valeur du compteur.
*/
var compteur = function(n, cpt, interval, duree, node, prefixe) {
var delta = Math.ceil(((duree*interval) * 1000) / n);

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jeromelachaud
jeromelachaud / release note template
Created June 25, 2018 06:59
release note template
The introduction. A short paragraph. Make this personal if appropriate. Eg. "Season greetings, everyone! You asked, Santa listened - this update is exactly what you ask for this Christmas."
TL; DR
• An extra short summary of these notes goes here.
*** NEW ***
• This is where you layout any new features.
• Explain where abouts these features are within your app.
• How do users find these new features?
• Which users will this benefits, or how exactly will this benefits them?
• E.g. "[Who benefits?] Apple Watch users will be particularly happy with the latest release. [Why?] We now automatically support handoff with your Mac. [Where/how?] Don’t forget to have your bluetooth turned on, you can do it]!"
*** IMPROVEMENTS ***
@jeromelachaud
jeromelachaud / script.js
Created September 14, 2017 12:56
ZXYmXm
const animalsArray = [
{
"name": "Lilou",
"species": "cat",
"size": "small",
"weight": 5
},
{
"name": "Maïna",
"species": "cat",
chsh -s $(which zsh)
sudo tar -C /usr/local --strip-components 1 -xzf ~/Downloads/node-v6.3.10-linux-x64.tar.gz
ls -l /usr/local/bin/node
https://stackoverflow.com/questions/37467252/how-to-install-node-v6-2-0-on-ubuntu
language: ruby
rvm:
- 2.3.3
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
install: gem install jekyll html-proofer
script: jekyll build && htmlproofer --http-status-ignore "999" check_html=true ./_site
const fetch = require('node-fetch');
function showGitHubUser(handle) {
const url = `https://api.github.com/users/${handle}`;
fetch(url)
.then(response => response.json())
.then(user => {
console.log(user.name);
console.log(user.location);
});
var comics = [
{
pages: 100,
price: 100
},
{
pages: 100,
price: 50
},
{