CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 03:46:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"64fa2e567ceb252b53f82854374a18ac"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=LIkNNzf2j5%2Fr%2FJ4tvH0PpKb3Rk%2FvDErYroByJhovCIkspxck9HaMpaspeFsrNt%2BMLRCn5LZqlWqJlMBSzs9vokesW8Lg2wj4U5koJIvFgsLvI2cblliSpv21ZIxmiQVjGUymvSlCmAMx1HGIfjh1A8HbJeBnPtuSfUemklHbfV6HllPcVNKgvRS6TPCyfcetbY5O0X9vdtorS6FbV2EfUbXC7C%2F0sjjqrQ0B0%2BPEbtg8BNcR1ivSDExbP1Ls23rzAdDhzU%2BY35ZFmk149ueJRg%3D%3D--stXfhF3a2Lal0HHW--QybwOxdorbH%2BJ4LuQa5Scw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1913456455.1753501565; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:46:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:46:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A182:7565A:1270D2:1C04FD:68844F7D
incrediblejr’s gists · GitHub
{{ message }}
Instantly share code, notes, and snippets.
incrediblejr
/ ijpathjoin.h
Last active
January 8, 2023 15:10
join multiple path segments together with one allocation from optional user provided custom allocator or default (malloc)
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
#ifndef IJPATHJOIN_INCLUDED_H | |
#define IJPATHJOIN_INCLUDED_H | |
#include <stdarg.h> /* va_list */ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#if defined(IJPATHJOIN_STATIC) |
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
#define SOKOL_D3D11 | |
#define SOKOL_IMPL | |
#include "sokol_app.h" | |
#include "sokol_gfx.h" | |
#include "sokol_time.h" | |
#ifdef _MSC_VER | |
#pragma warning(push) | |
#pragma warning(disable: 4201) /* warning C4201: nonstandard extension used : nameless struct/union */ |
incrediblejr
/ optional_instance.h
Created
August 15, 2019 11:18
optional instance created by placement-new with stack-memory
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
/* | |
* optional instance created by placement-new with stack-memory | |
* | |
* ex. | |
* struct ThreadContextScope { | |
* ThreadContextScope() { // setup thread-context } | |
* ~ThreadContextScope() { // teardown thread-context } | |
* }; | |
* | |
* void some_function(void) { |
incrediblejr
/ ijss.h
Created
July 3, 2019 12:44
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
/* clang-format off */ | |
/* | |
ijss : IncredibleJunior SparseSet | |
sparse set [1] for bookkeeping of dense<->sparse index mapping or | |
a building block for a simple LIFO index/handle allocator | |
[1] https://research.swtch.com/sparse | |
*/ |
incrediblejr
/ ijsl.h
Created
April 11, 2018 04:43
quick and dirty printf-logging with (compile time) 'multiple outputs'
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
/* clang-format off */ | |
/* | |
ijsl : IncredibleJunior Simple Log | |
quick and dirty printf-logging with (compile time) 'multiple outputs' implemented | |
as a stb-style header-file library[1] which means that in *ONE* source file declare | |
the implementation (see example) and the other source files should just include | |
this file. | |
example setup for Windows (declare OutputDebugStringA ourselves to avoid including windows.h) |
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
/* ijlat.h - v0.1a - (Simple) Lua Allocation Tracker -- public domain -- @incrediblejr, May 2016 | |
ABOUT | |
A simple Lua allocation tracker. | |
USAGE | |
The memory tracker is implemented as a [stb-style header-file library][1] which means that | |
in *ONE* source file, put: |
You can’t perform that action at this time.