View vim.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/**
* Supported keybindings:
*
* Motion:
* h, j, k, l
* gj, gk
* e, E, w, W, b, B, ge, gE
View show.html.erb_spec.rb
require 'spec_helper'
describe "carts/show" do
# using before(:all) rather than before(:each) causes the error:
# NoMethodError: undefined method `example_group' for nil:NilClass
# ~/.rvm/gems/ruby-1.9.3-p125/gems/rspec-rails-2.12.0/lib/rspec/rails/example/view_example_group.rb:106:in `_default_file_to_render'
# ~/.rvm/gems/ruby-1.9.3-p125/gems/rspec-rails-2.12.0/lib/rspec/rails/example/view_example_group.rb:112:in `_default_render_options'
# ~/.rvm/gems/ruby-1.9.3-p125/gems/rspec-rails-2.12.0/lib/rspec/rails/example/view_example_group.rb:45:in `render'
# show.html.erb_spec.rb:10:in `block (2 levels) in <top (required)>'
before(:each) do
View jquery.js
/*!
* jQuery JavaScript Library v1.6.4
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
View test output
$ ruby test.rb
Loaded suite NestingLevelTest
Started
........
Finished in 0.012890806 seconds.
8 tests, 9 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
Loaded suite TryRubyOutputTest
Started
View gist:184330
class Symbol
def to_proc
Proc.new { |obj, *args| obj.send(self, *args) }
end
end
View gist:184306
eval_cmd = <<EOF
$SAFE=4
#{$common_code}
#$stdout = Sandbox.new()
#{previous_commands}
$stdout = $original_stdout
#{line}
EOF
#puts eval_cmd