Skip to content

Instantly share code, notes, and snippets.

Romain Léger rleger

Block or report user

Report or block rleger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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}
@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 / .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 / .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 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 / .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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
@rleger
rleger / index.html
Created Jul 16, 2015
Tags with VueJs and FlatUI Pro from Designmodo
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<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>
</head>
<body>
@rleger
rleger / .php_cs
Last active Aug 29, 2015
PHP CS fixer config file
View .php_cs
<?php
$header = <<<EOF
This file is part of the PHP CS utility.
(c) Fabien Potencier <fabien@symfony.com>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
@rleger
rleger / EOL-semicolumn.sublime-macro
Created Jan 4, 2015
Add semicolumn to end of line - Sublime text 3
View EOL-semicolumn.sublime-macro
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
@rleger
rleger / EOL-coma.sublime-macro
Created Jan 4, 2015
Add coma to end of line - Sublime text 3
View EOL-coma.sublime-macro
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
You can’t perform that action at this time.