Skip to content

Instantly share code, notes, and snippets.

View zoomlogo's full-sized avatar
🍪
cookie

zoomlogo

🍪
cookie
  • 12th grade
  • 12d universe
View GitHub Profile
@zoomlogo
zoomlogo / compare
Last active October 26, 2024 16:21
simple script to compare directories
#!/usr/bin/python
# compare two directories
import os
import sys; sys.argv = sys.argv[1:]
from colorama import Fore, Style
if len(sys.argv) == 1 and ("help" in sys.argv or "h" in sys.argv):
print("usage: compare <old_dir> <new_dir>")
sys.exit(0)
@zoomlogo
zoomlogo / .vimrc
Last active October 10, 2022 13:04
very smol vim config
"plugins: vim-polygot cemant.vim vim-visual-multi vim-easy-align
" vim-abolish golden-ratio vim-surround vim-commentary vim-terminal-help
se nocp nohls nowrap et ts=4 sw=4 nobk ru is nu rnu ls=2 tgc noswf nowb so=1
se stal=2 list lcs=tab:→\ ,space:· bg=dark gfn=sevka,agave_NF_r:h13
se bs=2 sc wmnu shm=asWIcq ttimeout ttm=100 top rtp+=~/ngn_k/vim-k enc=utf-8
au bufreadpost * sil! norm! g`"zv
au bufnew,bufnewfile,bufread *.k :se ft=k
au vimleave * se gcr=a:ver25
au filetype python nn <cr> :w<cr>:!python %<cr>
au filetype k nn <cr> :w<cr>:!k %<cr>
@zoomlogo
zoomlogo / init.lua
Last active March 21, 2022 13:14
my neovim lua config
-- vim settings
vim.cmd([[
set guifont=Iosevka\ Kalki,agave\ NF\ r:h13
]])
vim.o.expandtab = true
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.number = true
@zoomlogo
zoomlogo / .bashrc
Created October 11, 2021 13:42
My bashrc (on termux)
files() {
ls -l | wc -l | awk '{ print $1 - 1}'
}
last_status() {
status=$?
if [ $status == 0 ]; then
echo -e "\033[32m$status\033[0m"
else
echo -e "\033[31m$status\033[0m"
@zoomlogo
zoomlogo / pp
Last active December 14, 2021 11:37
A lightweight Python repl with syntax highlighting amongst other things.
#!python
import code
import sys
import os
from rich import inspect, print
from prompt_toolkit import PromptSession
from prompt_toolkit.lexers import PygmentsLexer
from prompt_toolkit.styles import style_from_pygments_cls
KBD UAPLIN "English (India) and APLUNICODE"
COPYRIGHT "(c) 2021 PyGamer0"
COMPANY "No company"
LOCALENAME "en-IN"
LOCALEID "00004009"
@zoomlogo
zoomlogo / private-build-plans.toml
Last active February 24, 2022 12:49
My custom Iosevka build.
[buildPlans.iosevka-kalki]
family = "Iosevka Kalki"
spacing = "term"
serifs = "sans"
no-cv-ss = true
no-ligation = true
[buildPlans.iosevka-kalki.variants.design]
apl-form = 'enable'
capital-q = "straight"
" ---------------------------------------
" (_)___ (_) /__ __(_)___ ___
" / / __ \/ / __/ | / / / __ `__ \
" / / / / / / /__| |/ / / / / / / /
" /_/_/ /_/_/\__(_)___/_/_/ /_/ /_/
" ----------------------------------------
set guifont=Iosevka\ Kalki,DejaVuSansMono\ NF,Unifont:h16
set clipboard=unnamedplus
set updatetime=40
set wildmenu