Skip to content
View Run_current_line.vim
" put this into your .vimrc
func! Run_current_line()
" get current line and run it as a system command
let content = system(getline('.'))
" open new window
silent pedit `=tempname()`
" change focus to the window
wincmd P
" append content
View composition_vs_inheritance.md

#include and #extend have same effect on instances as inheritance

Let's say we have this

module A; end
module B; end
class C; end
class D < C; end

Then we modify instance

View !README.md

How to disable Gem deprecation warnings

Just copy content to corresponding files

View README.md

About

minimal example of using [phantomjs] with [qunit]

$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.

Installation

View test.vim
:Unite file
1) Expecting to fuzzy match config/database.yml (as Command-T does)
Sources: file
> dbyml
- [new file]dbyml
Sources: file
View route length chart
$ rake routes|ruby -ne '$_ =~ /^\s+([a-z_]+)/; puts "%-2s %s" % [$1.to_s.size, $1.to_s.gsub(/./,"*")]'|grep -v '^0'|sort -unr
92 ********************************************************************************************
91 *******************************************************************************************
90 ******************************************************************************************
89 *****************************************************************************************
88 ****************************************************************************************
87 ***************************************************************************************
85 *************************************************************************************
82 **********************************************************************************
View output
whose-bug$ bundle exec ruby test.rb
{
}
View plugins.vim
" Modularized configuration for vim
" Randy Morris <randy.morris@archlinux.us>
" Plugins
if v:version < 700
finish
endif
" {{{ Vundle setup
View game_of_life.rb
class Cell
end
class World
def initialize
@x = 50
@y = 50
end
Something went wrong with that request. Please try again.