Skip to content

Instantly share code, notes, and snippets.

View sheriffff's full-sized avatar

Manuel Lopez Sheriff sheriffff

View GitHub Profile
@sheriffff
sheriffff / llm-local.md
Created November 17, 2026 12:26
IA sin internet

IA local con Ollama

Para tener un modelo de IA en tu ordenador que funcione sin internet.

1. Instalar Ollama

Windows

  1. Descarga el instalador desde https://ollama.com/download (botón Windows, OllamaSetup.exe).
  2. Ejecútalo y sigue los pasos. No pide permisos de administrador.
import numpy as np
import streamlit as st
def is_prime(n):
"""Check if a number is prime."""
if n <= 1:
return False
for i in range(2, int(n**0.5) + 1):
if n % i == 0:
return False
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sheriffff
sheriffff / main.ipynb
Created May 22, 2023 09:18
IRPF: el mapeo bruto a neto podría ser continuo, y no por tramos...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sheriffff
sheriffff / README.md
Last active August 29, 2024 08:41
Jupyter notebook translator

Usage

run python jupyter_translate.py, and you will be asked for 3 inputs:

  • path to notebook
  • source language
  • target language

A new notebook will be created in target language in the same path as notebook.
It will preserve original language cells too, for easier human debugging of the translation.

You need a DeepL API