Skip to content

Instantly share code, notes, and snippets.

set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.local/share/nvim/plugged')
" Project management
Plug 'scrooloose/nerdtree'
@phanviet
phanviet / .rubocop.yml
Created September 28, 2016 05:02
.rubocop
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- Rakefile
- config.ru
- lib/**/*.rake
Exclude:
- db/schema.rb
#################### Style ####################
@phanviet
phanviet / Guardfile
Created September 28, 2016 05:02
Guardfile
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
## Uncomment and set this to only include directories you want to watch
# directories %w(app lib config test spec features) \
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
## Note: if you are using the `directories` clause above and you are not
## watching the project directory ('.'), then you will want to move
## the Guardfile to a watched dir and symlink it back, e.g.
@phanviet
phanviet / .editorconfig
Last active October 21, 2024 19:07
editorconfig-rails
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@phanviet
phanviet / custom-confirm-dialog-rails.js
Last active June 16, 2016 02:22
Custom Confirm Alert Default in Rails
//Override the default confirm dialog by rails
(function () {
$.rails.allowAction = function(link){
if (link.data("confirm") == undefined){
return true;
}
$.rails.showConfirmationDialog(link);
return false;
}
@phanviet
phanviet / gist:b7ab5df45f5dbe3107976b79101b6d66
Created June 16, 2016 01:07
Custom Confirm Alert Default in Rails
//Override the default confirm dialog by rails
(function () {
$.rails.allowAction = function(link){
if (link.data("confirm") == undefined){
return true;
}
$.rails.showConfirmationDialog(link);
return false;
}