Skip to content

Instantly share code, notes, and snippets.

View dimritium's full-sized avatar

Shubhankar Dimri dimritium

View GitHub Profile
@dimritium
dimritium / vim.sublime-settings
Created April 6, 2024 02:54
enable vim mode in sublime
{
"ignored_packages":
[
// "Vintage",
],
"index_files": true,
"vintage_start_in_command_mode": true
}
@dimritium
dimritium / .zshrc
Last active May 17, 2022 06:02
Mouse support in tmux and oh-my-zsh config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@dimritium
dimritium / quotes.json
Created May 31, 2020 08:07 — forked from nasrulhazim/quotes.json
Quotes List in JSON Format
{
"quotes": [
{
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"},
{
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"},
{
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"},
{
@dimritium
dimritium / randno.py
Created January 21, 2018 06:01
syntax explanation
from time import time
# importing from time module, python inbuilt module
import time as t
# a shorthand for time so that only t can be used instead of time
def get_seeds(): # a fxn to get seeds
value_1 = value_2 = 0
while not value_1 and not value_2:
#print int(str(time() - int(time()))[-1]), int(str(time() - int(time()))[-2])