Skip to content

Instantly share code, notes, and snippets.

View jfer-rubio's full-sized avatar

Fernando Rubio jfer-rubio

  • San Francisco, CA
View GitHub Profile
@jfer-rubio
jfer-rubio / init.vim
Last active January 4, 2025 04:00
Vim config
"*****************************************************************************
"" Plugins
"*****************************************************************************
call plug#begin('~/.vim/plugged')
" Tree
Plug 'scrooloose/nerdtree'
Plug 'justinmk/vim-dirvish'
" Init
a = [[1,2],[3,4]]
b = [[1,2,3],[4,5,6],[7,8,9]]
c = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
d = [[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15],[16,17,18,19,20],[21,22,23,24,25]]
def initial array
n = array.first.length
@max = array.first.length.odd? ? (n - 1)/2 : n/2
@rows = array
@columns = array.transpose.reverse