Skip to content

Instantly share code, notes, and snippets.

View AvinashKrSharma's full-sized avatar
🎯
Focusing

Avinash Kr Sharma AvinashKrSharma

🎯
Focusing
View GitHub Profile
@AvinashKrSharma
AvinashKrSharma / vimrc for how to get started with vim
Last active July 13, 2017 13:06
Initial vimrc helpful to get started with vim
" This will install Vundle
" Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/vundle
let iCanHazVundle=0
zsh: │
0. Demonstrate oh-my-zsh │
1. Installing zsh │
2. Installing oh-my-zsh │$ avinash in ~
3. zshrc │➜
4. Tab completion - cd, ls, command history with up, expand env variables, flags of command with tab, capitalization corrections │
5. Themes │
6. Plugins - extract, sudo, vi-mode, web-search
@AvinashKrSharma
AvinashKrSharma / Sudoku Solution Verifier
Created August 21, 2017 18:05
Small python3 script to check if a sudoku solution is valid or not
# Algorithm:
# 1. Get the length and sq_root of the grid size for e.g. for a 4x4 grid we are looking for values 4 and 2 respectively.
# 2. Loop for 0 to length and:
# Check if row is valid:
# To check this, push all values in row in an array and check if values have no duplicates and have no values
# outside possible range which is 1 to length
# Check if column is valid:
# To check this, push all values in column in an array and check if values have no duplicates and have no values
# outside possible range which is 1 to length
# 3. Loop from 0 to length - sq_root stepping root_size for every iteration:
{"lastUpload":"2019-12-07T22:39:31.281Z","extensionVersion":"v3.4.3"}