Inspired by vimcast article
This makes it more clear which split a file will be opened in.
Use rbgrouleff/bclose.vim
to close the buffer and not break splits.
Inspired by vimcast article
This makes it more clear which split a file will be opened in.
Use rbgrouleff/bclose.vim
to close the buffer and not break splits.
#!/usr/bin/env ruby | |
class Blink1 | |
def self.list | |
native(["--list"]).select {|l| l =~ /^id/ } | |
end | |
def self.ids | |
list.map {|info| info[/^id:(\d+)/]; $1 } | |
end |
# Generate home controller | |
File::unlink "public/index.html" | |
generate(:controller, "home index about contact") | |
route "root :to => 'home#index'" | |
# Install gem | |
## Access | |
gem "devise" | |
gem "cancan" |
<html> | |
<body data-type="background" speed="8"> | |
<div id="content"> | |
<section id="whoami"> | |
<article> | |
<h2>Joseph <abbr title="/shoe/">Hsu</abbr></h2> | |
<p> | |
<strong>Web Developer</strong>. | |
</p> | |
</article> |
<html> | |
<body data-type="background" speed="8"> | |
<div id="content"> | |
<section id="whoami"> | |
<article> | |
<h2>Joseph <abbr title="/shoe/">Hsu</abbr></h2> | |
<p> | |
<strong>Web Developer</strong>. | |
</p> | |
</article> |
<html> | |
<body data-type="background" speed="8"> | |
<div id="content"> | |
<section id="whoami"> | |
<article> | |
<h2>Joseph <abbr title="/shoe/">Hsu</abbr></h2> | |
<p> | |
Web developer. | |
</p> | |
</article> |
<html> | |
<body data-type="background" speed="8"> | |
<div id="content"> | |
<section id="whoami"> | |
<article> | |
<h2>Joseph <abbr title="/shoe/">Hsu</abbr></h2> | |
<p> | |
Web developer. | |
</p> | |
</article> |
.sender[type=myself] { color: #45537f; font-weight: bold; } | |
.sender[type=normal] { color: #636363; font-weight: normal; } | |
.sender[type=normal][colornumber='0'] { color: #cccc00; } | |
.sender[type=normal][colornumber='1'] { color: #cc00cc; } | |
.sender[type=normal][colornumber='2'] { color: #00cccc; } | |
.sender[type=normal][colornumber='3'] { color: #00cc00; } | |
.sender[type=normal][colornumber='4'] { color: #cc0000; } | |
.sender[type=normal][colornumber='5'] { color: #0000cc; } | |
.sender[type=normal][colornumber='6'] { color: #000000; } | |
.sender[type=normal][colornumber='7'] { color: #88cc00; } |
require 'hyper_api' | |
class Api::BaseController < ApplicationController | |
respond_to :json | |
self.responder = Authentication::Responders::HyperApi | |
end |
thing = ThingDecorator.decorate(Thing.where(:name => "name")) | |
thing.first.class #=> Thing # undecorated instance |