Skip to content

Instantly share code, notes, and snippets.

View mehuaniket's full-sized avatar
:octocat:
Wrangling

Aniket Patel mehuaniket

:octocat:
Wrangling
View GitHub Profile
# Set vi key bindings mode
set -g mode-keys vi
set -g status-keys vi
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# List of plugins
@mehuaniket
mehuaniket / .zshrc
Last active August 24, 2024 17:34 — forked from andrenbrandao/.zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@mehuaniket
mehuaniket / item_order_database.py
Last active October 11, 2019 12:50
Item order in database (chrono_order)
import random
MIN_INDEX = 0
MAX_INDEX = 100
RECURSION_COUNT = 10000
CLOSE_SIZE = 20
ITEMS = []
for i in range(MIN_INDEX, MAX_INDEX + 1):