Skip to content

Instantly share code, notes, and snippets.

View mrennix's full-sized avatar

Martin Rennix mrennix

  • Perth, Australia
View GitHub Profile
require 'irb/completion'
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:AUTO_INDENT] = true
# history command
def history(count = 0)
# Get history into an array
history_array = Readline::HISTORY.to_a
set number
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set smarttab
set autoindent
let g:go_highlight_trailing_whitespace_error = 0
" Pathogen plugin stuff, see https://github.com/tpope/vim-pathogen
@mrennix
mrennix / win32handmade.cpp
Created August 13, 2017 13:34
Handmade Hero Directsound clicking
#define UNICODE
#define _UNICODE
#include <windows.h>
#include <tchar.h>
#include <stdint.h>
#include <dsound.h>
#include <xinput.h>
#include <cstdio>
#include <cmath>