This file contains hidden or 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 nocompatible " choose no compatibility with legacy vi | |
| filetype off " required | |
| "" Plugins | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| call plug#begin('~/.vim/plugged') |
This file contains hidden or 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
| # gem "ruby-prof" | |
| around_filter :profiler | |
| def profiler(&block) | |
| data = RubyProf::Profile.profile(&block) | |
| filepath = Rails.root.join("tmp", "profiler.html") | |
| File.open(filepath, "w") do |f| | |
| RubyProf::CallStackPrinter.new(data).print(f) |