####Crear una rama y directamente hacer checkout en ella
git checkout -b myfeature develop
####Merge especial
git merge --no-ff myfeature
####Eliminar una rama
git branch -d myfeature
####Crear tag
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/apex/go-apex" | |
"github.com/apex/go-apex/proxy" | |
) |
<?php | |
function new_nav_menu_items($output) { | |
$idstr = preg_match_all('/<li class="page_item page-item-(\d+)/', $output, $matches); | |
foreach($matches[1] as $mid){ | |
$slug = basename(get_permalink($mid)); | |
$output = preg_replace('/page-item-'.$mid.'(| current_page_item)">/', 'page-item-'.$mid.' page-item-'.$slug.'">', $output, 1); | |
} |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
####Crear una rama y directamente hacer checkout en ella
git checkout -b myfeature develop
####Merge especial
git merge --no-ff myfeature
####Eliminar una rama
git branch -d myfeature
####Crear tag
=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') |