Skip to content

Instantly share code, notes, and snippets.

# Crea un alias en git para ver el historico con los archivos que se cambiaron
git config --global alias.ll 'log d--pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numsta'
# Para ver los archivos cambiados entre un branch y otro
git ll master..my-branch | grep /
# log with pretty format
git config --global alias.ls 'log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate'
# log with pretty format and changed files
git config --global alias.ll 'log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat'
# log with pretty format and graph timeline
git config --global alias.lol 'log --pretty=oneline --abbrev-commit --graph --decorat' # log with pretty format and graph timeline
@juanj032
juanj032 / palindrome.js
Created April 23, 2013 18:45
Numeros palindromes
(function(window, document){
function isPalindrome (num) {
num = num.toString();
return num == (num.split("").reverse().join(""));
}
var inicio = Date.now();
var data = new XMLHttpRequest();
var count = 0;