Skip to content

Instantly share code, notes, and snippets.

View papucho's full-sized avatar

Fernando Araújo papucho

View GitHub Profile

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 / introrx.md
Created November 2, 2015 23:27 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@papucho
papucho / gist:c877e57c5597e2fa8aad
Created May 27, 2015 16:28
Security Champions
/bin/ls /etc
@papucho
papucho / gulpfile.js
Created May 8, 2014 21:48
Gulpfile for awesome assets pipeline
var gulp = require('gulp');
var sass = require('gulp-ruby-sass');
var prefix = require('gulp-autoprefixer');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var jade = require('gulp-jade');
// FILES PATHS
var jsSrcDir = ['js/app.js','js/**/*.js','js/*/*/*.js'];
var sassSrcDir = ['css/**/*.sass', 'css/*/*.sass'];
@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.