Skip to content

Instantly share code, notes, and snippets.

@ozlb
ozlb / nodes.cpp
Created January 17, 2023 23:01 — forked from ChemistAion/nodes.cpp
Second prototype of standalone node graph editor for ImGui
#include "nodes.h"
namespace ImGui
{
void ImGuiNodes::UpdateCanvasGeometry(ImDrawList* draw_list)
{
const ImGuiIO& io = ImGui::GetIO();
mouse_ = ImGui::GetMousePos();
@ozlb
ozlb / telegram_bot_api_curl.cpp
Last active January 8, 2024 05:30
Telegram bot API via curl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <ctype.h>
#include <string>
//https://github.com/DaveGamble/cJSON
#include "cJSON.h"
@ozlb
ozlb / mosquitto_sub_HiveMQ.cpp
Last active April 10, 2024 20:06
mosquitto HiveMQ
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <ctype.h>
#include "mosquitto.h"
struct mosquitto *mosq;