Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:

Pedro Nauck pedronauck

:electron:
View GitHub Profile
@pedronauck
pedronauck / text-legibility.css
Last active Apr 29, 2016 — forked from tableless/gist:5571702
To enhance the legibility of texts in browsers
View text-legibility.css
body {
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-ms-font-smoothing: antialiased;
font-smoothing: antialiased;
-moz-text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
-ms-text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
@pedronauck
pedronauck / README.md
Created May 14, 2013 — forked from zenorocha/README.md
Sample file for README.md
View README.md

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@pedronauck
pedronauck / media-queries.css
Created May 14, 2013 — forked from zenorocha/gist:3924349
Media queries examples
View media-queries.css
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@pedronauck
pedronauck / git.md
Created May 14, 2013
Terminal commands
View git.md

Comandos Gerais

Clonar um Repositório

$ git clone 'nome-do-repositório'

Verificar status

$ git status
View _compass-retina-sprites.scss
@mixin all-retina-sprites($map, $map2x) {
@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 1.5dppx) {
$base-class: sprite-map-name($map);
.#{$base-class}-all-retina-sprites {
@pedronauck
pedronauck / enquire.js
Created May 16, 2013
EnquireJS base script
View enquire.js
var query_960 = 'screen and (min-width: 45em)';
enquire.register($query_960, {
deferSetup : true,
setup : function() {
// load content via AJAX
},
match : function() {
// show sidebar
View Gruntfile.js
module.exports = function(grunt) {
var config = {};
// Set all the tasks you want to load.
var tasks = [
, "grunt-contrib-concat"
, "grunt-contrib-uglify"
, "grunt-contrib-jshint"
, "grunt-contrib-watch"
];
View grunt_plugins.md
@pedronauck
pedronauck / closure.js
Last active Dec 31, 2015
A closure function template
View closure.js
'use strict';
(function(window, document) {
// Your starting point. Enjoy the ride!
})(window, document);
View modules.md

Namespace

var App = App || {}:

Module Pattern

var myModule = (function () {