Skip to content

Instantly share code, notes, and snippets.

View Nishith-Savla's full-sized avatar
📔
Learning

Nishith Savla Nishith-Savla

📔
Learning
View GitHub Profile
@Nishith-Savla
Nishith-Savla / settings.json
Last active February 25, 2022 18:53
VSCode Settings
{
// Editor
"editor.bracketPairColorization.enabled": true,
"editor.cursorSmoothCaretAnimation": true,
"editor.formatOnSave": true,
"editor.fontLigatures": true,
"editor.fontFamily": "'CaskaydiaCove Nerd Font', 'Cascadia Code PL', 'Consolas'",
"editor.guides.bracketPairs": false,
"editor.guides.indentation": false,
"editor.inlayHints.enabled": false,
@Nishith-Savla
Nishith-Savla / Microsoft.PowerShell_profile.ps1
Last active April 18, 2021 08:07
My Powershell 7 Profile
# Theme Settings
Set-PoshPrompt slimfat
Import-Module PoShFuck
# Aliases
Set-Alias scl Set-Clipboard
# "Workon" redefine
function workon ($environment) {
@Nishith-Savla
Nishith-Savla / init.vim
Last active April 15, 2021 15:25
My Neovim config
call plug#begin('~/AppData/Local/nvim-data/plugged')
" UI related
Plug 'joshdick/onedark.vim'
Plug 'iCyMind/NeoSolarized'
Plug 'chriskempson/base16-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Better Visual Guide
Plug 'Yggdroot/indentLine'
" Better Search
@Nishith-Savla
Nishith-Savla / exercise-rot-reader.go
Created April 5, 2021 17:03
A Tour of Go Exercise: rot13reader (Methods and interfaces module 23)
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@Nishith-Savla
Nishith-Savla / check_binary.py
Last active August 9, 2022 11:21
Program to find the 1's complement of a binary number
# Program to find the 1's complement of a binary number
def check_binary(num):
"""Returns true if the number is binary else, False"""
for i in str(num):
if i not in ('0', '1'): return False
return True
def find_one_complement(num):
"""Returns one's complement of the number"""