Skip to content

Instantly share code, notes, and snippets.

var contatos = [
'Anderson:anderson@teste.com',
'Bolinha:bolinha@teste.com',
'Juliano:juju@teste.com',
'Otávio:otavio@teste.com'
];
var paragrafo = document.querySelector('p');
var input = document.querySelector('input');
var btn = document.querySelector('button');
<body>
<span>Vamos criar um formulário de pesquisa agora.</span>
<label for="search">Buscar por nome: </label>
<input id="search" type="text">
<button>Encontrar</button>
<p></p>
<script src="js/scripts.js"></script>
</body>
h1 {
color:#6b5b95;
}
h2 {
color: #d64161;
}
span {
color:#405d27;
}
h1 {
color:#6b5b95;
}
h2 {
color: #d64161;
}
<body>
<h1>Vamos fazer alguns testes com git merge</h1>
<h2>E analisar o resultado do merge.</h2>
<span>Vamos realizar essas alterações por enquanto.</span>
<script src="js/scripts.js"></script>
</body>
h1 {
color:#6b5b95;
}
<body>
<h1>Vamos fazer alguns testes com git merge</h1>
<h2>E analisar o resultado do merge.</h2>
<script src=”js/scripts.js”></script>
</body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Aprendendo merges GIT</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<h1>Vamos fazer alguns testes com git merge</h1>
<script src="js/scripts.js"></script>
<?php
require __DIR__."/zip/Zip.php";
$zip = new Zip();
var_dump($zip->zipar("test", "test/test.zip", "archive"));
var_dump($zip->zipar("test-1", "test-1/test1.zip", "test"));
var_dump($zip->zipar("test-2", "test-2/test2.zip", "test-1"));
var_dump($zip->zipar("test-3", "test-3/test3.zip", "test-2"));
<?php
abstract class Resposta
{
protected $formatoResposta;
protected $proxima;
public function enviarResposta(Conta $conta, Requisicao $requisicao)
{
if($requisicao->getFormato() != $this->formatoResposta && $this->proxima != NULL)
return $this->proxima->enviarResposta($conta, $requisicao);