Skip to content

Instantly share code, notes, and snippets.

View brunnolou's full-sized avatar

Bruno Lourenço brunnolou

View GitHub Profile
@brunnolou
brunnolou / .vimrc
Last active August 23, 2016 09:49
Spell check for vim (Git commit messages)
" Spell check
set spell spelllang=en_us
hi clear SpellBad
hi SpellBad cterm=underline
@brunnolou
brunnolou / .sass-lint.yml
Created January 27, 2016 18:58
Sass lint
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1
# Mixins
mixins-before-declarations: 1
# Line Spacing
@brunnolou
brunnolou / .csscomb.json
Last active April 2, 2018 11:55
CScomb with twitter recess property order.
{
"exclude": [
".git/**",
"node_modules/**",
"bower_components/**"
],
"always-semicolon": true,
"block-indent": " ",
"color-case": "lower",
"color-shorthand": true,
@brunnolou
brunnolou / svg-transform-origin-absolute.js
Created August 31, 2015 13:31
Calculate SVG absolute `transform-origin` position to be compatible with firefox
var element = document.querySelector(prompt('Insert the querySelector to the svg element.', '#gear'));
var bbox = element.getBBox(),
x = bbox.x,
y = bbox.y,
w = bbox.width,
h = bbox.height
;
var result =
'center center' + "\n" +