Skip to content

Instantly share code, notes, and snippets.

🤓
Always Learning

Gabriel Froes gabrielfroes

🤓
Always Learning
Block or report user

Report or block gabrielfroes

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
@gabrielfroes
gabrielfroes / slugify.js
Last active Jun 17, 2019 — forked from mathewbyrne/slugify.js
Javascript Slugify
View slugify.js
/*
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 () {
@gabrielfroes
gabrielfroes / emailmask.js
Created Feb 21, 2018
Javascript Email Mask
View emailmask.js
/*
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++){
@gabrielfroes
gabrielfroes / Gravatar.php
Created Mar 19, 2018
PHP client library for Gravatar
View Gravatar.php
<?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
@gabrielfroes
gabrielfroes / Dockerfile
Created Oct 5, 2018
Docker + VS Code #CDFTV #MaoNoCodigo3
View Dockerfile
FROM php:7.2-apache
RUN docker-php-ext-install mysqli
RUN a2enmod rewrite
@gabrielfroes
gabrielfroes / capuccino-developer.php
Last active Oct 8, 2019
Recipe for Developer Daily Capuccino
View capuccino-developer.php
<?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.
You can’t perform that action at this time.