Skip to content

Instantly share code, notes, and snippets.

View aerosayan's full-sized avatar
:octocat:
ASM/C/C++ to rule them all !

Sayan Bhattacharjee aerosayan

:octocat:
ASM/C/C++ to rule them all !
  • Previously working in - Sukra Helitek Inc.
  • Chennai, India
View GitHub Profile
@aerosayan
aerosayan / competitive-programming-resource-links
Last active August 30, 2018 08:43
Competitive programming resource links that are helpful to me.
@aerosayan
aerosayan / init.el
Created February 3, 2019 17:17
spacemacs user defined configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; USER DEFINED CONFIGURATION ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Display line numbers globally
(global-display-line-numbers-mode)
;; Use soft wrap
(global-visual-line-mode t)
;; Disable the horrible auto-indent "feature"
(add-hook 'after-change-major-mode-hook'
(lambda()(electric-indent-mode -1)))
@aerosayan
aerosayan / orthodoxc++.md
Created February 22, 2019 15:42 — forked from bkaradzic/orthodoxc++.md
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@aerosayan
aerosayan / README.md
Created September 1, 2019 13:41 — forked from csswizardry/README.md
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vs **/*<partial file name><Tab>
@aerosayan
aerosayan / .vimrc
Created January 31, 2020 10:45
aerosayan vimrc
"--------------------------------------------------------------------
"run pathogen package manager
execute pathogen#infect()
"--------------------------------------------------------------------
set nocompatible "run in vim mode
"set expandtab "expand tabs into spaces
set noexpandtab "don't expand tabs into spaces
set autoindent "auto-indent new lines
set smartindent "return ending brackets to proper locations
set softtabstop=4 "indentation level of soft-tabs
@aerosayan
aerosayan / open-foam-7-github-tree.txt
Created March 3, 2020 10:34
Github scrapped for Open Foam 7 folder links
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/DNS
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/DNS/dnsFoam
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/DNS/dnsFoam/Make
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/basic
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/basic/laplacianFoam
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/basic/laplacianFoam/Make
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/basic/potentialFoam
https://github.com/OpenFOAM/OpenFOAM-7/tree/master/applications/solvers/basic/potentialFoam/Make
@aerosayan
aerosayan / open-foam-7-github-blob.txt
Created March 3, 2020 10:35
Github scrapped for Open Foam 7 file links
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/.gitignore
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/Allwmake
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/COPYING
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/README.org
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/Allwmake
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/solvers/DNS/dnsFoam/Make/files
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/solvers/DNS/dnsFoam/Make/options
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/solvers/DNS/dnsFoam/createFields.H
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/solvers/DNS/dnsFoam/dnsFoam.C
https://github.com/OpenFOAM/OpenFOAM-7/blob/master/applications/solvers/DNS/dnsFoam/globalProperties.H
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@aerosayan
aerosayan / 1-1000.txt
Created March 19, 2020 07:15 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
@aerosayan
aerosayan / Eigen Cheat sheet
Created March 30, 2020 12:16 — forked from gocarlos/Eigen Cheat sheet
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.