Skip to content

Instantly share code, notes, and snippets.

@arsaccol
arsaccol / memory-alignment.c
Created May 2, 2021 06:18
Memory alignment demonstration thingie
#include <stddef.h>
#include <stdio.h>
#define STR(x) #x
typedef struct
{
// === funny little waste of memory due to alignment (or lack thereof) ===
// my CPU can only address bytes in multiples of four
// using a non-multiple of 4 number of bytes for the "name" field makes
@arsaccol
arsaccol / plugins.vim
Created September 30, 2022 13:35
My current neovim plugins configuration
" ====== here lies vim-plug stuff =======
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tpope/vim-fugitive'
Plug 'daskol/nvim-bnf', { 'do': 'go install ./cmd/nvim-bnf' }
Plug 'dracula/vim', {'as': 'dracula'}
Plug 'rust-lang/rust.vim'
Plug 'pangloss/vim-javascript'
Plug 'github/copilot.vim'
Plug 'preservim/nerdtree'