This file contains 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
if(window.location.href.indexOf("curso") != -1){//curso es la palabra que buscará | |
//Algo | |
} |
This file contains 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
#!/bin/bash | |
# -*- ENCODING: UTF-8 -*- | |
#----------------------------------------# | |
# XAMPP INSTALLER v1.0.0 # | |
#----------------------------------------# | |
# By: https://github.com/heckctor # | |
#----------------------------------------# | |
# ejecutar $bash instalador_xampp.sh | |
rutaXampp=/opt/lampp/htdocs |
This file contains 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
#!/bin/bash | |
# -*- ENCODING: UTF-8 -*- | |
#Requiere de permisos de ejecución:$chmod -x prepros_install.sh | |
#Ejecutar como Root: $bash prepros_install.sh | |
#Validando Acceso Root | |
if [[ $EUID -ne 0 ]]; then | |
echo "Tienes que ejecutar este script como Root" 1>&2 | |
exit 1 | |
fi |
This file contains 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
#!/bin/bash | |
# -*- ENCODING: UTF-8 -*- | |
#----------------------------------------# | |
# XAMPP INSTALLER v1.0.0 # | |
#----------------------------------------# | |
# By: https://github.com/heckctor # | |
#----------------------------------------# | |
# ejecutar $bash xampp-files.sh | |
rutaXampp=/opt/lampp/htdocs |
This file contains 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
#Algunos trozos de codigo que voy ocupando | |
#PHP | |
'.text.html.php': | |
'Echo Php': | |
'prefix': 'eco' | |
'body': '<?=$1?>' | |
'Modulos Joomla': | |
'prefix': 'modj3' | |
'body': """ |
This file contains 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
#!/bin/bash | |
# -*- ENCODING: UTF-8 -*- | |
rojo='\033[0;31m' | |
verde='\033[0;32m' | |
amarillo='\033[0;33m' | |
cian='\033[0;36m' | |
nada='\033[0m' # Sin Color |
This file contains 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
<ul class="tabs"> | |
<li><a href="#tab-1">Tab1</a></li> | |
<li><a href="#tab-2">Tab2</a></li> | |
<li><a href="#tab-3">Tab3</a></li> | |
</ul> | |
<div id="tab-1" class="tabContent"> | |
Tab1 | |
</div> |
This file contains 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
/* Validación y llamada AJAX para enviar el correo */ | |
$(".boton_envio").click(function() { | |
var nombre = $(".nombre").val(); | |
email = $(".email").val(); | |
validacion_email = /^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/; | |
asunto = $(".asunto").val(); | |
mensaje = $(".mensaje").val(); | |
if ((nombre == "") || (nombre == $(".nombre").attr('placeholder'))){ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains 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
window.addEventListener("orientationchange", function() { | |
console.log("the orientation of the device is now " + screen.orientation.angle); | |
}); | |
window.addEventListener("orientationchange", function() { | |
if (window.orientation == 90 || window.orientation == -90) { | |
console.log('landscape mode'); | |
} else { | |
console.log('portrait mode'); | |
} |
OlderNewer