Skip to content

Instantly share code, notes, and snippets.

View kirhgoff's full-sized avatar

Kirill Lastovirya kirhgoff

View GitHub Profile
@kirhgoff
kirhgoff / init.vim
Created December 20, 2016 10:17
Wayne's neovim init.vim
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'fatih/vim-go'
Plug 'tpope/vim-rails'
Plug 'neomake/neomake'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tpope/vim-bundler'
@kirhgoff
kirhgoff / .tmux.conf
Created December 21, 2016 02:26
kirhgoff's tmux config
set -g default-terminal "screen-256color"
set -sg escape-time 1
unbind %
bind | split-window -h
bind - split-window -v
# Set status bar
set -g status-bg black
set -g status-fg white
@kirhgoff
kirhgoff / init.vim
Created January 27, 2017 12:46
kirhgoff's init.vim
call plug#begin('~/.vim/plugged')
"UI
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline'
Plug 'itchyny/lightline.vim'
# vim: set expandtab sw=4 tabstop=4:
# *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
# general
color default 15 235
color cursor 15 241
color title-focus 242 221
color title-blur 242 221
color delimiter 213 default
color author 156 default
puts "Type something to count words in: "
frequencies = Hash.new(0)
text = gets.chomp.downcase!
text = text.gsub!(/[^A-Za-z ]/, '') #This removes punctuation
text.split
.each { |word| frequencies[word] += 1 }
.sort_by { |word, count| count }