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
import subprocess | |
import time | |
import re | |
class AndroidSMSSender: | |
def __init__(self): | |
self.get_screen_size() | |
def get_screen_size(self): | |
"""Obtiene el tamaño de la pantalla del dispositivo""" |
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
#!/bin/bash | |
# Actualizar e instalar dependencias | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
# Instalar herramientas de compilación | |
sudo apt-get install build-essential cmake git pkg-config -y | |
# Instalar bibliotecas de imágenes y vídeos I/O |
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
eventDevice = [] | |
function callEvent(idDevice, idTable) { | |
if (eventDevice.some(d => d.idDevice === idDevice && d.state === 'A')) { | |
// caso B | |
eventDevice = eventDevice.filter(d => d.idDevice === idDevice).map(m => { | |
m.state = 'B' | |
return m | |
}) | |
} |
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
import numpy as np | |
import cv2 | |
import requests_async as requests | |
import json | |
import time | |
import sys | |
import asyncio | |
import aiohttp | |
url = 'http://localhost:8081/' | |
sdThresh = 5 |
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
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN0AAAEACAYAAAA3E3NfAABm7klEQVR42u29d3xc1Zn//753urpGvctF7t0YY2OMcQPTAqEkJCGkl03ZZNtv891vsrvZJPvdbDZ1U9hsQkkIEAi9G7AxGFxwN5arZBWrl9H0du/5/XHujEdjSZYsuUnzeb0GrJlbzr33fO7znKdCCimkkEIKKaSQQgoppJBCCimkkEIKKaSQQgoppJBCCimkkEIKKaSQQgoppJBCCimkkEIKKaSQQgoppJBCCimkkEIKKaSQQgoppJBCCpc3lIs9gPEIIcQ57acoqccxEZB6ymOAs5DMDFiM/6uxXQANiAJh4+8BkSLi+EPqiY4CA5DNAmQB5cYnB7ACJiTpQBJMAXQk8SKAH2gHGoFO4+84UsQbX0g9zRFiEKJVArOAUiANSZxWoAfwAD4ghJRsAklCK2AHMoBsoNDY3wp0ASeAw4Ar8WQpAl7+SD3BYWIAsmUDC4E5SKl13PicQhLsXKACucBkYCpQArQA7wN1xnmAFPkuZ6Se3DCQRLgcYBlSsjUjCdGAlGJxjJQUg6wLs4EFwFwgCLwDHCFhDZgi3+WH1BMbAklEsAJXGp9GYAvQkbzPaEkwCPlsSOItA/qAjUj1dczOm8KFQ+pJDYABJn4ZcDNSmm1Ekq4fzsekH2AcdmA5sBjYCbyNNMactzGkMPZIPaUkDDDRrwJWAluB7SSokRdqkg8wphLgFqS74RkSjC0p4l36SD2hJCRMcDNwE1ANPAU0xX64WBM7iXwWYB0wA3iSBOmbIt6ljdTTSUDCpLYDdyLXUo8D3tgPl8KETiLfEmA18CzSxXDJjDOFgZF6MgYSJrINuAepRv4ZqcJdcpM4iXgzgduRquahS3G8KZyGefSHuPyRpFLehYwS+bPx/7Ey/58VIzmPoiiJ56lF+vA+jHQt1MV+S5Hv0sOEfyJJBLkZaaR4GMPBPdxJO4SpPxvp8C5C |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
.julian{ | |
border: 0ch; |
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
const int sensorPin = 2; | |
const int measureInterval = 100; | |
volatile int pulseConter; | |
// YF-S201 | |
//const float factorK = 7.5; | |
// FS300A | |
const float factorK = 5.5; |
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
#!/bin/sh | |
i=0 | |
while true; | |
do | |
if ping -c 1 google.com &> /dev/null | |
then | |
echo "Conectado" | |
else | |
echo "Desconectado" |
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 nano /etc/dhcpcd.conf | |
interface wlan0 | |
static ip_address=192.168.57.19/24 | |
static routers=192.168.57.1 | |
static domain_name_servers=8.8.8.8 | |
static domain_search=8.8.4.4 | |
> sudo nano /etc/network/interfaces | |
auto lo | |
iface lo inet loopback |
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
SELECT r.ref AS company, | |
l.id AS identificacion, | |
r.name, | |
l.price_total, | |
l.price_unit, | |
l.price_subtotal, | |
l.quantity, | |
l.discount, | |
c.name AS contract, | |
a.date_invoice, |
NewerOlder