command 1
command 2
.
.
.
[ $? -eq '0' ] && echo "Job done!"
exit $?
MATLAB applications, tutorials, examples, tricks, resources,...and a little bit of everything I learned ...
Friday, June 8, 2018
Tuesday, June 5, 2018
AWK function to add a double quote to beginning of a line
function addQuote(input) {
return ("\"" input)
}
Friday, May 11, 2018
Tuesday, May 8, 2018
Python read files line by line
fo = open('inputFileName', 'r')
lines = fo.readlines()
for ln in lines:
print(ln)
lines = fo.readlines()
for ln in lines:
print(ln)
Tuesday, May 1, 2018
Monday, April 30, 2018
my .vimrc file
set nocompatible
filetype off
set rtp+=~/.vim/vundle.git/
call vundle#rc()
"Bundles:
Bundle 'gmarik/vundle'
Bundle 'jiangmiao/auto-pairs'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'tmhedberg/SimpylFold'
"
set number
set relativenumber
syntax on
set background=light
hi clear
syntax enable
colorscheme monokai
set shiftwidth=4
set tabstop=4
set expandtab
set laststatus=2
filetype off
set rtp+=~/.vim/vundle.git/
call vundle#rc()
"Bundles:
Bundle 'gmarik/vundle'
Bundle 'jiangmiao/auto-pairs'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'tmhedberg/SimpylFold'
"
set number
set relativenumber
syntax on
set background=light
hi clear
syntax enable
colorscheme monokai
set shiftwidth=4
set tabstop=4
set expandtab
set laststatus=2
" searching
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
Subscribe to:
Posts (Atom)
my-alpine and docker-compose.yml
``` version: '1' services: man: build: . image: my-alpine:latest ``` Dockerfile: ``` FROM alpine:latest ENV PYTH...
-
It took me a while to figure out how to insert a space in Mathtype equations. This is especially useful when you write an equation with mult...
-
In this post, I am trying to solve the problem given in the comments of one of the old post. Here's the problem, if I understand it co...
-
Recently I got a very long column of data and it contains lots of NaN. I found the finite function very useful to help me remove all the NaN...