Sistema de compras montado sobre docker Guillermo Sampallo @gsampallo
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
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 |
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
# 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: |
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
/* | |
* Ejemplo de Charlieplexing con 3 pines y 6 leds. | |
* Guillermo Sampallo - 2020 | |
*/ | |
void setup() { | |
} | |
void loop() { | |
pinMode(2,OUTPUT); |
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
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include "DHT.h" | |
#define DHTPIN 4 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); |
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
#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 |
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
#include <ESP8266WiFi.h> | |
#include "ThingSpeak.h" | |
const char* ssid = "X"; | |
const char* password = "X"; | |
WiFiClient client; | |
unsigned long numeroCanal = X; |
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 BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
char auth[] = "COPIE_AUTH_KEY_AQUI"; | |
char ssid[] = "RED_WIFI"; | |
char pass[] = "CLAVE"; |
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
/* | |
* 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; |
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
/* | |
* 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() { |
NewerOlder