Skip to content

Instantly share code, notes, and snippets.

View papucho's full-sized avatar

Fernando Araújo papucho

View GitHub Profile
@papucho
papucho / file.html
Created April 18, 2013 20:59
Grayscale filter using SVG+CSS
<img src="http://lorempixel.com/400/200/sports/" alt="" class="fader">

Keybase proof

I hereby claim:

  • I am papucho on github.
  • I am papucho (https://keybase.io/papucho) on keybase.
  • I have a public key whose fingerprint is DA71 C73C A1EB 1EEF 6CDC 670A 115D 6853 D542 037F

To claim this, I am signing this object:

@papucho
papucho / button.css
Created January 18, 2014 20:07
Simple button.
.wrap{
padding: 50px;
background: #161616;
}
.button {
padding: 10px 20px;
border-radius: 3px;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
background-image: linear-gradient(180deg,
rgba(0,0,0,0),
/* C O C O N U T U I C S S */
* {
margin:0;
padding:0;
}
html, body {
height: 100%;
overflow: hidden;
@papucho
papucho / child.html
Created October 4, 2013 09:33
Simple Javascript to allow an iframe to have it's parent css rules.
<script>
var parentStyleSheets = this.parent.document.styleSheets;
var cssString = [];
for (var i = 0, count = parentStyleSheets.length; i < count; i++)
{
var cssRules = parentStyleSheets[i].cssRules;
if(cssRules)
for (var j = 0, countJ = cssRules.length; j < countJ; j++)
cssString.push(cssRules[j].cssText);
}
@papucho
papucho / nginx
Created August 3, 2013 16:41
Nginx default conf
upstream my_app {
server unix:///tmp/my_app.sock;
}
server {
listen *:80;
server_name my_app.com;
access_log /var/log/nginx/my_app-access.log;
@papucho
papucho / mozilla.css
Created July 26, 2013 15:36
Default CSS element rules
el {
display: ;
visibility: ;
float: ;
clear: ;
position: ;
top: ;
right: ;
bottom: ;
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
# Romain Champourlier © softr.li
# Inspired from many gist, recipes on github, tutorials... essentially:
# - https://gist.github.com/548927
# - http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/
# - https://github.com/ricodigo/ricodigo-capistrano-recipes
#
# ONGOING WORK
# MIT License http://www.opensource.org/licenses/mit-license.php
#
# - Intended for Ubuntu 10.04.3
@papucho
papucho / local.sh
Created May 21, 2013 22:15
Tips for server management.
brew install ssh-copy-id
ssh-copy-id user@server