Skip to content

Instantly share code, notes, and snippets.

View nicolaspernot's full-sized avatar

Nicolas Pernot nicolaspernot

View GitHub Profile
@nicolaspernot
nicolaspernot / .Canvas.adoc
Last active June 18, 2020 08:27
Canvas.adoc

Canvas

In this gist I’ll link content for begin with Canvas html element.

@nicolaspernot
nicolaspernot / .Node.js.adoc
Last active July 30, 2020 09:05
Node.js.adoc

Node.js

In this gist I’ll link content for begin with NodeJs.

@nicolaspernot
nicolaspernot / .Flutter.adoc
Last active May 24, 2020 21:28
Flutter.adoc
@nicolaspernot
nicolaspernot / play-with-stash
Last active May 23, 2019 15:45
Stasher des modifications en cours (fichiers non suivis inclus), lister les stashes, récupérer un stash, afficher ce qu'il y a dans mon stash
# `git stash` est le raccourci de `git stash push`
# `-m "mon message"` permet d'ajouter un message à son stash (comme lors d'un commit).
# `-u` Inclu les fichiers non suivis au stash ("u" pour untracked).
$ git stash push -m "Description de ce que je mets dans mon stash" -u
Copie de travail et état de l'index sauvegardés dans On le-nom-de-ma-branche-courante: Description de ce que je mets dans mon stash
# Plus le stash est ancien plus son numéro est élevé.
$ git stash list
stash@{0}: On le-nom-de-ma-branche-courante: WIP : Description de ce que je mets dans mon stash
stash@{1}: On une-autre-branche: Un joli message
@nicolaspernot
nicolaspernot / Dockerfile-Add-GD
Last active May 23, 2019 15:46
[Docker] PHP - Add GD extension
RUN apk add --no-cache freetype-dev libjpeg-turbo-dev libpng-dev && \
docker-php-ext-install gd
@nicolaspernot
nicolaspernot / output.php
Last active January 31, 2017 09:27
Print $var in log for debug meaning (otherwise use Dependance Injection instead of Object Manager)
/** @var \Psr\Log\LoggerInterface $logger */
$logger = $this->_objectManager->create('\Psr\Log\LoggerInterface');
$logger->info($var);