I hereby claim:
- I am vjnrv on github.
- I am vjnrv (https://keybase.io/vjnrv) on keybase.
- I have a public key ASB-HPUg0_eelOOsOSwTewWQQFA1hdsandMAz93sGX9vFAo
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 14Swb2Utv1Z4yTpD6iLBGwCt1XCwLdS3NC https://explorer.blockstack.org/address/14Swb2Utv1Z4yTpD6iLBGwCt1XCwLdS3NC |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
namespace ZZZ\Component; | |
use Symfony\Component\Security\Core\SecurityContextInterface; | |
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
/** | |
* Classe que expõe o contexto de segurança para uso fora de Controllers | |
*/ |
-- Retorna a data da Pascoa | |
-- @author Pedro Junior | |
-- @param ANO integer | |
-- @return Date | |
CREATE OR REPLACE FUNCTION getDataPascoa (ANO numeric(4) DEFAULT date_part('year', NOW())) | |
RETURNS DATE AS $$ | |
DECLARE | |
DIA numeric(2); -- Dia do Natal | |
MES numeric(2); -- Mês do Natal |
{# app/Resources/TwigBundle/views/Exception/error.html.twig #} | |
{% extends '::layout.html.twig' %} | |
{% block title %} | |
Erro {{ status_code }} | |
{% endblock %} | |
{% block content %} | |
{% if status_code == '404' %} | |
<h1>Página não encontrada</h1> | |
{% else %} | |
<h1>Erro inesperado</h1> |
/** | |
* Limpa as caracteres especiais da string atual | |
* | |
* @return {string} | |
*/ | |
String.prototype.clean = function () | |
{ | |
return this.strtr( | |
'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ´`"\'~^', | |
'AAAAAAACEEEEIIIIDNOOOOOOUUUUYbsaaaaaaaceeeeiiiidnoooooouuuyybyRr' |
/** | |
* Faz a comparação entre a lista de friends antiga e a nova. | |
* Se algum item da lista antiga não estiver na nova é Unfollow! | |
* @return unfollows {Array} | |
*/ | |
function unfollowCheck( friendsOld, friendsNew ) | |
{ | |
if( friendsOld ) | |
{ | |
var unfollows = []; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Workers: Compatibility</title> | |
<script> | |
// This script is executed in the main window | |
/* | |
we'll use a worker to filter a huge data set |
// Retorna o arquivo manifest | |
function getManifest() | |
{ | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', './manifest.json', false); | |
xhr.send(null); | |
return JSON.parse(xhr.responseText); | |
} |