Tips
-
simply my .vimrc file:
set ts=2 set autoindent set number set showmode set shiftwidth=2 set tabstop=2 set expandtab set ruler set hlsearch syntax on filetype on filetype ... -
Quick method to get your numbers suffixed with two letters in order to get an ordinal
ORDINAL_LIST = ['th','st','nd','rd','th','th','th','th','th','th'] def ordinal(value ... -
A quick snippet of code to truncate your long sentence on words only.
function truncate_words(value, length){ if (value){ var words = value.split(" "); for( pos in words ){ if ( words.slice ...