Skip to content

Instantly share code, notes, and snippets.

View enapupe's full-sized avatar

Iacami Gevaerd enapupe

View GitHub Profile
//A less clean solution, is to change the syntax of the AngularJS template tags. Just add the following statement during module instantiation:
var my_app = angular.module('MyApp').config(function($interpolateProvider) {
$interpolateProvider.startSymbol('{$');
$interpolateProvider.endSymbol('$}');
});
<?php
function validar_cnpj($cnpj)
{
$cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj);
// Valida tamanho
if (strlen($cnpj) != 14)
return false;
<?php
//error_reporting(0);
$validation = array(
'email' => 'Digite um e-mail!',
'nome' => "Digite seu nome!"
);
foreach($validation as $key => $message){
if (empty($_POST[$key])){
echo json_encode(array('message' => $message, 'status' => 'fail'));
exit;
// http://pastie.org/783420.
// view the full video at:
// http://jquery14.com/day-05/jquery-1-4-hawtness-1-with-paul-irish
/* d8b .d88888b. d888 d8888
Y8P d88P" "Y88b d8888 d8P888
888 888 888 d8P 888
8888 888 888 888 888 .d88b. 888d888 888 888 888 d8P 888
"888 888 888 888 888 d8P Y8b 888P" 888 888 888 d88 888
888 888 Y8b 888 888 888 88888888 888 888 888 888 8888888888