This file contains hidden or 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
/* | |
Método para pesquisa de dados em período de DATA com cliente de Time Zone imprevisivel. | |
Autor: Moisés Paes Sena (https://github.com/moisespsena) | |
*/ | |
DROP TABLE IF EXISTS logs CASCADE; | |
/* | |
COLUNAS: |
This file contains hidden or 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
def calc(valor_pago, qnts_pcts): | |
qnt_a = qnts_pcts[0][0] | |
z = qnt_a + sum([v[0] * v[1] for v in qnts_pcts[1:]]) | |
v_a = valor_pago / z | |
ret = [v_a] + [v_a * v[1] for v in qnts_pcts[1:]] | |
return ret | |
# quantidades e percentuais | |
qnts_pcts = [ |
This file contains hidden or 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
sudo rm /etc/apt/preferences.d/nosnap.pref && \ | |
sudo apt update && \ | |
sudo apt install snapd && \ | |
sudo snap install wps-office-all-lang-no-internet && \ | |
sudo snap connect wps-office-all-lang-no-internet:cups-control :cups-control && \ | |
sudo snap connect wps-office-all-lang-no-internet:alsa :alsa && \ | |
sudo snap connect wps-office-all-lang-no-internet:pulseaudio :pulseaudio && \ | |
sudo snap connect wps-office-all-lang-no-internet:removable-media :removable-media |
This file contains hidden or 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
//***************************************************************************************************************** | |
// Library(ies) | |
//***************************************************************************************************************** | |
// To ESP32 | |
#include <Arduino.h> | |
// To String | |
#include <stdio.h> |
OlderNewer