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
body { | |
font-family: sans-serif; | |
} | |
section { | |
margin-bottom: 40px; | |
} | |
h1 { | |
font-size: 20px; |
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
jQuery.validator.addMethod("cnpj", function (cnpj, element) { | |
cnpj = jQuery.trim(cnpj); | |
// DEIXA APENAS OS NÚMEROS | |
cnpj = cnpj.replace('/', ''); | |
cnpj = cnpj.replace('.', ''); | |
cnpj = cnpj.replace('.', ''); | |
cnpj = cnpj.replace('-', ''); | |
var numeros, digitos, soma, i, resultado, pos, tamanho, digitos_iguais; |
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 | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <sean@iamseanmurphy.com> | |
* @copyright Copyright 2012 Sean Murphy. All rights reserved. |
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 | |
namespace models; | |
use InvalidArgumentException; | |
/** | |
* @Entity | |
* @Table(name="categories") | |
*/ | |
class Categories { |
NewerOlder