Instantly share code, notes, and snippets.

View minimal.init.vim
" Load plug
call plug#begin('~/.config/nvim/bundle')
Plug 'airblade/vim-gitgutter'
Plug 'editorconfig/editorconfig-vim'
Plug 'gregsexton/MatchTag'
Plug 'honza/vim-snippets'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
View p3.ex
def sieve(n) when is_integer(n), do: sieve(Enum.to_list(2..n), [1])
def sieve([], result), do: Enum.reverse(result)
def sieve([prime|tail], result) do
tail
|> Enum.reject(& rem(&1, prime) == 0)
|> sieve([prime|result])
end
View .vimrc
set nocompatible
set t_Co=256
"=============================================
" Initialization
"=============================================
" Load plug
call plug#begin('~/.vim/bundle')
View .tmux.conf
# Remove the default keybinding
unbind-key C-b
# Set a new keybinding to C-/. In terminals C-/ is the same as C-_
# however in tmux we can't bind to C-/
set-option -g prefix C-_
set-window-option -g mode-keys vi
bind-key 'c' new-window -c "#{pane_current_path}"
View keybase.md

Keybase proof

I hereby claim:

  • I am evantravers on github.
  • I am evantravers (https://keybase.io/evantravers) on keybase.
  • I have a public key ASBdrsS1ToyWx72pIo1t9txmDTNz-sMMejL2la5K9XrB_Qo

To claim this, I am signing this object:

View .tmux.conf
# Remove the default keybinding
unbind-key C-b
# Set a new keybinding to C-/. In terminals C-/ is the same as C-_
# however in tmux we can't bind to C-/
set-option -g prefix C-_
set-window-option -g mode-keys vi
bind-key 'c' new-window -c "#{pane_current_path}"
View init.vim
"=============================================
" Initialization
"=============================================
" Load plug
call plug#begin('~/.config/nvim/bundle')
Plug '1995eaton/vim-better-css-completion', { 'for': 'css' }
Plug '1995eaton/vim-better-javascript-completion', { 'for': 'javascript' }
Plug 'AndrewRadev/gapply.vim'
View init.lua
-- A global variable for the sub-key Hyper Mode
k = hs.hotkey.modal.new({}, 'F18')
-- Hyper+key for all the below are setup somewhere
-- The handler already exists, usually in Keyboard Maestro
-- we just have to get the right keystroke sent
hyperBindings = {'c', 'space'}
for i,key in ipairs(hyperBindings) do
k:bind({}, key, nil, function() hs.eventtap.keyStroke({'cmd','alt','shift','ctrl'}, key)
View init.lua
-- hyper = {"F17"}
k = hs.hotkey.modal.new({}, "F17")
launch = function(appname)
hs.application.launchOrFocus(appname)
k.triggered = true
end
-- Single keybinding for app launch
singleapps = {
View init.lua
local hotkey = require('hs.hotkey')
local hyper = {"cmd", "ctrl", "alt", "shift"}