Skip to content

Instantly share code, notes, and snippets.

View dmao's full-sized avatar

Didier Mahaux dmao

View GitHub Profile
@dmao
dmao / complement-colour
Created June 12, 2013 11:21
Complement coulour in Sass
.complement {
background-color: complement($bf-orange);
}
@dmao
dmao / google-analytics
Created June 12, 2013 11:01
google-analytics asynchrone
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
@dmao
dmao / previous directory
Created June 11, 2013 10:25
Go to previous directory
cd -