Skip to content

Instantly share code, notes, and snippets.

@rleger
rleger / tailwind-colors.tex
Created July 31, 2018 08:20
Latex definitions of Tailwind css colors
% 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 December 12, 2017 11:51
Foreflight improvements

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 July 15, 2017 15:34
Vimrc configuration for FZF
" 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 March 29, 2016 21:01
Vim Sort Php Use
// 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 February 8, 2016 15:59
My Vim configuration
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 January 4, 2016 00:20 — forked from jatubio/.php_cs
Config file to pass PHP-CS-Fixer with Laravel 5.1 custom and PSR-2 styles coding
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
@rleger
rleger / HTML 5 Start File
Last active December 19, 2015 12:09 — forked from peteymoore/gist:5392815
HTML 5 Start file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Template</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
@rleger
rleger / index.html
Created July 16, 2015 06:48
Tags with VueJs and FlatUI Pro from Designmodo
<!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 August 29, 2015 14:20
PHP CS fixer config file
<?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 January 4, 2015 19:35
Add semicolumn to end of line - Sublime text 3
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":