View current-time-events.html
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
<div id="player" data-video-id="ZZ5LpwO-An4"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var tag = document.createElement('script'); | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
// O container do video | |
var playerDiv = $('#player'); |
View modal-click.ctp
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 echo $this->Html->link('Lista', '#list', array( | |
'data-toggle' => 'modal', | |
'class' => 'btn btn-danger' | |
)); ?> | |
<div class="modal fade" id="list" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog" style="width: 80%"> |
View remotes-git.sh
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
# Adicionando o primeiro repositório, do Github | |
$ git remote add origin git@github.com:seu_user/seu_projeto.git | |
# Agora adicionando um segundo repositório, vou nomear como **build** | |
git remote add build ssh://user@server/pasta_do_repositorio.git | |
## Obtendo atualizações dos repositórios |
View Excel.php
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 | |
/** | |
* Simple excel writer class with no external dependencies, drop it in and have fun | |
* @author Matt Nowack | |
* @link https://gist.github.com/ihumanable/929039/edit | |
* @license Unlicensed | |
* @version 1.0 | |
*/ | |
class Excel { |
View zap-loading.html
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
<html> | |
<head> | |
<title>Zap Loading - A WhatsApp Web loading clone</title> | |
<meta charset="UTF-8"> | |
<meta name="description" content="A WhatsApp Web loading clone"> | |
<meta name="keywords" content="loading, loading svg"> | |
<style> |
View onename
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
Verifying that +andrebian is my blockchain ID. https://onename.com/andrebian |
View UsersController.php
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 | |
App::uses('AppController', 'Controller'); | |
App::import('Vendor', 'Facebook', array('file' => 'facebook-php-sdk/src/facebook.php')); | |
App::import('Network/Http', 'HttpSocket'); | |
/** | |
* Users Controller | |
* | |
* @property User $User | |
*/ |
View AppControllerEUsuariosController.php
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 | |
// AppController | |
// ... | |
public function beforeFilter() { | |
// Mecanismo de autenticação | |
$this->Auth->authenticate = array('Blowfish' => array( | |
// Configura o model e os campos |
View reclamação
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
Vou descrever as ações tomadas em um linha do tempo para que fique claro todos os passos que tomei até o momento. | |
04/11/2013 | |
Realizei a compra de uma bateria para o notebook z460 através do site da Lenovo. Comprei diretamente com a Lenovo porque no site prometia entrega em até 15 dias úteis. | |
06/11/2013 | |
Enviaram-me o boleto para pagamento o qual foi pago no mesmo dia. | |
12/11/2013 |
View condicional.php
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 | |
// Exemplo de implementação recebendo um post sem tratamento, o que quero esclarescer é forma de realizar a condicional apenas | |
$itemRecebidoViaPost = $_POST['item']; | |
// Primeira forma | |
if ( $itemRecebidoViaPost == 'item-desejado' ) { |
NewerOlder