This file contains 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
" Name: quiet | |
" Description: A mostly monochrome colorscheme, with a few niceties. | |
" Author: Maxence Weynans <[email protected]> | |
" Maintainer: Maxence Weynans <[email protected]> | |
" Website: https://github.com/vim/colorschemes | |
" License: Vim License (see `:help license`)` | |
" Last Updated: Wed 15 Mar 2023 06:45:06 PM CET | |
" Generated by Colortemplate v2.2.0 |
This file contains 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
syntax on | |
colorscheme peachpuff | |
colorscheme whisper | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set smartindent | |
set nu | |
set guioptions -=m | |
set guioptions -=T |
This file contains 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
body { max-width: 120ch; margin-left:auto; margin-right: auto;} | |
.memtitle { background-image: none } | |
.fieldtable th {background-image: none } | |
.sm-dox { background-image: none; background: #f9fafc } | |
h1.groupheader{ border-bottom: none; } | |
h2.groupheader{ border-bottom: none; } | |
h3.groupheader{ border-bottom: none; } | |
div.header { background-image: none; background: inherit; border-bottom: none; } | |
#titlearea { padding-bottom: 18pt } | |
div.header { margin-top: 8pt } |
This file contains 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
#include <unordered_map> | |
#define TINYOBJLOADER_IMPLEMENTATION | |
#include "tiny_obj_loader.h" | |
namespace tinyobj { | |
bool operator==(const index_t& lhs, const index_t& rhs) { | |
return | |
lhs.vertex_index == rhs.vertex_index && |
This file contains 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
; Extracts audio from the youtube video in the current tab. | |
; Requires youtube-dl and ffmpeg. | |
; Download location. | |
DownloadDir := "d:\\music\\dump" | |
; Hotkey that triggers the script (Win+Z). | |
#Z:: | |
This file contains 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
vec2 aspectCorrectedCoords(in vec2 fragCoord) { | |
vec2 uv = fragCoord/iResolution.xy; | |
vec2 xy = uv * 2.0 - 1.0; | |
xy.x *= iResolution.x / iResolution.y; | |
return xy; | |
} | |
float nearPlaneDist(in float verticalFovDegrees) { | |
return 1.0 / tan(radians(verticalFovDegrees/2.0)); | |
} |
This file contains 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 | |
#define DYN_ARR_OF(type) struct { \ | |
type *data; \ | |
type *endptr; \ | |
uint32_t capacity; \ | |
} | |
#if !defined(__cplusplus) | |
#define decltype(x) void* |
This file contains 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
/* Trying to achieve better cache locality for 2d | |
* arrays using Morton order. | |
* | |
* compile with: | |
* gcc morton.c -O3 -lrt -mbmi2 | |
*/ | |
#define _POSIX_C_SOURCE 199309L | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> |