This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Recipe for Developer Daily Capuccino | |
* | |
* @author Gabriel Froes & Vanessa Weber <contato@codigofonte.com.br> | |
* @version 1.0 | |
* @copyright GPL © 2018, youtube.com/codigofontetv | |
* @access public | |
* @package CDFTV\Recipes | |
* @example Classe CapuccinoDev. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli | |
RUN a2enmod rewrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*----------------------------------------------------------------------------- | |
* PHP client library for Gravatar | |
* | |
* Author: Gabriel Froes | |
* Copyright: (c) 2018 RW Studio | |
* License: BSD 3-Clause License | |
* See accompanying LICENSE file | |
* | |
* Version: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create a Mask in an email address | |
This function create a mask using a valid email address. | |
This is usefull when someone need to confirm the email used in a system | |
Author: Gabriel Froes - https://gist.github.com/gabrielfroes | |
*/ | |
function emailMask(email) { | |
var maskedEmail = email.replace(/([^@\.])/g, "*").split(''); | |
var previous = ""; | |
for(i=0;i<maskedEmail.length;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create SLUG from a string | |
This function rewrite the string prototype and also | |
replace latin and other special characters. | |
Forked by Gabriel Froes - https://gist.github.com/gabrielfroes | |
Original Author: Mathew Byrne - https://gist.github.com/mathewbyrne/1280286 | |
*/ | |
if (!String.prototype.slugify) { | |
String.prototype.slugify = function () { |