This file contains hidden or 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
<?php | |
$currentlang = get_bloginfo('language'); | |
if($currentlang=="en-GB"): | |
?> | |
<?php elseif($currentlang=="pl-PL"): ?> | |
<?php endif; ?> |
This file contains hidden or 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
127.0.0.1 media-match.com | |
127.0.0.1 adclick.g.doublecklick.net | |
127.0.0.1 open.spotify.com | |
127.0.0.1 desktop.spotify.com | |
127.0.0.1 pubads.g.doubleclick.net | |
127.0.0.1 audio2.spotify.com | |
127.0.0.1 www.omaze.com | |
127.0.0.1 omaze.com | |
127.0.0.1 bounceexchange.com | |
127.0.0.1 media-match.com |
This file contains hidden or 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
<?php | |
if (htmlspecialchars($_GET["lang"]) == 'en') | |
{ | |
echo ' | |
<div class="subFooter">Hand Med 2018 | <a href="./notice-of-privacy/?lang=en" >Notice of Privacy</a> </div> | |
'; | |
}else | |
{ | |
echo ' | |
<div class="subFooter">Hand Med 2018 | <a href="./aviso-de-privacidad" >Aviso de Privacidad</a> </div> |
This file contains hidden or 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
// Bulma to scss gulp script | |
// In your terminal | |
// 1. npm install -D sass-convert gulp bulma gulp-sass gulp-replace | |
// 2. gem install sass | |
var gulp = require("gulp"), | |
replace = require('gulp-replace'), | |
converter = require('sass-convert'), | |
sass = require('gulp-sass'); |
This file contains hidden or 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'); | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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': """ |
NewerOlder