Skip to content

Instantly share code, notes, and snippets.

View michaelasper's full-sized avatar
🦂
it's complicated

corruptbytes michaelasper

🦂
it's complicated
  • Twilio
  • Houston, TX
  • 09:48 (UTC -05:00)
View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/Users/michaelasper/.cargo/bin:$PATH
export GOPATH=$HOME/Source/go
export PATH=$PATH:$GOPATH/bin
# Path to your oh-my-zsh installation.
export ZSH=/Users/michaelasper/.oh-my-zsh

CS 439H

Gheith's spinLock

class SpinLock{
    Atomic<bool> isTaken = false;
public:
    lock(){
        while(isTaken.exchange(true));
        // exchange returns value at location
 }
if has("gui_running")
" C-Space seems to work under gVim on both Linux and win32
inoremap <C-Space> <C-n>
else " no gui
if has("unix")
inoremap <Nul> <C-n>
else
" I have no idea of the name of Ctrl-Space elsewhere
endif
endif
" vim-bootstrap 89346c6
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')

Keybase proof

I hereby claim:

  • I am michaelasper on github.
  • I am asper (https://keybase.io/asper) on keybase.
  • I have a public key ASCGt51C_vQgsG8lgGt_QxEZX-6LSvVJcy2-n7AHn2tC6Ao

To claim this, I am signing this object:

if has("gui_running")
" C-Space seems to work under gVim on both Linux and win32
inoremap <C-Space> <C-n>
else " no gui
if has("unix")
inoremap <Nul> <C-n>
else
" I have no idea of the name of Ctrl-Space elsewhere
endif
endif
" vim-bootstrap 89346c6
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')