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 | |
function converterImagem($caminhoImagem, $novaImagem, $extensao, $unlink = true) { | |
/** | |
* Resgata a largura e altura da imagem que deve ser convertida. | |
*/ | |
list($larguraOriginal, $alturaOriginal) = getimagesize($caminhoImagem); | |
$extensao = strtolower($extensao); | |
$imagem = null; | |
$tci = null; |
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 | |
header("Content-type: text/html; charset=utf-8"); | |
date_default_timezone_set("America/Sao_Paulo"); | |
?> | |
<html> | |
<head> | |
<title>Formulário via POST</title> | |
</head> | |
<body> | |
<form method="post" action="dobro.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 | |
header("Content-type: text/html; charset=utf-8"); | |
date_default_timezone_set("America/Sao_Paulo"); | |
?> | |
<html> | |
<head> | |
<title>Formulário via POST</title> | |
</head> | |
<body> | |
<form method="post" action="dobro.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
#!/bin/bash | |
# Author: Gustavo Marttos <marttosc@gmail.com> | |
# | |
# Run this scrupt with sudo, e.g.: sudo ./install_elemos.sh | |
COLOR_DEFAULT='\033[0;0;39m' | |
COLOR_WHITE='\033[1;37m' | |
COLOR_BLACK='\033[0;30m' | |
COLOR_BLUE='\033[0;34m' |
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 | |
namespace App\Http\Middleware; | |
use Closure; | |
class PasswordTemporary | |
{ | |
/** | |
* Handle an incoming request. |
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 | |
namespace App\Card; | |
use Illuminate\Database\Eloquent\Model; | |
class Card extends Model | |
{ | |
... | |
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
# Generated from SQLines | |
SELECT CLI.NOME, | |
( | |
CASE WHEN TPC.CODIGO = 1 THEN | |
SUM(VEI.VALORKM * (DEV.KMATUAL - VEI.KM) + (SELECT SUM(D.VALOR) FROM devolucao D WHERE D.LOCACAO = LOC.CODIGO)) ELSE | |
SUM(VEI.VALORDIARIA * DEV.DATAHORA- LOC.DATAHORA + (SELECT SUM(D.VALOR) FROM devolucao D WHERE D.LOCACAO = LOC.CODIGO)) | |
END | |
) TOTAL | |
FROM cliente CLI, locacao LOC, tipocobranca TPC, veiculo VEI, devolucao DEV |
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
@@*.dx.com/$document | |
@@http://*.wikipedia.org/$document | |
@@|http://download.cyanogenmod.org/|$document | |
@@|http://www.flaticon.com/|$document | |
@@|https://outlook.office365.com/owa/|$document | |
@@|https://play.google.com/music/listen|$document | |
@@||microsoftonline.com/$document | |
@@||cyanogenmod.org/$document | |
@@||app.evrdy.com/$document | |
@@||www.bradesco.com.br/$document |
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
#!/bin/sh | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root!" 1>&2 | |
exit 1 | |
fi | |
cd /tmp | |
mkdir -p /lib/firmware/ath10k/QCA6174/hw3.0/ |
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
$(document).on('hidden.bs.modal', '.modal', function () { | |
var player = $(this).find('.modal-content video'); | |
player.pause(); | |
}); |
OlderNewer