- https://github.com/junegunn/vim-plug
- https://github.com/mhinz/vim-startify
- https://github.com/tpope/vim-rails
- https://github.com/Shougo/deoplete.nvim
- https://github.com/SirVer/ultisnips
- https://github.com/w0rp/ale
- https://github.com/janko-m/vim-test
- https://github.com/tpope/vim-fugitive
- https://github.com/airblade/vim-gitgutter
- https://github.com/junegunn/gv.vim
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
| # Simple script to fetch IMAP data from iCloud | |
| # Set ICLOUD_EMAIL and ICLOUD_PASSWORD to environment variables | |
| require 'net/imap' | |
| require 'active_support' | |
| imap = Net::IMAP.new('imap.mail.me.com', 993, true) | |
| imap.login(ENV['ICLOUD_EMAIL'], ENV['ICLOUD_PASSWORD']) | |
| imap.select 'INBOX' |
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 nohud | |
| map <C-h> :set hud!<CR> | |
| set noautofocus | |
| set cncpcompletion | |
| map <C-n> nextCompletionResult | |
| imap <C-n> nextCompletionResult | |
| site 'https://github.com/*' { |
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
| { | |
| "北海道"=>{:lat=>"43.06417", :long=>"141.34694"}, | |
| "青森県"=>{:lat=>"40.82444", :long=>"140.74"}, | |
| "岩手県"=>{:lat=>"39.70361", :long=>"141.1525"}, | |
| "宮城県"=>{:lat=>"38.26889", :long=>"140.87194"}, | |
| "秋田県"=>{:lat=>"39.71861", :long=>"140.1025"}, | |
| "山形県"=>{:lat=>"38.24056", :long=>"140.36333"}, | |
| "福島県"=>{:lat=>"37.75", :long=>"140.46778"}, | |
| "茨城県"=>{:lat=>"36.34139", :long=>"140.44667"}, | |
| "栃木県"=>{:lat=>"36.56583", :long=>"139.88361"}, |
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
| hash = {foo: 1, bar: 2, buzz: 10} | |
| words = %i(foo bar buzz) | |
| p words.map(&hash) # => [1, 2, 10] | |
| proc_obj = hash.method(:[]).to_proc | |
| p words.map(&proc_obj) # => [1, 2, 10] |
Here, with broken_find.rb required, specification.rb raises an error saying stub is an Array.
/Users/okuramasafumi/.rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/specification.rb:1065:in find_active_stub_by_path': undefined method this' for #<Array:0x00007fc3e18ff960> (NoMethodError)
The error disappears with working_find.rb required.
The only difference is whether ifnone.call if ifnone exists or not.
However, in specification.rb uses find method without ifnone argument. This means ifnone is nil.
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
| diff --git a/proc.c b/proc.c | |
| index 19ce7a1d19..3eb8c9445d 100644 | |
| --- a/proc.c | |
| +++ b/proc.c | |
| @@ -1196,6 +1196,24 @@ iseq_location(const rb_iseq_t *iseq) | |
| return rb_ary_new4(2, loc); | |
| } | |
| +static VALUE | |
| +iseq_code_location(const rb_iseq_t *iseq) |
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
| Keynote: Vim Renaissance | |
| By Prabir Shrestha | |
| "I'm thankful to people in vim-jp" | |
| "With LSP, you don't have to configure for every language!" | |
| "If you're not using LSP, go use it!" | |
| It works with every language, every OS, in Vim8 or Neovim...Great! | |
| He talks about vim so passionately, that's awesome. | |
| He says "Go use it!" so many times, I'd like to use LSP more! |
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
| class HogeSerializer < ActiveModel::Serializer | |
| attributes :id, :hogehoge | |
| has_many :fugas do |fuga| | |
| fuga.attributes :id, :fugafuga | |
| fuga.has_many :bars do |bar| | |
| bar.attributes :id, :barbar | |
| end | |
| end | |
| end |
OlderNewer