Skip to content

Instantly share code, notes, and snippets.

@davidbella
davidbella / tmux-highlight-text-patch-README.md
Created January 10, 2017 21:59 — forked from pxsta/tmux-highlight-text-patch-LICENSE
tmux-highlight-text.patch enables tmux to highlight the text like iTerm2.

tmux-highlight-text.patch

This patch enables tmux to highlight the text like iTerm2.
When some text in the terminal matches the regular expression set in tmux.conf, tmux highlights them.

patch gif

usage

install

/**
* Learn HTML & CSS from Scratch
* 4.1: Responsive Layouts
*/
/********** Device Styles **********/
/**
* Tablet Landscape: 1024px
*/
@davidbella
davidbella / capybara cheat sheet
Last active December 27, 2015 18:39 — forked from zhengjia/capybara cheat sheet
Capybara: Cheat Sheet
=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')
class Integer
def to_roman
numeral = ""
number = self
hash = {1000 => "M", 900 => "CM", 500 => "D", 400 => "CD", 100 => "C", 90 => "XC", 50 => "L", 40 => "XL", 10 => "X", 9 => "IX", 5 => "V", 4 => "IV", 1 => "I"}
hash.each do |key, value|
until number < key
numeral << value