Skip to content

Instantly share code, notes, and snippets.

View martfl's full-sized avatar

martín. martfl

View GitHub Profile
@martfl
martfl / config.json
Created June 1, 2017 06:06
sync setting
"Test"
const humanSize = bytes => {
if (!bytes || isNaN(bytes) || bytes < 0 ) return null
const metric = {'decimal': 1000,'binary': 1024}
const units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
/*
reduce takes a callback and an initial value.
callback acts upon every element of the array, and should return at
branches,prod_family,status,campaign,segment,digital_ind
Sucursal 1,Product 1,,,,
Sucursal 1,Product 2,,,,
Sucursal 1,Product 3,,,,
Sucursal 1,Product 4,,,,
Sucursal 1,Product 5,,,,
Sucursal 1,Product 6,,,,
Sucursal 1,Product 7,,,,
Sucursal 1,Product 8,,,,
Sucursal 1,Product 9,,,,
We can't make this file beautiful and searchable because it's too large.
branches,prod_family,status,cliente,monto,campaign,segment,digital_ind
1,1,1,322,635,1,1,1
1,1,1,130,658,1,1,2
1,1,1,223,290,1,1,3
1,1,1,231,541,1,1,4
1,1,1,315,311,1,1,5
1,1,1,30,511,1,2,1
1,1,1,427,629,1,2,2
1,1,1,413,403,1,2,3
1,1,1,120,672,1,2,4

Keybase proof

I hereby claim:

  • I am martfl on github.
  • I am martfl (https://keybase.io/martfl) on keybase.
  • I have a public key ASDUtHufkZtDkGOdMK5ELMZ2xaE21EQfPFUzN6E74LK6fAo

To claim this, I am signing this object:

@martfl
martfl / .vimrc
Last active February 25, 2020 03:01
my vim conf
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=500
" Enable filetype plugins
filetype plugin on
filetype indent on
@martfl
martfl / init.vim
Created February 25, 2020 03:05
my neovim conf
syntax on
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree' " file list
Plug 'majutsushi/tagbar' " show tags in a bar (functions etc) for easy browsing
Plug 'vim-airline/vim-airline' " make statusline awesome
Plug 'vim-airline/vim-airline-themes' " themes for statusline
Plug 'jonathanfilip/vim-lucius' " nice white colortheme
Plug 'davidhalter/jedi-vim' " jedi for python
@martfl
martfl / .zshrc
Created February 25, 2020 03:07
my zsh conf
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/user/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes