This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |