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.
This file contains hidden or 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
var express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res) { | |
res.send('hello world'); | |
}); | |
app.get('/david', function(req, res) { | |
res.send('hello david'); | |
}); |
This file contains hidden or 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
var http = require('http'); | |
function server_response(request, response) { | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
response.write('Hello World'); | |
response.end(); | |
}; | |
var server = http.createServer(server_response); |
This file contains hidden or 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
var http = require('http'); | |
var server = http.createServer(function(request, response) { | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
response.write('Hello World'); | |
response.end(); | |
}) | |
server.listen(3000); |
This file contains hidden or 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
/** | |
* Learn HTML & CSS from Scratch | |
* 4.1: Responsive Layouts | |
*/ | |
/********** Device Styles **********/ | |
/** | |
* Tablet Landscape: 1024px | |
*/ |
This file contains hidden or 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
=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') |
This file contains hidden or 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
http://regex101.com/r/mV8rA7 | |
/(?:_([^_.]+))+?/g | |
01_create_cats.rb | |
02_create_all_the_dogs.rb | |
/(?:_([^_.]+))+?/g | |
(?:_([^_.]+)) Non-capturing Group 1 to infinite times [lazy] | |
_ Literal _ |
This file contains hidden or 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
require 'simplecov' | |
SimpleCov.start do | |
add_filter '/db/' | |
add_filter '/config/' | |
add_filter '/spec/' | |
add_filter '/public/' | |
add_filter '/lib/' # Feel free to write coverage for the StudentScrape | |
SimpleCov.at_exit do | |
SimpleCov.result.format! |
This file contains hidden or 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
set nocompatible | |
set number | |
set cursorline | |
set ruler | |
set showmatch | |
set autoindent | |
set smartindent | |
set smarttab |
This file contains hidden or 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
# There once was a wise servant who saved the life of a prince. The king promised to pay whatever the servant could dream up. Knowing that the king loved chess, the servant told the king he would like to have grains of wheat. One grain on the first square of a chess board. Two grains on the next. Four on the third, and so on. | |
# There are 64 squares on a chessboard. | |
# Write a program that shows | |
# - how many grains were on each square, and | |
# - the total number of grains | |
# ## For bonus points |
NewerOlder