Skip to content

Instantly share code, notes, and snippets.

View Fhernd's full-sized avatar
💭
Never stop learning!

John Ortiz Ordoñez Fhernd

💭
Never stop learning!
View GitHub Profile
@Fhernd
Fhernd / ex037-index.html
Created December 27, 2019 23:17
// Ejercicio 37: Agregar elementos de un arreglo en una lista ordenada con $.each().
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex036-index.html
Created December 27, 2019 22:07
// Ejercicio 36: Agregar el contenido de un arreglo como texto por línea de un párrafo.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex035-index.html
Created December 27, 2019 21:39
// Ejercicio 35: Agregar el contenido de un arreglo como texto de un párrafo.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex034-index.html
Created December 27, 2019 21:11
// Ejercicio 34: Aplicar una clase de estilo a múltiples elementos con addClass().
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex033-index.html
Created December 27, 2019 20:50
// Ejercicio 33: Clonar un elemento con el método clone().
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex032-index.html
Created December 27, 2019 20:32
// Ejercicio 32: Crear un elemento o etiqueta y agregarlo previo a otro elemento.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / ex030-index.html
Created December 27, 2019 20:09
// Ejercicio 30: Agregar un nuevo elemento a un elemento contenedor con append().
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>jQuery - Ejercicios</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@Fhernd
Fhernd / Parte001\ex460_contador_palabras.py
Created December 27, 2019 19:00
# Ejercicio 460: Ingresar n palabras y contar las ocurrencias de cada palabra.
# Ejercicio 460: Ingresar n palabras y contar las ocurrencias de cada palabra.
from collections import Counter, OrderedDict
class ContadorOrdenado(Counter, OrderedDict):
pass
n = int(input('Cantidad de palabras: '))
palabras = []
@Fhernd
Fhernd / ex459_palabras_mas_comunes.py
Created December 27, 2019 18:37
# Ejercicio 459: Encontrar las n palabras más recurrentes en un texto con la clase Counter.
# Ejercicio 459: Encontrar las n palabras más recurrentes en un texto con la clase Counter.
from collections import Counter
import re
texto = """
En una tarde extremadamente calurosa de principios de julio, un joven salió de la reducida habitación que tenía alquilada en la callejuela de S*** y, con paso lento e indeciso, se dirigió al puente K***.
Había tenido la suerte de no encontrarse con su patrona en la escalera.