Skip to content

Instantly share code, notes, and snippets.

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

Pedro Menezes pedrofelipe

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pedrofelipe on github.
  • I am pedrofelipe (https://keybase.io/pedrofelipe) on keybase.
  • I have a public key ASAS-KCQw8-HEuvnEg5vz6E1n4eUuriVRkxeZUen8mKCnwo

To claim this, I am signing this object:

$ git reset HEAD~1
$ git status
$ git reset ./
@pedrofelipe
pedrofelipe / brazilian-states
Created June 11, 2015 22:00
Estados do Brasil em <select>
<select>
<option selected disabled>Estado</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espirito Santo</option>
@pedrofelipe
pedrofelipe / setting-up-my-environment-os-x
Last active August 29, 2015 14:04
Setting up my environment (OS X)
// set tomorrow night theme (terminal)
https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/OS%20X%20Terminal/Tomorrow%20Night.terminal
// install oh-my-zsh
curl -L http://install.ohmyz.sh | sh
// install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
brew doctor
@pedrofelipe
pedrofelipe / gist:4093db012e8d99e76fcf
Last active August 29, 2015 14:03
Getting started a new front-end project
// update npm packages
sudo npm update -g npm
// install web app generator (bootstrap + sass)
sudo npm install -g generator-webapp
// create project folder
mkdir project && cd $_
// run web app generator
@pedrofelipe
pedrofelipe / gist:849985d6e13744ae7a1d
Created July 10, 2014 22:11
Update each dependency in package.json to the latest version
$ npm install -g npm-check-updates
$ npm-check-updates -u
/* Programação */
#programacao {
background-color: #fffaf3; }
.proximo { overflow: hidden; }
.proximo .jogo {
height: 320px;
background-color: #fef2e0; }
@pedrofelipe
pedrofelipe / gist:9261630
Created February 27, 2014 23:07
Media query para suportar telas Retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
/* Tudo o que for Retina aqui */
}
# Bloqueia acesso ao xmlrpc.php
<Files ./xmlrpc.php>
Order Allow,Deny
Deny from all
</Files>
@pedrofelipe
pedrofelipe / gist:7901996
Created December 10, 2013 23:01
PageSpeed active filters.
convert_jpeg_to_progressive,rewrite_images,inline_preview_images,resize_mobile_images,rewrite_style_attributes,insert_dns_prefetch,collapse_whitespace,remove_comments,outline_css,prioritize_critical_css,convert_jpeg_to_webp,insert_image_dimensions