This file contains 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
# Insert your prefered key mappings here. | |
unmap h | |
unmap l | |
map h previousTab | |
map l nextTab | |
map u restoreTab | |
map d removeTab | |
map b Vomnibar.activateTabSelection | |
map t Vomnibar.activateInNewTab |
This file contains 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 Base | |
def xtest(foo:, bar:, **extra) | |
puts "base: #{foo}, #{bar}" | |
end | |
end | |
class Artzt < Base | |
def xtest(foo:, bar:, blah:) | |
super | |
puts "child: #{foo}, #{bar} #{blah}" |
This file contains 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
unmap h | |
unmap l | |
map h previousTab | |
map l nextTab | |
map u restoreTab | |
map d removeTab | |
map b Vomnibar.activateTabSelection | |
map t Vomnibar.activateInNewTab | |
map <c-o> goBack |
This file contains 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 Enumerator | |
class Lazy | |
def initialize(coll) | |
@lazy = Yid.new do |yielder| | |
if block_given? | |
coll.each do |x| | |
yield yielder, x | |
end | |
else |
This file contains 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 Fib | |
def self.fib | |
a, b = [0, 1] | |
s = 1..Float::INFINITY | |
Enumerator::Lazy.new(s.lazy) do |yielder, val| | |
a, b = b, a + b | |
yielder << a | |
end | |
end | |
end |
This file contains 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
source 'https://rubygems.org' | |
gem 'react-rails', '~> 1.0.0.pre', github: 'reactjs/react-rails' | |
gem 'haml-rails' | |
gem 'bootstrap-sass' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.0.beta1' | |
# Use postgresql as the database for Active Record |
This file contains 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
$ curl localhost:8080 -I | |
HTTP/1.1 200 OK | |
Content-Type: text/html | |
ETag: "0f8cca87cff164a57033f54d75dc1288" | |
Cache-Control: max-age=0, private, must-revalidate | |
X-Runtime: 0.017000 | |
Server: Jubilee(2.1.0) | |
Transfer-Encoding: chunked | |
Date: Thu, 24 Jul 2014 14:38:03 GMT |
NewerOlder