Skip to content

Instantly share code, notes, and snippets.

View mbrc12's full-sized avatar

Mriganka Basu Roy Chowdhury mbrc12

View GitHub Profile
@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 January 12, 2024 13:14
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
call plug#begin()
" Plug 'flazz/vim-colorschemes'
" Plug 'sonph/onehalf'
" Plug 'wfxr/minimap.vim'
" Plug 'Xuyuanp/scrollbar.nvim'
@mbrc12
mbrc12 / index.html
Created July 7, 2020 16:10
cljs/three.js test
<!-- /public/index.html -->
<html>
<script src = "/js/main.js"></script>
<script>window.onload = cjs1.main.main </script>
<style>
body { margin: 0; }
canvas { display: block; }
</style>
<body>
</body>