As configured in my dotfiles.
start new:
tmux
start new with session name:
| For each Ruby module/class, we have Ruby methods on the left and the equivalent | |
| Clojure functions and/or relevant notes are on the right. | |
| For clojure functions, symbols indicate existing method definitions, in the | |
| clojure namespace if none is explicitly given. clojure.contrib.*/* functions can | |
| be obtained from http://github.com/kevinoneill/clojure-contrib/tree/master, | |
| ruby-to-clojure.*/* functions can be obtained from the source files in this | |
| gist. | |
| If no method symbol is given, we use the following notation: |
| # Work with Roman numerals just like normal Integers. | |
| class RomanNumeral < Numeric | |
| include Comparable | |
| # The largest integer representable as a roman | |
| # numerable by this module. | |
| MAX = 3999 | |
| # Taken from O'Reilly's Perl Cookbook 6.23. Regular Expression Grabbag. | |
| REGEXP = /^M*(D?C{0,3}|C[DM])(L?X{0,3}|X[LC])(V?I{0,3}|I[VX])$/i |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # Mac | |
| IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts html_out } | |
| # Linux | |
| IO.popen(’xsel –clipboard –input’, ‘r+’) { |clipboard| clipboard.puts html_out } |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env ruby | |
| require 'flickraw' | |
| require 'json' | |
| CREATE_API_KEY = 'https://secure.flickr.com/services/apps/create/apply' | |
| CONFIG_FILE = File.expand_path '~/.config/2flickr.json' | |
| def init |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim | |
| index 6c32caa..a415bf8 100644 | |
| --- a/plugin/fireplace.vim | |
| +++ b/plugin/fireplace.vim | |
| @@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort | |
| else | |
| let arg = ' :repl-env ' . a:arg | |
| endif | |
| - let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') | |
| + "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') |