Skip to content

Instantly share code, notes, and snippets.

View alexcumplido's full-sized avatar

Alex alexcumplido

View GitHub Profile
from pypdf import PdfReader
from pathlib import Path
import os
import logging
from langchain_community.document_loaders import PyPDFLoader
import pymupdf
logging.basicConfig(level=logging.INFO)
INPUT_DIR = os.path.join(os.getcwd(), Path("doc_repo/"))
OUTPUT_DIR = os.path.join(os.getcwd(), Path("output_docs"))
@alexcumplido
alexcumplido / .svelte
Last active August 21, 2023 09:34
Svelte && Tailwind dropdown
<script>
import { fade, fly } from 'svelte/transition';
let statusDial = false;
const openDial = () => statusDial = true;
const closeDial = () => statusDial = false;
const handleDial = () => statusDial ? closeDial() : openDial();
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<nav class="flex justify-between flex-wrap p-4 px-2 relative">
<div on:mouseleave={closeDial} class="relative p-2">