Skip to content

Instantly share code, notes, and snippets.

View nhuzaa's full-sized avatar
🏠
Working from home

Rohit Sthapit nhuzaa

🏠
Working from home
View GitHub Profile
.evenNumber{
color: blue;
}
.oddNumeber{
color: red;
}
#even {
background-color:red;
@nhuzaa
nhuzaa / .vimrc
Created January 1, 2021 13:03
My vimrc
set hidden
set nowrap
set termguicolors
filetype on
let mapleader = ' '
let maplocalleader = '\'
nnoremap ; :
map <c-l> :.w !pbcopy<CR><CR>
noremap <leader>aa gg<S-v><S-g>
noremap <leader>= gg<S-v><S-g>=
@nhuzaa
nhuzaa / swap.vim
Last active December 31, 2020 11:55
Vim swap Lines
" hack to swap lines
function! s:swap_lines(n1, n2)
let line1 = getline(a:n1)
let line2 = getline(a:n2)
call setline(a:n1, line2)
call setline(a:n2, line1)
endfunction
function! s:swap_up()
let n = line('.')
if n == 1
@nhuzaa
nhuzaa / vim-align.sh
Last active December 31, 2020 11:37
Vim plugins need not apply
0f=20i<Space><Esc>020lvf=hx
0 goes to first column
f= finds next occurrence of = on current line
20i<Space><Esc> inserts 20 spaces before =
0 goes back to first column
20l forward 20 column
vf=hx deletes everything up to the = sign
class Products(models.Model):

Fabdeploy

N|Solid

CLI deployment tool built on top of fabric

Installing

    pip install -r requirement-fabric.txt
@nhuzaa
nhuzaa / fix.js
Last active February 22, 2018 10:13
Fix GitHub red text background on JSX
var errorLine = document.getElementsByClassName("pl-ii");
var i;
for (i = 0; i < errorLine.length; i++) {
errorLine[i].style.backgroundColor = "transparent";
errorLine[i].style.color = "#24292e";
}