Skip to content

Instantly share code, notes, and snippets.

View gist:ccf8af3d482f35168f1fbe773eca4b46
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 }
View .tigrc
# 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
@kirhgoff
kirhgoff / init.vim
Created Jan 27, 2017
kirhgoff's init.vim
View 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'
@kirhgoff
kirhgoff / .tmux.conf
Created Dec 21, 2016
kirhgoff's tmux config
View .tmux.conf
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 Dec 20, 2016
Wayne's neovim init.vim
View 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'