Skip to content

Instantly share code, notes, and snippets.

View reddgr's full-sized avatar

David González Romero reddgr

View GitHub Profile
@reddgr
reddgr / image_generation_with_gemini_api_colab.ipynb
Created March 20, 2025 13:56
Image generation and multimodal prompts examples with Google AI Studio
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / image-generation-with-gemini-api.ipynb
Created March 18, 2025 21:19
Image generation and multimodal prompts examples with Google AI Studio
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / count-files.ipynb
Created March 12, 2025 12:21
Counting files of a given extension in a given directory and all subdirectories
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / check-system-info.ipynb
Last active March 11, 2025 22:13
Jupyter Notebook for quickly checking system hardware and specs on any system
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / deepseek_chat.py
Last active February 15, 2025 00:27
Minimalist DeepSeek Streamlit UI. Send a prompt and get separated thought and response.
import streamlit as st
from langchain_ollama import OllamaLLM
from langchain.prompts import PromptTemplate
from langchain.chains.llm import LLMChain
import textwrap
# Initialize LLM
llm = OllamaLLM(model="deepseek-r1:1.5b")
# Define the prompt
@reddgr
reddgr / search_console_api.ipynb
Created January 29, 2025 11:41
Google Search Console API usage in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / topic_clustering_and_rqtl_word_frequency.ipynb
Created November 26, 2024 21:52
Chatbot prompts classification (RQTL), zero-shot clustering, and word frequency stats
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / get-huggingface-model-size.ipynb
Last active November 25, 2024 18:36
Get the detailed size of a pretrained model downloaded from HuggingFace
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reddgr
reddgr / merge-excel-worksheets.bas
Created November 14, 2024 21:53
Merges data from multiple Excel files in a selected folder into one worksheet.
Attribute VB_Name = "Module1"
Public Function SelectFolder(Optional Title As String, Optional TopFolder As String) As String
' Creates a folder browser dialog to select a folder.
' Title - Title of the folder browser.
' TopFolder - Initial directory to display.
Dim objShell As New Shell32.Shell
Dim objFolder As Shell32.Folder
' If 16384 is used instead of 1, files are also displayed in the dialog.
@reddgr
reddgr / datasets.ipynb
Created November 10, 2024 21:56
LMSYS chatbot conversations dataset exploration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.