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
%config InlineBackend.figure_format = 'svg' # para mejorar la calidad visual de las gráficas... | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from urllib.error import HTTPError | |
import time | |
from datetime import datetime | |
#from IPython.display import display | |
# Calculo de area bajo curva de coste unitario (finalmente multiplicaremos por los KWh, por ejemplo 10A => 2300W => 4,6KWh en 2 horas | |
import numpy as np |
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
version: '3' | |
services: | |
h2a: | |
image: ghcr.io/testillano/h2agent_http1:4.2.5 | |
hostname: h2a | |
#expose: | |
# - "8001" | |
ports: | |
# Ephemeral (use 'docker-compose ps' to see them) |
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
/////////////////////////////////////////////////////////////// | |
// Safe file: allow safe writting of text/binary files. | |
// Close delay configurable. | |
// Max opened files controlled by condition variable. | |
// | |
// LINK: g++ main.cc -l pthread -l boost_system -l boost_thread | |
/////////////////////////////////////////////////////////////// | |
#include <iostream> | |
#include <thread> | |
#include <vector> |
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 <iterator> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <string.h> | |
#include <memory> | |
#include <sys/time.h> | |
const int maxChunkSize = 32000; |
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 <iostream> | |
#include <string> | |
#include <mutex> | |
#include <thread> | |
#include <future> | |
#include <deque> | |
#include <nghttp2/asio_http2_server.h> | |
using namespace nghttp2::asio_http2; |
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 <iostream> | |
#include <string> | |
#include <mutex> | |
#include <thread> | |
#include <future> | |
#include <deque> | |
#include <memory> | |
#include <sstream> | |
#include <nghttp2/asio_http2_server.h> |