Skip to content

Instantly share code, notes, and snippets.

View lucastex's full-sized avatar

Lucas Frare Teixeira lucastex

View GitHub Profile
@lucastex
lucastex / gist:636589
Created October 20, 2010 15:07
As 15 coisas que um homem sempre QUIS ouvir. Mas sua mulher NUNCA vai falar:
As 15 coisas que um homem sempre QUIS ouvir. Mas sua mulher NUNCA vai falar:
01. Nossa! Você está tão estressado hoje! Deixa eu fazer sexo oral pra te relaxar.
02. Tem comida demais em casa. Vamos levar só cerveja.
03. Eu acho que você deveria passar a noite com seus amigos... Você merece isso..
04. Que peido incrível! peida de novo!
private buildObjectList(List assets, S3Service s3) {
def objs = []
assets.each {a ->
S3Object obj = new S3Object()
if (a.localPath) {
File f = new File(a.localPath)
obj.setDataInputFile(f)
obj.setContentLength(f.size())
}
//TODO support completely custom acls, need to persist xml or some kind of model
import java.util.zip.*
import org.tmatesoft.svn.core.internal.io.dav.*
import org.tmatesoft.svn.core.wc.*
import org.tmatesoft.svn.core.*
@Grab(group='com.svnkit', module='svnkit', version='1.1.0')
def setup(projectName) {
File.metaClass.plus = { String c -> new File(delegate, c) }
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
class Pessoa {
String nome
String nit
static constraints = {
nome()
nit(nit:true)
}
}
class Pessoa {
String nome
String nit
static constraints = {
nome()
nit(nit:[formatted:true])
}
}
class Empresa {
String razaoSocial
String cnpj
static constraints = {
razaoSocial()
cnpj(cnpj:[formatted:true])
}
}
class Empresa {
String razaoSocial
String cnpj
static constraints = {
razaoSocial()
cnpj(cnpj:true)
}
}
class Pessoa {
String nome
String cpf
static constraints = {
nome()
cpf(cpf:[formatted:true])
}
}
class Pessoa {
String nome
String cpf
static constraints = {
nome()
cpf(cpf:true)
}
}