Skip to content

Instantly share code, notes, and snippets.

@mbrc12
mbrc12 / qol.py
Created April 11, 2026 21:29
Ipython extension for my qol improvements.
"""IPython extension for quality of life improvements.
1. Shows execution time for every cell in blue (ANSI color in terminal)
2. Saves HTML representation of objects with _repr_html_ to ~/.local/ipython-html/
and maintains an index.html with melange light theme for viewing
3. Configures plotly to use the melange color palette
"""
import os
import json
@mbrc12
mbrc12 / kitty.conf
Created June 21, 2024 21:40
kitty.conf
# vim:fileencoding=utf-8:foldmethod=marker
include ./theme.conf
font_family Iosevka Extended
# font_family CommitMono Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
@mbrc12
mbrc12 / alacritty.toml
Created January 12, 2024 13:14
alacritty.toml
# See docs:
# https://alacritty.org/config-alacritty.html
live_config_reload = true
import = [
"~/.config/alacritty/alacritty-theme/themes/horizon-dark.toml"
]
[env]
@mbrc12
mbrc12 / init.lua
Created November 22, 2023 10:42
New init.lua
-- local dark_colorscheme = "nightly"
local dark_colorscheme = { "monokai-pro-spectrum", "dark" }
-- local dark_colorscheme = { "srcery", "dark" }
-- local dark_colorscheme = { "biscuit", "dark" }
-- local light_colorscheme = { "dayfox", "light" }
local colorscheme = dark_colorscheme
---{{{ Lazy
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
@mbrc12
mbrc12 / tmux.conf
Last active November 17, 2024 00:47
set -g default-command "${SHELL}"
set -g status-position top
set -g status-style 'fg=#1d2021 bg=#458588 bold'
set-window-option -g window-status-current-style bg="#83a598"
set -sg escape-time 0
set -g mouse on
unbind C-b
@mbrc12
mbrc12 / alacritty.yml
Created January 23, 2023 18:02
Alacritty conf
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
@mbrc12
mbrc12 / init.lua
Last active January 10, 2023 18:45
Personal init.lua for neovim 0.7+
Autocmd = vim.api.nvim_create_autocmd
Augroup = vim.api.nvim_create_augroup
Cmd = vim.api.nvim_command
Map = vim.api.nvim_set_keymap
Nmap = function(key, cmd, conf)
Map('n', key, cmd, conf)
end
Lualine_extra = {
navic_component = nil,
@mbrc12
mbrc12 / gv.fish
Created August 9, 2021 13:19
Goneovim startup script for fish
#!/bin/fish
if test (count $argv) -gt 0
goneovim --maximized (realpath $argv[1]) &> /dev/null &; disown
else
goneovim --maximized (realpath .) &> /dev/null &; disown
end
@mbrc12
mbrc12 / custom.el
Created July 5, 2021 19:12
init.el
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :extend nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 130 :width normal :foundry "outline" :family "JetBrains Mono")))))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
@mbrc12
mbrc12 / Makefile
Created December 27, 2020 14:17
HLD code
compile:
pkg-config fmt
g++ --std=c++17 code.cc -lfmt
run: compile
./a.out > out.dot
dot -Tpng -Nfontname=Google\ Sans out.dot > out.png
disp:
firefox out.png