Skip to content

Instantly share code, notes, and snippets.

View rodrigobarona's full-sized avatar
🏠
Working from home

Rodrigo Barona rodrigobarona

🏠
Working from home
View GitHub Profile
@rodrigobarona
rodrigobarona / gist:5187553
Created March 18, 2013 14:30
Diferente Google Analitycs Codes by domain
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
if (window.location.host === 'test.appspot.com'){
_gaq.push(['_setAccount', 'UA--XXXXXXX-X']);
}
else if (window.location.host === 'www.domain.com'){
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
}
@rodrigobarona
rodrigobarona / gist:5187732
Created March 18, 2013 14:56
Facebook Meta Tags - Open Graph
<meta property="og:url" content="http://www.domain.com" />
<meta property="og:title" content="My Title" />
<meta property="og:description" content="My Description." />
<meta property="og:image" content="my-image.jpg" />
@rodrigobarona
rodrigobarona / gist:5187745
Last active December 15, 2015 02:29
Internet Explorer Pinned Site (Meta Tag) for IE 9 / IE 10
<!-- IE10 Pinned Tile -->
<meta name="msapplication-TileColor" content="#202020"/>
<meta name="msapplication-TileImage" content="/static/images/favtile-144px.png"/>
<!-- IE9/IE10 Pinned Site -->
<link rel="shortcut icon" type="image/x-icon" href="/static/images/favicon.ico" />
<meta name="application-name" content="Name" />
<meta name="msapplication-tooltip" content="Tooltip" />
<meta name="msapplication-navbutton-color" content="#1EAFFF" />
<meta name="msapplication-tap-highlight" content="no" />
@rodrigobarona
rodrigobarona / gist:5187752
Created March 18, 2013 14:58
Meta Tag - Force latest IE rendering engine (even in intranet) & Chrome Frame
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Smart Banner -->
<!-- Get ID from http://j.mp/XUmOng -->
<meta name="apple-itunes-app" content="app-id=XXXXXXXXX"/>
@rodrigobarona
rodrigobarona / gist:5317658
Created April 5, 2013 08:43
Metadata - Data Updated / Created
<meta name="DC.Date.updated" content="2013-04-04" scheme="W3CDTF" />
+info: http://gsitecrawler.com/en/faq/info/date-meta-tag/
.sticky {
position: -webkit-sticky;
position: -moz-sticky;
position: -o-sticky;
position: -ms-sticky;
position: sticky;
}
@rodrigobarona
rodrigobarona / gist:5547769
Created May 9, 2013 14:25
Rinning SASS on Chrome DevTools (see on video http://youtu.be/kVSo4buDAEE?t=18m1s)
On Chrome Canary Settings:
Experiments -> Support for Sass
General -> Enable source maps
General -> Auto-reload CSS upon Sass save
On Terminal:
$ sass --watch --scss --sourcemap sass:css
@rodrigobarona
rodrigobarona / gist:5712718
Created June 5, 2013 09:25
Cookies Legal EU
Our website uses delicious cookies to improve your experience. We'll assume you're ok with that.
(by http://etchapps.com/)
<?php
/**
* A simple Facebook PHP example.
*
* - This is not a "Facebook SDK".
* - This example uses Curl, Hash, JSON, Session extensions.
* - This does not use the JavaScript SDK, nor the cookie set by it.
* - This works with Canvas, Page Tabs with IFrames, the Registration Plugin
* and with any other flow which uses the signed_request.