Skip to content

Instantly share code, notes, and snippets.

View nikhil1raghav's full-sized avatar

Nikhil nikhil1raghav

View GitHub Profile
@nikhil1raghav
nikhil1raghav / addfeed.py
Created June 23, 2021 03:04
Add feeds into newsboat config easily
#!/usr/bin/python
import os
import sys
from feedfinder2 import find_feeds
#move it to /usr/bin remove that py suffix in the file name, saved it like this for highlighting
#add new feeds by typing addfeed "example.com"
for i in sys.argv:
print(i)
ls=sys.argv[1:]
def solve():
n=int(input())
l=map(int,input().split())
l=set(l) #in case there are duplicate elements
xorall=0
for i in l:
xorall^=i
#check if this is not zero and satisfies the property
newset=[]
@nikhil1raghav
nikhil1raghav / init.vim
Created December 21, 2020 16:05
Neovim config
let mapleader=" "
set number
set mouse=a
syntax enable
set showcmd
set ruler
set cursorline
set encoding=utf-8
call plug#begin('~/.config/nvim/plugged')
Plug 'preservim/nerdtree'