Skip to content

Instantly share code, notes, and snippets.

@nebil
nebil / remark.tex
Last active March 20, 2024 09:13
💬 remark -- a simple command to add inline notes in LaTeX
% This source code is licensed under a Creative Commons CC0 license.
% More info at <https://creativecommons.org/publicdomain/zero/1.0/>.
\documentclass[12pt]{article}
\usepackage{xcolor}
\begin{document}
% The main goal is to provide an easy way to write annotations in LaTeX.
% This simple snippet of code should serve as a minimal working example.
@nebil
nebil / how-to-git.md
Last active October 8, 2023 04:15
📚 Una lista de recursos sobre Git 📚

Una metaguía de Git

Esta guía resume algunos de los aspectos básicos de Git, para facilitar el aprendizaje de esta herramienta.
Ahora bien, el método de este documento es simple: entregar enlaces hacia obras de excelente calidad.
Por lo tanto, esta guía tiene el modesto propósito de ofrecer un compendio actualizado de recursos.

@nebil
nebil / styleguide-en.md
Last active August 10, 2023 19:42
🎨 The opinionated Git styleguide — with emoji! 🎨

Git – styleguide

Rationale

_A styleguide is about consistency. Consistency with this styleguide is important. [...]
However, know when to be inconsistent -- sometimes the styleguide just doesn’t apply.
When in doubt, use your best judgment.

@nebil
nebil / general-public-license-v3.md
Last active April 14, 2023 06:43
📜 My license headers 📜

GNU General Public License v3.0

Each source code file of a GPL3-licensed project should include a notice*, as recommended in this section.
For aesthetic reasons, I’ve decided to amend—just a little bit—all of the headers.

@nebil
nebil / barrtodec.py
Last active February 11, 2020 11:20
🔟 barrtodec -- turn a bitmap into a decimal integer using Python
"""
barrtodec.py -- turn a bitmap into a decimal integer using Python
This source code is licensed under a Creative Commons CC0 license.
More info at <https://creativecommons.org/publicdomain/zero/1.0/>.
"""
from functools import reduce
@nebil
nebil / stopwatch1.py
Last active February 11, 2020 11:11
⏱️ listwatch -- a classy stopwatch for Python 3.3+
"""
stopwatch1.py -- a classy stopwatch for Python 3.3+
Copyright (c) 2020, 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 datetime import datetime
@nebil
nebil / releasetype.py
Last active February 11, 2020 11:10
📦 releasetype -- a function to get the release type of a version
"""
releasetype.py -- a function to get the release type of a version
This source code is licensed under a Creative Commons CC0 license.
More info at <https://creativecommons.org/publicdomain/zero/1.0/>.
"""
def get_release_type(version):
"""
"""
"""
@nebil
nebil / maximum.py
Last active February 2, 2020 23:25
🔁 extremum -- two recursive functions written in Python
"""
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:
@nebil
nebil / README.md
Last active January 21, 2020 14:05
🚀 Algunos lenguajes del nuevo milenio 🚀

Lenguajes del tercer milenio

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 :octocat: Sitio web oficial
[Ceylon] 2011 [@eclipse/ceylon] https://ceylon-lang.org