Skip to content

Instantly share code, notes, and snippets.

rleger / tailwind-colors.tex
Created Jul 31, 2018
Latex definitions of Tailwind css colors
View tailwind-colors.tex
% TailwindCSS colors
rleger /
Last active Dec 12, 2017
Foreflight improvements

Realistic suggestions to make Foreflight even better


  • 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 :) ).


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 / .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'
nmap <leader>su :call SortPhpUseByLength()<cr>
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 / .php_cs
Created Jan 4, 2016 — forked from jatubio/.php_cs
Config file to pass PHP-CS-Fixer with Laravel 5.1 custom and PSR-2 styles coding
View .php_cs
$finder = Symfony\Component\Finder\Finder::create()
rleger / HTML 5 Start File
Last active Dec 19, 2015 — forked from peteymoore/gist:5392815
HTML 5 Start file
View HTML 5 Start File
<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<title>HTML5 Template</title>
<link rel="stylesheet" href="style.css">
rleger / index.html
Created Jul 16, 2015
Tags with VueJs and FlatUI Pro from Designmodo
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Vue Tags</title>
<link rel="stylesheet" type="text/css" href="css/vendor/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/flat-ui-pro.min.css">
<script src="vue-js.min.js"></script>
rleger / .php_cs
Last active Aug 29, 2015
PHP CS fixer config file
View .php_cs
$header = <<<EOF
This file is part of the PHP CS utility.
(c) Fabien Potencier <>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
rleger / assign-vars-from-controller.sublime-macro
Created Jan 4, 2015
Initialize fields from php controller macro - Sublime text 3
View assign-vars-from-controller.sublime-macro
"command": "escape"
"command": "expand_selection",
"args": {"to": "word"}
"args": null,