Skip to content

Instantly share code, notes, and snippets.

Heaven, I'm in heaven, And my heart beats so that I can hardly speak !

Alexandre Plennevaux pixeline

Heaven, I'm in heaven, And my heart beats so that I can hardly speak !
Block or report user

Report or block pixeline

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
pixeline /
Created Oct 10, 2019
Create hosting user (Nginx).
# Script automating the creation of a hosting account : the user, its folder, its virtualhost
: '
$ bash /home/pixeline/bin/create-hosting-user username password domain.tld
- username (if not created, create it, otherwise use current) SEE
- user password (for existing user, enter anything, it will not be used)
pixeline / virtualhost_le_template
Last active Oct 10, 2019
virtualhost Template (Nginx)
View virtualhost_le_template
server {
root template.webroot;
server_name template.url;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
# First attempt to serve request as file, then
pixeline / React-learning-States-and-events.js
Created Aug 28, 2019
Pure React, Chapter 11: Exercise at the end of the chapter. Is this a proper react way to pass the ID to the state ?
View React-learning-States-and-events.js
const Room = ({onAction, room, children}) =>(
<button id={room} onClick={onAction} >{children}</button>
class House extends React.Component {
state = {
rooms: {
kitchen: true,
bathroom: false,
livingRoom: true,
pixeline /
Created Jun 1, 2019
Deploy a "docker-composed" environment on DigitalOcean

Deploy docker-compose on digitalocean

  1. create Docker droplet via digitalocean one-click-app-docker
  2. log into it
  3. generate SSH key
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
  1. Copy it
pixeline / function.remove_empty_html_tags.php
Last active Apr 28, 2019
PHP function removing all empty html nodes from a given html fragment. Useful for cleaning content entered via WYSIWYG editors.
View function.remove_empty_html_tags.php
function remove_empty_html_tags($html)
* PHP function removing all empty html nodes from a given html fragment. Useful for cleaning content entered via WYSIWYG editors.
* source:
* Regex by Mark Notton
$regex = '~<((?!iframe|canvas)\w+)[^>]*>(?>[\p{Z}\p{C}]|<br\b[^>]*>|&(?:(?:nb|thin|zwnb|e[nm])sp|zwnj|#xfeff|#xa0|#160|#65279);|(?R))*</\1>~iu';
return preg_replace($regex, '', $html);


Je voudrais une chouette photo permettant de remercier close the gap de fournir tous les laptops gratuitement.

Pourriez vous prévoir cette semaine (peut être quand Charleroi vient ?) de réaliser ceci: Chaque écran de laptop qui affiche un "merci" en géant. Chaque apprenant peu choisir:

  • la langue du merci (chaque écran dans une autre langue)
  • couleur écriture et couleur fond
  • typographie et disposition (sens et rotation)

JS Frameworks : ReactJS

Il y a le backend, il y a le frontend... Et il y a les frameworks Javascript tels que Angular (made in Google), Vue.js (opensource) et React (Made in Facebook).

A priori, ce sont d'abord des outils pour faire du frontend, mais avec la particularité que vous pouvez manipuler des services de données externes (tels que Firebase ou AWS) directement depuis votre code frontend. Des bâtards, quoi.

Quel est leur intérêt ?

Ils sont particulièrement indiqués pour les applications web et les interfaces très réactives, plus que pour les simples sites vitrines (où l'utilisateur va surtout lire).


Discussion sur les tarifs/salaires:

résumé d'une discussion chez BeCode/Lovelace2 (animée par Juan et Alex).

Les questions

  • Comment savoir combien je vais gagner en tant qu’employé?
  • Comment négocier mon contrat/salaire?
  • En tant qu’indépendant, combien demander pour la réalisation d’un site?

Les infos récoltées

pixeline /
Last active Aug 28, 2019 — forked from blackfalcon/
Exercises in basic Sass features

Sass is a powerhouse language that is adding new features all the time. For this introduction we will go over the basics of the language and see how they all tie together. We will discuss nesting, parent selector definitions, variables, Sass math, @extends, and @mixins.

Code comments

Commenting your code is the number one awesome thing any developer can do. In CSS you can place comments in your code /* */, but this will appear in the actual CSS and sometimes you don't want or need all that stuff to be there.

In Sass comments are highly encouraged. Sass has what are called 'silent comments' using the // syntax. This will allow the developer to comment like crazy and none of this is exposed in the final CSS. An interesting feature is that Sass supports both types of comments.


View Good bye

Voilà. C'est quasi fini. 25 avril --> 27 octobre 2017

185 jours
15.984.000 secondes
266.400 minutes
4440 heures
26 semaines et 3 jours.

Vous avez été la première promo de BeCode.

You can’t perform that action at this time.