Compras con Docker
Sistema de compras montado sobre docker Guillermo Sampallo @gsampallo
FROM python:latest | |
LABEL Maintainer="gsampallo" | |
WORKDIR /usr/app/src | |
COPY *.py ./ | |
COPY requirements.txt ./ | |
COPY test.jpg ./ | |
RUN pip install --no-cache-dir -r requirements.txt |
# Code from https://dev.to/stokry/create-ascii-art-with-python-31nd | |
import sys | |
from PIL import Image | |
from termcolor import colored | |
import colorama | |
colorama.init() | |
image_path = 'test.jpg' | |
class AsciiArt: |
Sistema de compras montado sobre docker Guillermo Sampallo @gsampallo
/* | |
* Ejemplo de Charlieplexing con 3 pines y 6 leds. | |
* Guillermo Sampallo - 2020 | |
*/ | |
void setup() { | |
} | |
void loop() { | |
pinMode(2,OUTPUT); |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include "DHT.h" | |
#define DHTPIN 4 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
const char* ssid = "NOMBRE_RED"; | |
const char* password = "CLAVE"; | |
ESP8266WebServer servidor(80); | |
int pinLed1 = 5; //D1 |
#include <ESP8266WiFi.h> | |
#include "ThingSpeak.h" | |
const char* ssid = "X"; | |
const char* password = "X"; | |
WiFiClient client; | |
unsigned long numeroCanal = X; |
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
char auth[] = "COPIE_AUTH_KEY_AQUI"; | |
char ssid[] = "RED_WIFI"; | |
char pass[] = "CLAVE"; |
/* | |
* El siguiente programa publica la temperatura en la plataforma ThingSpeak cada 20 segundos. | |
*/ | |
#include <ESP8266WiFi.h> | |
#include "ThingSpeak.h" | |
const char* ssid = "NOMBRE_RED"; | |
const char* password = "PASSWORD_RED"; | |
WiFiClient client; |
/* | |
* How to use a digital potenciometer with Arduino | |
* Link to article: https://www.gsampallo.com/?p=952 | |
*/ | |
#include <SPI.h> | |
byte address = 0x00; | |
int CS = 10; | |
void setup() { |