Skip to content

Instantly share code, notes, and snippets.

View gist:6c848c6cd7bd9649571c
### 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 Mar 7, 2014
Base Gulpfile.js
View 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.*'])
View doctrine.php
<?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 Dec 21, 2011
Links from Vex's Web Team's MotherFuckingly Awesome Christmas Book Exchange 2011 - v1
View gist:1507113
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 Jul 29, 2011
Fuckup Call4Paperz
View gist:1114642
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|