####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
Array.prototype.each = function(fn){ | |
var len = this.length; | |
for(i = 0; i < len; i++){ | |
fn(this[i]); | |
} | |
}; | |
['mogla', 'es', 'dios'].each(function(v){ | |
console.log(v); | |
}); |
var re = /http([^"'\s]+)/g, | |
text = 'href="%interes%&i=SoyUnInteres&u=http://google.es/?%moglaA2%20 texto sobre el texto de textos a mas textos %Q /ht href="%interes%&i=OtroInteres&u=http://popplers.com"', | |
encontrados = text.match(re); | |
console.log(encontrados); |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<body> | |
<a href="javascript:void(0)" id="clear">Clear Localstorage</a> | |
<div id="holas" data-store="holas" class="storeit"> | |
<?php if(!$_COOKIE['holas']){?> | |
<ul> | |
<?php for ($i = 1; $i <= 10000; $i++) {?> | |
<li><?php echo $i?></li> | |
<?php }?> | |
</ul> |
$('<input type="button">').attr('id', 'op').attr('value', 'Obt').appendTo('body'); | |
$('#op').live('click' , function(){ | |
var re = /%interes%&i=([a-z0-9A-Z]*)&u=(\S*)/g, | |
text = $('#news').val(), | |
matched = null; | |
while( (matched=re.exec(text)) != null ){ | |
console.log(matched[1]); | |
$('<p>').attr('id', matched[1] + '_p').appendTo('body'); |
var re = /%interes%&i=([a-z0-9A-Z]*)&u=(\S*)/g, | |
text = 'href="%interes%&i=SoyUnInteres&u=http://google.es/?%moglaA2%20 texto sobre el texto de textos a mas textos %Q /ht href="%interes%&i=OtroInteres&u=http://popplers.com"', | |
matched = null; | |
while( (matched=re.exec(text)) != null ) | |
console.log(matched[1] + ' = ' + matched[2].replace('"', '')); |
####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