git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
javascript: var s; | |
/*Figure out the selected text*/ | |
if ( window.getSelection ) { | |
s = window.getSelection(); | |
} else if ( document.getSelection ) { | |
s = document.getSelection(); | |
} else { | |
s = document.selection.createRange().text; | |
} | |
/*If there isn't any text selected, get user input*/ |
$('input').bind('keypress', function(e) {// Kami.2013.12.24.10:57 Allow only letters, numbers, and @ , . - _ | |
var allowedCode = [8, 13, 32, 44, 45, 46, 95]; | |
var charCode = (e.charCode) ? e.charCode : ((e.keyCode) ? e.keyCode : | |
((e.which) ? e.which : 0)); | |
if (charCode > 31 && (charCode < 64 || charCode > 90) && | |
(charCode < 97 || charCode > 122) && | |
(charCode < 48 || charCode > 57) && | |
(allowedCode.indexOf(charCode) == -1)) { | |
e.preventDefault(); | |
$('.alert-box.onerror').html('<h3>ALLOW CHARACTERS: a..z A..Z 0..9 - _ . , @</h3>').fadeIn(); |
http://dentoi.tumblr.com/ | |
http://cuckikicuc.tumblr.com/ | |
http://december-meow.tumblr.com/ | |
http://taitran.tumblr.com/ | |
http://chuyendoivovan.tumblr.com/ | |
http://khuya.net/ | |
http://dattentoanbitrung.tumblr.com/ | |
http://linhhonda.tumblr.com/ | |
http://nguyen-hoang-huy.tumblr.com/ | |
http://tixiuxiu.tumblr.com/ |
<? | |
function parseUrl($s) { | |
$__ = preg_replace('/([A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&~\?\/.=]+)/i', '<a href="$1" target="_blank">$1</a>', $s); | |
return preg_replace('/(^| )([^\/])((www|[^\/\. ]+)\.[A-Za-z]+(\b|$|))/i', '$1<a href="http://$2$3" target="_blank">$2$3</a>', $__); | |
}; | |
$s = 'Tinhte.vn asdasd google.com asdjaskdjajks www.abc.com xxx Google http://google.com.vm/search/asdajs.html'; | |
var_dump(parseUrl($s)); |
String.prototype.parseURL = function() { | |
return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&~\?\/.=]+/g, function(url) { | |
return url.link(url); | |
}); | |
}; | |
String.prototype.parsePseudoURL = function() { | |
return this.replace(/(^| )([^\/])((www|[^\/\. ]+)\.[\S]+(\b|$|))/gim, '$1<a href="http://$2$3" target="_blank">$2$3</a>'); | |
}; |
document.getElementById('second').innerHTML = 'And this is Javascript'; |
<html lang="vi"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Test | KarmiPhuc</title> | |
<!-- đặt CSS ở thẻ head --> | |
<link...> | |
</head> | |
<body> | |
<!-- HTML here ...--> | |
<!-- đặt JS trước khi đóng body --> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Notepad-Plus-Plus</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |