Skip to content

Instantly share code, notes, and snippets.

@rleger
rleger / .vimrc
Last active Feb 8, 2016
My Vim configuration
View .vimrc
syntax enable
filetype off " required
filetype plugin on
set nocompatible " be iMproved, required
so ~/.vim/plugins.vim " Plugins
set wildmode=list:longest,full " Show file suggestions on tab press
set wildmenu " e.g. :e file<tab>
@rleger
rleger / .vimrc
Last active Mar 29, 2016
Vim Sort Php Use
View .vimrc
// Sort PHP use imports by length
// You don't have to select the use imports, hitting <leader>su anywhere in your file
// will sort the imports and put your cursor back where you left off.
//
// Replace ^M by hitting <C-v><C-m> in insert mode
function! SortPhpUseByLength()
exec 'normal mrgg/^use\s^Mma/^class\s^M/^use\s^MNmb:nohlsearch^M:''a,''b! awk ''{ print length(), $0 | "sort -n | cut -d\\ -f2-" }''^M''r'
endfunction
nmap <leader>su :call SortPhpUseByLength()<cr>
@rleger
rleger / .vimrc
Last active Jul 15, 2017
Vimrc configuration for FZF
View .vimrc
" Vimrc configuration for FZF
"
" Key bindings
"
" Override C-P to include preview window
nnoremap <C-p> :call fzf#vim#gitfiles('', fzf#vim#with_preview('right:60%'))<CR>
" Current buffer tags
nnoremap <C-r> :BTags<cr>
" Most recent files
@rleger
rleger / Foreflight.md
Last active Dec 12, 2017
Foreflight improvements
View Foreflight.md

Realistic suggestions to make Foreflight even better

General

  • Let users customize the bottom toolbar. I myself never use Flights and Imagery, but I have to hunt down checklists...
  • VFR entry and exit points are not on the DB, this would be a great feature. There is currently no way to go directely to "N" waypoint when going into Lyon (LFLY) for instance. There is a Jeppesen geolocalized chart that shows the waypoints but for some reason it's not possible to overlay it on the map (GP does it :) ).

Plates

@rleger
rleger / tailwind-colors.tex
Created Jul 31, 2018
Latex definitions of Tailwind css colors
View tailwind-colors.tex
% TailwindCSS colors
% https://tailwindcss.com/docs/colors
\definecolor{black}{HTML}{22292f}
\definecolor{grey-darkest}{HTML}{3d4852}
\definecolor{grey-darker}{HTML}{606f7b}
\definecolor{grey-dark}{HTML}{8795a1}
\definecolor{grey}{HTML}{b8c2cc}
\definecolor{grey-light}{HTML}{dae1e7}
\definecolor{grey-lighter}{HTML}{f1f5f8}
\definecolor{grey-lightest}{HTML}{f8fafc}