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
Valor total / Valor descontado = Resultado decimal | |
Resultado decimal * 100 = Resultado porcentagem | |
100 - Resultado porcentagem = Desconto em porcentagem dado |
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
/* ESP8266 e Banco de Dados - Requisições HTTP | |
* 2016 por José Cintra | |
* www.josecintra.com/blog | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
// WiFi - Coloque aqui suas configurações de WI-FI | |
const char ssid[] = "dlink - palestra"; |
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
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> | |
<Body> | |
<SETCLIENTE xmlns="http://177.159.101.178:8195/"> | |
<WSEMPRESA>[string]</WSEMPRESA> | |
<WSFILIAL>[string]</WSFILIAL> | |
<WSLOGIN>plugg</WSLOGIN> | |
<WSSENHA>plu@g#too$</WSSENHA> | |
<WA1_CGC>99246193000122</WA1_CGC> | |
<WA1_NOME>Reginaldo Luis de Luna Junior</WA1_NOME> | |
<WA1_NREDUZ>Reginaldo Junior</WA1_NREDUZ> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://177.159.101.178:8195/"> | |
<SOAP-ENV:Body> | |
<ns1:SETCLIENTE> | |
<ns1:WSEMPRESA>01</ns1:WSEMPRESA> | |
<ns1:WSFILIAL>01</ns1:WSFILIAL> | |
<ns1:WSLOGIN>WSACESSO</ns1:WSLOGIN> | |
<ns1:WSSENHA>WSACESSO</ns1:WSSENHA> | |
<ns1:WA1_CGC>22630667000100</ns1:WA1_CGC> | |
<ns1:WA1_NOME>Luizo Santos</ns1:WA1_NOME> |
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
["883121916777","750779064238","883121960183","7909306005456","7891511278803","887229411684","883121971691","886895212038","750779075975","99004002","883121971721","883121897090","99007802","883121900028","886895207706","9993340","664689657063","629996","750779085165","886895209991","750779081440","886895253253","883121883345","883121935495","715583006799","886895253086","715583530737","715583255135","883121900028","99007802","9993340","750779069813","715583400863","715583982796","886895209991","883121900349","886895253253","883121939943","883121883345","883121945975","883121985841","883121916777","886895219907","7891511278803","7909306005456","883121971691","99001492","883121899957","9993310","750779062531","886895217699","886895212038","883121971721","750779045572","750779092101","9993346","664689717613","883121959729","750779062951","750779081426","715583272088","750779095577","750779056899","750779072202","7909306007870","715583398559","750779078266","664689612642","886895226639","715583785601","9993360" |
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
#define THRESHOLD 45 | |
void lancaBola() { | |
OnRev(OUT_C, 100); | |
Wait(200); | |
OnFwd(OUT_C, 100); | |
Wait(200); | |
Off(OUT_C); | |
} |
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 | |
//receber post | |
$body = json_decode(file_get_contents('php://input'), true); | |
print_r($body); | |
// faz o tratamento com o body e a cotação de frete que deseja |
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 | |
require_once "banco/config.php"; | |
$conexao = BancoDados::criar_conexao(); | |
$consulta = $conexao->query("INSERT INTO teste (dtini) VALUES(NOW())"); | |
?> |
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
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<input name="botao" id="btnSubmit" /> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
// pega o evento click do btn de id="btnSubmit" | |
$('#btnSubmit').click(function(){ | |
$.ajax({ | |
url: 'http://127.0.0.1/agrvai/save.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
# seta a variavel android linux | |
export ANDROID_HOME="/home/reginaldo/android-sdk-linux/" | |
# gera o apk de producao sem assinatura | |
cordova build --release android | |
# gera a chave | |
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
# assina o apk gerado coloca o caminho do apk gerado | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name | |
# renomeia o apk usando o zipalign | |
zipalign -v 4 android-release-unsigned.apk sufocoauto-0.0.6.apk |