Based on this asynchronous daytime server example from the Boost-Asio documentation.
Example use:
try
{
boost::asio::io_context io_context;| using Plots | |
| using ArgParse | |
| default_alpha = 0.66666 | |
| default_beta = 1.33333 | |
| default_gamma = 1 | |
| default_delta = 1 | |
| default_r0 = 3.0 | |
| default_f0 = 1.5 | |
| default_steps = 1000 |
Based on this asynchronous daytime server example from the Boost-Asio documentation.
Example use:
try
{
boost::asio::io_context io_context;En DemoWindow > Configuration > Fonts :
ImGui::SetWindowFontScale(window_scale), donde window_scale es un float que va desde 0.0 (tamaño casi invisible) a 2.0 (tamaño doble que el normal).io.FontGlobalScale. io es el contexto de ImGui que se obtiene en la inicialización. FontGlobalScale es un float que va desde 0.0 (tamaño casi invisible) a 2.0 (tamaño doble que el normal).Ver líneas 3324 a 3327 de imgui_demo.cpp
| int main(int, char**) | |
| { | |
| // ---------- Inicializacion de Allegro. ---------- | |
| //config imgui | |
| //config allegro | |
| while (running) | |
| { |
| // dear imgui: standalone example application for Allegro 5 | |
| // If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp. | |
| #include <stdint.h> | |
| #include <allegro5/allegro.h> | |
| #include <allegro5/allegro_primitives.h> | |
| #include "imgui.h" | |
| #include "imgui_impl_allegro5.h" | |
| /************************************************ |
| #include <NewPing.h> | |
| #define TRIGGER_PIN 12 | |
| #define ECHO_PIN 11 | |
| #define MAX_DISTANCE 200 | |
| #define PWM_PIN 9 | |
| /* ELIMINACION DELTAS EN LA DERIVADA */ | |
| //#define DERIVATIVE_MEASUREMENT //Si esta definido, no se considera el efecto de modificar el setPoint \ |
| { | |
| "tx" : [ | |
| { | |
| "txid": "id", | |
| "nTxin": 1, | |
| "vin": [ | |
| { | |
| "blockid": "uijhnzfdmsk", | |
| "txid": "nalsjfsken" | |
| } |
| \documentclass[12pt]{article} | |
| \usepackage{graphicx} | |
| \usepackage{hyperref} | |
| \hypersetup{ | |
| colorlinks=true, | |
| linkcolor=blue, | |
| filecolor=magenta, | |
| urlcolor=cyan, | |
| } |
| # cambiar todas las instancias que digan "ej8" por el nombre del proyecto | |
| # agregar todos los .cpp en donde dice "add_executable()" | |
| cmake_minimum_required(VERSION 3.14) | |
| project(ej8) | |
| set(CMAKE_CXX_STANDARD 14) | |
| #sacado de alguna respuesta de stack overflow que ahora no encuentro | |
| def change_endianness(s): | |
| return "".join(reversed([s[i:i+2] for i in range(0, len(s), 2)])) | |
| #Para correrlo desde consola de pycharm: | |
| #import sys | |
| #sys.path.append("path/hasta/carpeta/que/contiene/este/archivo) | |
| #import endian | |
| #endian.change_endianness("1234") |