Skip to content

Instantly share code, notes, and snippets.

View bernardodiasc's full-sized avatar

Bernardo Dias bernardodiasc

View GitHub Profile
@bernardodiasc
bernardodiasc / gist:6201879
Created August 10, 2013 19:46
Meta Tags SEO
<!-- The Metas Output -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="content-language" content="pt-BR" />
<meta name="viewport" content="width=device-width" />
<meta name="robots" content="index,follow" />
<meta name="generator" content="{website-generator}" />
<meta name="author" content="{website-name}" />
<meta name="copyright" content="© {this-year} {website-name}" />
// No media query is the first breakpoint.
// Updates for small tablets and smartphones in landscape
@smalltablet: ~"(min-width: 500px)";
// Updates for tablets in portrait
@tablet: ~"(min-width: 768px)";
// Updates for tablets in landscape and desktop
@desktop: ~"(min-width: 1024px)";
/**
*
* Don't break scale on iPad rotate.
*
* By default iPad re-zooms the page when the device orientation changes.
*
* The heuristics here do not work always; our page got zoomed in
* though it should be max zoomed out.
*
* This snippet fixes the situation so that you can still zoom in, but when
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var data = [],
html = '',
slice = Array.prototype.slice,
navigation = document.querySelectorAll('.navigation')[0];
// store useful values in the data array
[].forEach.call(document.querySelectorAll('section'), function(section){
data.push({
'filename': section.dataset.filename,
'h1': section.querySelectorAll('h1'),
.a, .b, .c, .d, .z {
display: block;
position: relative;
}
.z {
width: 100%;
max-width: 1600px;
margin: 0 auto;
}
1.
2.
1. Untitled Section
2. Untitled Section
4. Untitled Section
5. Untitled Section
5.
6.
7. Top News
1. News Analysis
<h1>Sun 15 Mar, 2015</h1>
<h2>Git Branching, Merging and Rebasing</h2>
<ul>
<li><a href="http://www.git-scm.com/book/es-ni/v1/Git-Branching">http://www.git-scm.com/book/es-ni/v1/Git-Branching</a></li>
<li><a href="http://www.git-tower.com/blog/understanding-rebase-merge-in-git/">http://www.git-tower.com/blog/understanding-rebase-merge-in-git/</a></li>
<li><a href="https://help.github.com/articles/using-git-rebase/">https://help.github.com/articles/using-git-rebase/</a></li>
</ul>