Skip to content

Instantly share code, notes, and snippets.

View bpongy's full-sized avatar

Benjamin PONGY bpongy

View GitHub Profile
@bpongy
bpongy / youtube.php
Created May 2, 2019 07:40
regex : YouTube URL
<?php
$excerpt = preg_replace('/((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)([a-zA-Z0-9&=?_]+)?/mi', '', $excerpt);
@bpongy
bpongy / variables.scss
Last active February 9, 2017 11:10
Project guideline
$bold: 700;
$light: 300;
$brand-secondary: #CD5334;
// taille de la gouttière
$grid-gutter-width: 20px;
// taille du container desktop
$container-large-desktop: 1144px + $grid-gutter-width;
// arrondi des boutons, champs, etc