Skip to content

Instantly share code, notes, and snippets.

View lorefnon's full-sized avatar

Lorefnon lorefnon

View GitHub Profile
[alias]
l = log
i = init
cl = clone
d = diff
dn = --no-pager diff --name-only
di = icdiff
pr = pull-request
dc = diff --cached
dci = icdiff --cached
@lorefnon
lorefnon / 01_utils.scss
Last active October 24, 2015 19:30
One SCSS file to rule them all
// So you have co-workers who love raving about buzzwords like Semantic styles, unobstructive css, BEM etc
// which never made sense?
//
// Drop this into your project, grab some popcorn and hit commit.
//
// Now the screams begin ...
@each $dim in 5, 10, 20 {
@each $attr-key, $attr in (m: margin, p: padding) {
.u-#{$attr-key}#{$dim} { #{$attr}: #{$dim}px; }
@lorefnon
lorefnon / gist:429d86160129c9e6ca32
Created June 17, 2014 14:47
pre-commit hook to check for debugger invocations in ruby source.
echo "\n--"
echo "Checking for debugger calls"
echo "--\n"
for name in `git diff --name-only --cached`
do
echo "Analysing: $name"
cat $name | egrep -n "\b(byebug|binding.pry|debugger)\b" | while read line
do
echo " -> $line"
echo "\n--"
@lorefnon
lorefnon / gist:6483958
Created September 8, 2013 11:18
Entypo Icon font CSS class mapping
.icon {
font-family: 'EntypoRegular';
}
.icon.social {
font-family: 'EntypoSocialRegular';
}
.icon.phone:before { content: '\1F4DE';}
.icon.mobile:before { content: '\1F4F1';}
.icon.mouse:before { content: '\E789';}