Skip to content

Instantly share code, notes, and snippets.

View thennequin's full-sized avatar

Thibault Hennequin thennequin

  • Kylotonn
  • Paris, France
View GitHub Profile
@thennequin
thennequin / sokol_gfx_plus.h
Last active April 8, 2018 21:13
sokol_gfx_plus.h
#include "sokol_gfx.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
Return size of image mip level in bytes
*/
@thennequin
thennequin / Exemple.cpp
Last active August 12, 2021 02:04
ImGui scrollable columns with header
///////////////////////////////
// Exemple
///////////////////////////////
Core::ImGuiPlus::StackId oStackId( "Columns" );
ImGui::Columns( 3 );
ImGui::Text( "Header1" );
ImGui::NextColumn();
ImGui::Text( "Header2" );
@thennequin
thennequin / RectPacker.cs
Last active July 11, 2018 15:01
RectPacker
using System.Drawing;
using System.Drawing.Drawing2D;
using FastBitmap;
using System;
using System.Collections.Generic;
namespace SkinsetGenerator
{
public abstract class RectPacker
{
@thennequin
thennequin / IniFile.cs
Last active July 11, 2018 14:34
IniFile.cs
/*
Usage:
struct MyStruct
{
public string MyString { get; set; } = "this is my value";
public int MyInt { get; set; } = 42;
public bool MyBool { get; set; } = true;
}
@thennequin
thennequin / opus.c
Created March 9, 2021 22:30 — forked from crypticsea/opus.c
opus build
// cl /I celt /I silk /I silk/float /I include /c opus.c
// lib opus.obj
#define OPUS_CPU_X64
#define USE_ALLOCA
#define OPUS_BUILD
#include "celt/bands.c"
#include "celt/celt.c"
#include "celt/celt_encoder.c"
@thennequin
thennequin / _MonocypherExemple.c
Last active April 1, 2021 15:37
MonocypherExemple
#include "monocypher.h"
#include "base64.h"
#include <stdlib.h>
void main()
{
uint8_t pMasterPrivateKey[32];
uint8_t pMasterPublicKey[32];