Skip to content

Instantly share code, notes, and snippets.

View The-King-of-Toasters's full-sized avatar

Stephen Gregoratto The-King-of-Toasters

View GitHub Profile
@The-King-of-Toasters
The-King-of-Toasters / main.zig
Created September 28, 2023 09:26
cachestat example
const std = @import("std");
const os = std.os;
const process = std.process;
const linux = os.linux;
pub fn main() !void {
var args = std.process.ArgIteratorPosix.init();
_ = args.skip();
const out = std.io.getStdOut();
var buf = std.io.bufferedWriter(out.writer());
@The-King-of-Toasters
The-King-of-Toasters / d3xp_PlayerView.cpp
Last active May 13, 2021 10:50
cstdoom3 hud correction
/*
===================
idPlayerView::RenderPlayerView
===================
*/
void idPlayerView::RenderPlayerView( idUserInterface *hud ) {
const renderView_t *view = player->GetRenderView();
SingleView( hud, view );
ScreenFade();
@The-King-of-Toasters
The-King-of-Toasters / mbsync.vim
Last active August 10, 2019 04:45
Vim Syntax Highlighting for mbsyncrc
" Vim syntax file
" Language: mbsync setup files
" Maintainer: Stephen Gregoratto <themanhimself@sgregoratto.me>
" Last Change: 2018-03-13
" Filenames: mbsyncrc
" Version: 0.2
" Licence: GPLv3+
"
" Note: This config borrows heavily from msmtprc.vim
" by Simon Ruderich and Eric Pruitt