Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jerome Lachaud jeromelachaud

🏠
Working from home
Block or report user

Report or block jeromelachaud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeromelachaud
jeromelachaud / docker_wordpress.md
Created Jan 21, 2019 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin
View docker_wordpress.md

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
View Compteur.js
/**
* @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);
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View 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 ***
View script.js
const animalsArray = [
{
"name": "Lilou",
"species": "cat",
"size": "small",
"weight": 5
},
{
"name": "Maïna",
"species": "cat",
View node on Ubuntu
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
View .travis.yml
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
View async.js
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);
});
View marvel-fp.js
var comics = [
{
pages: 100,
price: 100
},
{
pages: 100,
price: 50
},
{
You can’t perform that action at this time.