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 | |
interface Atendimento | |
{ | |
const SUPORTE = 1; | |
const FINANCEIRO = 2; | |
const ADMINISTRATIVO = 3; | |
public function encerrar(); | |
} |
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 | |
interface Produto | |
{ | |
public function especificacoes(); | |
} | |
class Livro implements Produto | |
{ | |
public function especificacoes() { | |
} |
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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sprite:{ | |
all: { | |
algorithm: 'binary-tree', | |
src: 'public/r/sprites/*.png', | |
destImg: 'public/r/sprites.794984.png', | |
destCSS: 'public/r/css/sprites.less', |
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 | |
use Facebook\FacebookSession; | |
use Facebook\FacebookRequest; | |
use Facebook\GraphUser; | |
use Facebook\FacebookRequestException; | |
FacebookSession::setDefaultApplication('YOUR_APP_ID','YOUR_APP_SECRET'); | |
// Use one of the helper classes to get a FacebookSession object. | |
// FacebookRedirectLoginHelper |
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 | |
//Array from JSON Webservice | |
$array = array(); | |
//Decoding all values from UTF-8 | |
str_recursive_map('utf8_decode',$array); | |
//Applying htmlentities ( Good for other charset ) | |
str_recursive_map('htmlentities',$array); |
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 | |
/* | |
* With this we remove all not necessary HTML Tags for the URL and use the Title attr, also add a "ml-advert" metada for jQuery on() control | |
Where: | |
$ret_val = "<a" . | |
" href='" . MLA_BASE_URL . "out.php?id=" . $this->get_advert_id() . "'" . | |
" onmouseover='maskLink(this,event,\"" . $url_mask . "\")'" . | |
" onclick='maskLink(this,event,\"" . $url_mask . "\")'" . | |
" onmouseout='maskLink(this,event,\"" . $url_mask . "\")'" . |
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
[include_form template="contato" titulo="Formulário de Contato"] | |
// É feito o include do arquivo "forms/contato.php", com uma variável $titulo, com valor "Formulário de Contato" |
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 | |
list($lat, $lon) = explode(',', '-22.903322,-43.173098'); | |
echo $lat; //-22.903322 | |
echo $lon; //-43.173098 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<!-- | |
Para o caso do Pinterest DEVEMOS informar se estamos no escopo de um single, ou archive (caso não usado Wordpress), | |
pois no modo Archive ele deve considerar somente a foto informada no data-thumb, enquanto no single ele pode aceitar | |
qualquer imagem do conteúdo (ver JS) | |
--> | |
<body class="single"> |
OlderNewer