Para no inventar la rueda por enésima vez,
esta carpeta almacenará mis plantillas de LaTeX.
Luego, estos archivos deben ser subidos a un gist de GitHub.
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"> | |
<title>miding – a minimalistic siding</title> | |
</head> | |
<body> | |
<form method='post' action='https://intrawww.ing.puc.cl/siding/index.phtml'> | |
<input type='text' name='login' placeholder="usuario" autofocus></input> | |
<input type='password' name='passwd' placeholder="contraseña"></input> |
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
from bottle import hook, redirect, request | |
@hook('before_request') | |
def append_slash(): | |
if request.path.endswith('/'): | |
pass | |
else: | |
redirect(request.path + '/') | |
# This function could also be written as... |
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 lang='es'> | |
<head> | |
<meta charset='utf-8'> | |
<title>Ejemplo</title> | |
<style media='screen'> | |
body { | |
margin: 0px auto; | |
padding: 3ex 3em; | |
max-width: 680px; |
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
""" | |
Vamos Testingo: dime si @nebil está libre. | |
Este breve script debería funcionar con cualquier versión de Python 3. | |
Además, utiliza 'beautifulsoup4', que es la única dependencia externa. | |
Por cierto, (probablemente no) es importante señalar que, | |
bajo el propósito de aumentar la portabilidad del código, | |
este script busca depender --de forma razonable, espero-- | |
de la menor cantidad de librerías _third-party_. |
El propósito de este documento es explicar cómo es posible evitar el tedio de hacer,
uno por uno,
git pull
hacia muchos (con más de cinco, probablemente ya se justifica) repositorios remotos.
No estoy tan seguro de los posibles casos de uso,
pero fue útil cuando tuve que integrar cambios,
en varias ocasiones, desde una docena de repositorios de una organización en GitHub.
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
""" | |
Esto es un simple script para verificar que Python 3.6+ esté instalado. | |
Copyright (c) 2018, Nebil Kawas García | |
This source code is subject to the terms of the Mozilla Public License. | |
You can obtain a copy of the MPL at <https://www.mozilla.org/MPL/2.0/>. | |
""" | |
from string import ascii_letters | |
from platform import python_version |
Aquí dejaré una tabla con lenguajes de programación que aparecieron después del año 2001.
Durante los últimos años, todos ellos han alcanzado un grado significativo de notoriedad.
Podría ser interesante analizar qué novedades ofrecen con respecto a sus antecesores.
Nombre | Año de aparición | GitHub | Sitio web oficial |
---|---|---|---|
[Ceylon] | 2011 | [@eclipse/ceylon] | https://ceylon-lang.org |
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
""" | |
maximum.py -- a recursive maximum finder using Python | |
This source code is licensed under a Creative Commons CC0 license. | |
More info at <https://creativecommons.org/publicdomain/zero/1.0/>. | |
""" | |
def get_maximum(numbers): | |
if len(numbers) == 1: |
OlderNewer