Skip to content

Instantly share code, notes, and snippets.

View jacksingleton's full-sized avatar

Jack Singleton jacksingleton

  • United States
  • 22:15 (UTC -07:00)
View GitHub Profile
" set the runtime path to include Vundle and initialize
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'jnurmine/Zenburn'
Plugin 'kien/ctrlp.vim'
Plugin 'Yggdroot/indentLine'
[color]
ui = true
[push]
default = current
[user]
name = Jack Singleton
email = git@jacksingleton.com
(require 'package)
(setq package-archives
'(("MELPA Stable" . "https://stable.melpa.org/packages/")
("MELPA" . "https://melpa.org/packages/"))
package-archive-priorities
'(("MELPA Stable" . 10)
("MELPA" . 20)))
(setq package-list '(evil evil-magit evil-org zenburn-theme helm
helm-fuzzier dtrt-indent markdown-mode css-mode
magit helm-projectile git-gutter-fringe js2-mode
# C-b -> C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# vim mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind h select-pane -L

Keybase proof

I hereby claim:

  • I am jacksingleton on github.
  • I am jacksingleton (https://keybase.io/jacksingleton) on keybase.
  • I have a public key whose fingerprint is FEB7 F40B 2344 F1C2 31FD 1FAC A699 0E46 76D5 02DD

To claim this, I am signing this object:

[color]
ui = true
[push]
default = current
[user]
name = Jack Singleton
email = git@jacksingleton.com
@jacksingleton
jacksingleton / OptionsSpec.scala
Created February 13, 2014 06:09
Scala the good parts: using nulls
def lookupFromDB(i: Int) = if (i == 0) "result" else null
val result = lookupFromDB(0)
val output = if (result != null) result else "It doesn't exist!"
output should be ("result")
@jacksingleton
jacksingleton / OptionsSpec.scala
Created February 13, 2014 06:08
Scala the good parts: using null
def lookupFromDB(i: Int) = if (i == 0) "result" else null
val result = lookupFromDB(0)
val output = if (result != null) result else "It doesn't exist!"
output should be ("result")