Skip to content

Instantly share code, notes, and snippets.

View drearondov's full-sized avatar
🏗️
Madly refactoring

Andrea Rondón drearondov

🏗️
Madly refactoring
View GitHub Profile
@drearondov
drearondov / heriline.lua
Created February 20, 2024 15:21
Modify title for file explorer on AstroNVIM
provider = function(self)
local title = " EXPLORER"
local width = vim.api.nvim_win_get_width(self.winid)
local pad = width - #title
return " " .. title .. string.rep(" ", pad + 2)
end,
hl = { fg = "normal", bg = "tabline_bg", bold = true },
@drearondov
drearondov / Dataframe to Dash HTML Table.py
Last active November 4, 2023 22:45
Constructs a Plotly Dash HTML table from a Pandas Dataframe
def create_stats_table(data_frame: pd.DataFrame) -> html.Table:
"""Constructor for a Dash Table from a Data Frame
Args:
data_frame (pd.DataFrame): Source data for Table
Returns:
html.Table: Dash Table element
"""
table_rows: list[html.Tr] = []