Skip to content

Instantly share code, notes, and snippets.

@martinsik
martinsik / libwebsockets-webserver.c
Created July 31, 2012 11:34
Simple webserver based on libwebsockets library. Read full description at http://martinsikora.com/libwebsockets-simple-http-server
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libwebsockets.h>
static int callback_http(struct libwebsocket_context *context,
struct libwebsocket *wsi,
enum libwebsocket_callback_reasons reason, void *user,
@sthairno
sthairno / DearImGuiAddon.cpp
Last active March 8, 2024 21:39
imgui_impl_s3d
#include <Siv3D.hpp>
#include <imgui.h>
#include "imgui_impl_s3d.h"
#include "DearImGuiAddon.hpp"
/// @brief アドオンの登録時の初期化処理を記述します。
/// @remark この関数が false を返すとアドオンの登録は失敗します。
/// @return アドオンの初期化に成功した場合 true, それ以外の場合は false
bool DearImGuiAddon::init()