This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------ | |
import N10X | |
import subprocess | |
import os | |
TORTOISE_GIT_EXE = "TortoiseGitProc.exe" | |
class TortoiseGIT_Options(): | |
def __init__(self): | |
self.bin_path = N10X.Editor.GetSetting("TortoiseGIT.TortoisePath") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package imgui_impl_raylib | |
import "core:mem" | |
import imgui "../.."; | |
import rl "vendor:raylib" | |
@private | |
state: Raylib_State; | |
Raylib_State :: struct { | |
startup: bool, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package win32_winmd | |
import windows "core:sys/windows" | |
import win32 "core:sys/win32" | |
import c "core:c" | |
LARGE_INTEGER :: windows.LARGE_INTEGER; | |
ULARGE_INTEGER :: u64; | |
DWORD :: windows.DWORD; | |
LONG :: windows.LONG; | |
ULONG :: windows.ULONG; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
/* Single file header Atomic lib with class support | |
64 bit only. MSVC/GCC/CLANG support | |
TODO: | |
- 16 bit atomics? | |
- x86/32 bit support | |
- check godbolt / macro godbolt | |
- exchangeprt vs 64? | |
- check alignment Atomic::atom todo: alignement? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package leaktracker | |
import "core:fmt" | |
import "core:runtime" | |
import "core:mem" | |
import "core:os" | |
Alloc_Header_Magic :: u32(0xAC019876); | |
Alloc_Header :: struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float encode16bits(float2 xy16) | |
{ | |
xy16 = floor( xy16/16 ); | |
float packed = xy16.x*16 + xy16.y; | |
packed /= 255.0f; | |
return packed; | |
} | |
float2 decode8bits(float packed) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Monad | |
{ | |
public static class MyExtensions | |
{ | |
public static Func<T, V> Compose<T, U, V>(this Func<U, V> f, Func<T, U> g) | |
{ | |
return x => f(g(x)); | |
} |