- Hacer una copia de seguridad completa del sitio
- Activar certificado SSL en nuestro hosting
- Activar acceso al Panel de Administración mediante HTTPS
- Cambiar nuestro dominio base en el Panel de Administración WP
- Cambiar los enlaces de la web
- Redirigir todas las direcciones a https mediante
.htaccess
- Actualizar SEO
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
# Usage: | |
# - To load default dependencies: `register_user = RegisterUser.build` | |
# - To inject own dependencies (for testing or reuse): | |
# ```rb | |
# register_admin = RegisterUser.new(validator: AdminValidator.new, repo: AdminRepository.new) | |
# ``` | |
class RegisterUser | |
attr_reader :validator, :repo | |
def self.build |
This file has been truncated, but you can view the full file.
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
DON QUIJOTE DE LA MANCHA | |
Miguel de Cervantes Saavedra | |
PRIMERA PARTE | |
CAPÍTULO 1: Que trata de la condición y ejercicio del famoso hidalgo D. Quijote de la Mancha | |
En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco y galgo corredor. Una olla de algo más vaca que carnero, salpicón las más noches, duelos y quebrantos los sábados, lentejas los viernes, algún palomino de añadidura los domingos, consumían las tres partes de su hacienda. El resto della concluían sayo de velarte, calzas de velludo para las fiestas con sus pantuflos de lo mismo, los días de entre semana se honraba con su vellori de lo más fino. Tenía en su casa una ama que pasaba de los cuarenta, y una sobrina que no llegaba a los veinte, y un mozo de campo y plaza, que así ensillaba el rocín como tomaba la podadera. Frisaba la edad de nuestro hidalgo con los cincuenta años, era de complexión recia, seco de carnes, enjuto de rostro; gran madruga |
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
def are_of_the_same_type?(array) | |
array.each_with_index { |item, index| | |
return false unless item.is_a?(array[index - 1].class) | |
} | |
true | |
end |
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
#encoding: utf-8 | |
# Usage example: | |
# -------------- | |
# | |
# airport_code = 'TFN' # Tenerife Norte Airport in the Canary Islands. | |
# canary_islands_tz = AirportToTimezoneConverter.from_iata(airport_code) | |
# puts canary_islands_tz # => "Atlantic/Canary" | |
# | |
# winter_time = '2020-01-01 12:00:00' |
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
// Usage: | |
// djb2eHash( 'Hello World1' ); # => 1171219298 | |
// djb2eHash( 'Hello World2' ); # => 449666786 | |
// djb2eHash( 'Hello World3' ); # => 201925602 | |
// djb2eHash( 'Hello World4' ); # => 3033001186 | |
function djb2eHash(string, randomNumber = 0xcde7) { | |
// UTF16-rotate a character. | |
function rotU16(charCode) { | |
return 0x10000 - charCode; | |
} |
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
document.querySelector('pre').textContent = JSON.stringify(JSON.parse(document.querySelector('pre').textContent), null, 4); |
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
function describe(x) { | |
function trueType(obj) { | |
return (Number.isNaN(obj) && 'NaN') || (Object.prototype.toString.call(obj).slice(8, -1)); | |
} | |
let description = `DESCRIPTION: | |
------------ | |
trueType: ${trueType(x)}, | |
typeOf: ${typeof x}, | |
boolean: ${!!x}, | |
number: ${+x}, |
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
const intlSpanishFormatter = Intl.NumberFormat('es-ES', { style: 'currency', currency: 'EUR'}); | |
const PreventGroupingOfFourIntegerDigits = function ({type, value }, idx, parts) { | |
(idx === (parts.length - 7) && value.length < 2 && (parts[idx + 1].value = '')); | |
return value; | |
}; | |
intlSpanishFormatter.formatToParts(1234.56).map(PreventGroupingOfFourIntegerDigits).join(''); |