Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am esampaio on github.
* I am esampaio (https://keybase.io/esampaio) on keybase.
* I have a public key whose fingerprint is 2797 EB13 A9BE 6C31 5CB7 FB01 BC4D 5848 3708 1B77
To claim this, I am signing this object:
@esampaio
esampaio / gulpfile.js
Created March 7, 2014 11:37
Base Gulpfile.js
var gulp = require('gulp');
var clean = require('gulp-clean');
var gutil = require('gulp-util');
var coffee = require('gulp-coffee');
var sass = require('gulp-ruby-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('fonts', function() {
return gulp.src(['bower_components/font-awesome/fonts/fontawesome-webfont.*'])
@esampaio
esampaio / doctrine.php
Created December 18, 2013 11:48
Doctrine issues
<?php
$queryBuilder = $repository->createQueryBuilder('r')
->addSelect('eb.name AS brandName')
->addSelect('ea.name AS attributeSetName')
->addSelect('et.name AS entityTypeName')
->leftJoin('r.entityBrand', 'eb')
->leftJoin('r.eavAttributeSet', 'ea')
->leftJoin('r.entityType', 'et')
->addGroupBy('r.id')
@esampaio
esampaio / gist:1507113
Created December 21, 2011 18:31
Links from Vex's Web Team's MotherFuckingly Awesome Christmas Book Exchange 2011 - v1
Eduardo - http://amzn.com/w/32N99W91GA626
Hélio - http://amzn.to/sdnYtJ
Suga - http://ow.ly/86Oj7
Danilo - http://amzn.com/w/273L0ITRM85JV
Otavio - http://amzn.com/w/GZW8H6AOZONH
Guilherme - http://amzn.com/w/2M8E4LNY4FR8P
Vinicius - http://amzn.com/w/3DCAHIYA51X0Y
+-----------+----------+---------+
| Nome | Comprou? | Chegou? |
@esampaio
esampaio / gist:1114642
Created July 29, 2011 20:19
Fuckup Call4Paperz
require 'rubygems'
require 'mechanize'
user = 'blablcssa'
email = '@bla.com'
pass = 'blabla'
for i in 1..3 do
a = Mechanize.new
a.get('http://call4paperz.com/users/sign_up') do |page|