Skip to content

Instantly share code, notes, and snippets.

View romainl's full-sized avatar
💰
Alwayz Into Somethin'

Romain Lafourcade romainl

💰
Alwayz Into Somethin'
  • Razorfish France
  • Paris, France
View GitHub Profile
@romainl
romainl / .ctags
Last active June 14, 2023 09:19
My ctags config
--langdef=less
--langmap=less:.less
--regex-less=/^[ \t&]*#([A-Za-z0-9_-]+)/\1/i,id,ids/
--regex-less=/^[ \t&]*\.([A-Za-z0-9_-]+)/\1/c,class,classes/
--regex-less=/^[ \t]*(([A-Za-z0-9_-]+[ \t\n,]+)+)\{/\1/t,tag,tags/
--regex-less=/^[ \t]*@media\s+([A-Za-z0-9_-]+)/\1/m,media,medias/
--regex-less=/^[ \t]*(@[A-Za-z0-9_-]+):/\1/v,variable,variables/
--regex-less=/\/\/[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/
--langdef=scss

Goal Driven Learning for Vim

Principles

@romainl
romainl / fontawesome.txt
Created August 30, 2015 08:33
font-awesome dictionary
fa
fa-2x
fa-3x
fa-4x
fa-500px
fa-5x
fa-adjust
fa-adn
fa-align-center
fa-align-justify
@romainl
romainl / .gitconfig
Last active September 17, 2015 08:59
Shut up, FileMerge.
[diff]
tool = opendiff
[difftool]
cmd = /path/to/git_diff_wrapper
[merge]
tool = opendiff
[mergetool]
cmd = /path/to/git_diff_wrapper
# top-most EditorConfig file
root = true
[*.lf]
end_of_line=lf
tab_width=5
[*.crlf]
end_of_line=crlf
@romainl
romainl / epictetus.adoc
Created November 23, 2015 22:25 — forked from dahu/epictetus.adoc
Epictetus quotes

Epictetus

Philosophy is a way of life and not just a theoretical discipline.

Epictetus (55 — 135 AD) was a Greek slave of Rome. He became a great Stoic philosopher and teacher, and was eventually freed.

Although he was a fatalist, he believed that individuals are responsible for their own actions, which they can examine and control through rigorous self-discipline.

@romainl
romainl / jq.js
Last active January 18, 2016 20:31
Painless jQuery in a CommonJS context
module.exports = function() {
// install jQuery in the global scope
global.jQuery = global.$ = require("jquery");
}();
@romainl
romainl / gsap-tweenlite.js
Created January 18, 2016 20:41
Animation libraries in a CommonJS context
// require
var TweenLite = require("../../../node_modules/gsap/src/uncompressed/TweenLite");
require("../../../node_modules/gsap/src/uncompressed/plugins/CSSPlugin");
// use
TweenLite.to(element, 1, {alpha: 0.3});
@romainl
romainl / script.vim
Created January 18, 2016 21:04
Edit all buffers and come back without losing highlighting
function! EditAllBuffersAndComeBackWithoutLosingHighlighting()
let this_buffer = bufnr("%")
bufdo set eventignore= | if &buftype != "nofile" && expand("%") != '' | edit | endif
execute "b" . this_buffer
endfunction
" if there's an .editorconfig file, use it
" * parse it
" * create a list of dicts, one for each pattern
" * build autocommands for each dict
" * install autocommands
" if not, do like YAIFA
function! Indentist()
let config_file_path = findfile(".editorconfig", ".;")
if len(config_file_path) == 0