Skip to content

Instantly share code, notes, and snippets.

View pedronauck's full-sized avatar
:electron:

Pedro Nauck pedronauck

:electron:
View GitHub Profile
@pedronauck
pedronauck / text-legibility.css
Last active April 29, 2016 22:59 — forked from tableless/gist:5571702
To enhance the legibility of texts in browsers
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 02:17 — forked from zenorocha/README.md
Sample file for 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 02:17 — forked from zenorocha/gist:3924349
Media queries examples
/* 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 15:09
Terminal commands

Comandos Gerais

Clonar um Repositório

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

Verificar status

$ git status
@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 18:50
EnquireJS base script
var query_960 = 'screen and (min-width: 45em)';
enquire.register($query_960, {
deferSetup : true,
setup : function() {
// load content via AJAX
},
match : function() {
// show sidebar
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"
];
@pedronauck
pedronauck / closure.js
Last active December 31, 2015 16:59
A closure function template
'use strict';
(function(window, document) {
// Your starting point. Enjoy the ride!
})(window, document);

Namespace

var App = App || {}:

Module Pattern

var myModule = (function () {