Skip to content

Instantly share code, notes, and snippets.

Lucas Cavalcanti lucascs

  • Nubank
Block or report user

Report or block lucascs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lucascs / boleto.clj
Created Feb 26, 2014
Caelum Stella em Clojure
View boleto.clj
(ns accounts.adapters.boleto
(:import (
Datas Sacado Emissor Boleto
bancos.Santander transformer.GeradorDeBoleto)))
(defn generate []
(let [datas (-> (Datas/novasDatas)
(.comDocumento 15 2 2014)
(.comProcessamento 15 2 2014)
(.comVencimento 17 2 2014))
public class CidLogicResult extends DefaultLogicResult {
private MutableRequest request;
public CidLogicResult(...., MutableRequest request) {
this.request = request;
View 1_basics.rb
p "Hello World"
View server.rb
post '/junit-results' do
result = JSON.parse(
passes = result['stats']['passes']
failures = result['stats']['failures'] + '/../../target/artifacts/reports/javascript.xml', 'w') do |f|
xml =
suite = xml.testsuite :errors => 0, :failures => failures, :tests => passes, :name => "javascript.tests" do
result['results'].each do |tc|
unless tc.nil?
tc['specs'].each do |s|
lucascs /
Created Nov 10, 2010
ignore blank request parameters
public class HackedParametersProvider extends OgnlParametersProvider {
public HackedParametersProvider(...., HttpServletRequest request, ...) {
super(....., new HackedRequest(request), ....);
lucascs /
Created Nov 23, 2010
How to change JSP to Freemarker in VRaptor.
public class FreemarkerPathResolver extends DefaultPathResolver {
//delegate constructor
protected String getPrefix() {
return "/WEB-INF/freemarker/";
public @interface DisplayTag {
String value();
lucascs /
Created Dec 20, 2010
simple hypermedia example
public class Basket implements HypermediaResource {
private int id;
private String name;
public void configureRelations(RelationBuilder builder) {
lucascs /
Created Dec 22, 2010
support for VRaptor2's @out annotation
public @interface Out {
public class TenantRoutesParser implements RoutesParser {
private final RoutesParser parser;
public TenantRoutesParser(RoutesParser parser) {
this.parser = parser;
You can’t perform that action at this time.