Skip to content

Instantly share code, notes, and snippets.

[20200909 00:21:54.280] ZIP: Can't locate [version] in zip, error -100.
[20200909 00:21:54.284] Configuration from file "/opt/rslsync/etc/rslsync.conf" has been applied
[20200909 00:21:54.349] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[20200909 00:21:54.349] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[20200909 00:21:54.350] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[20200909 00:21:54.350] DISKIO[0x0271f9ec]: Create diskio pool for drive with id 18446744073709551614, path: , type: 0, size: 1
[20200909 00:21:54.350] WORKER[0x0271fcb0]: created
[20200909 00:21:54.351] DISKIO[0x0271f9ec]: created
[20200909 00:21:54.351] DISK_WORKER[0x0271fcb0]: diskio thread start, drive_id = 18446744073709551614, priority = normal
[20200909 00:21:54.352] WORKER[0x027105d4]: created
namespace ImGui
{
// Copy of BeginMenuBar except it's at the bottom
bool BeginMainStatusBar()
{
ImGuiContext& g = *GImGui;
ImGuiViewport* viewport = g.Viewports[0];
float height = g.NextWindowData.MenuBarOffsetMinVal.y + g.FontSize + g.Style.FramePadding.y * 2;
g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f));
SetNextWindowPos(ImVec2(viewport->Pos.x, viewport->Pos.y + viewport->Size.y - height));
@kudaba
kudaba / ImGuiTextWithEllipsis.cpp
Created November 5, 2020 17:51
ImGui helper to draw text that will cut off and add an elipsis character
bool IsSpace(char aCharacter)
{
// all space characters are values 32 or less (space is 32)
// so we can convert them to a bitmask and use a single condition
const int mask = (1 << (' ' - 1)) | (1 << ('\f' - 1)) | (1 << ('\n' - 1)) | (1 << ('\r' - 1)) | (1 << ('\t' - 1)) | (1 << ('\v' - 1));
return (mask & (1 << ((aCharacter && aCharacter <= 32) * (aCharacter - 1)))) != 0;
}
//-------------------------------------------------------------------------------------------------
// Todo: Add support for soft-hyphens when using word boundaries?