Skip to content

Instantly share code, notes, and snippets.

View brunoborges's full-sized avatar
🏠
Working from home, as always

Bruno Borges brunoborges

🏠
Working from home, as always
View GitHub Profile
@endymuhardin
endymuhardin / create-poster.sh
Created June 27, 2011 10:42
Convert ogv to mp4 with H264 encoding, create poster, upload to server
ffmpeg -r 1 -t 1 -vframes 1 -i input-file.mp4 output-file.png
@brunoborges
brunoborges / DSLWicket.scala
Created July 27, 2011 15:22
Scala DSL for Wicket
package code.webapp
import scala.collection.JavaConversions.seqAsJavaList
import org.apache.wicket.behavior.AttributeAppender
import org.apache.wicket.datetime.markup.html.form.DateTextField
import org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
import org.apache.wicket.markup.html.basic.{ MultiLineLabel, Label }
import org.apache.wicket.markup.html.form.{ TextField, TextArea, SubmitLink, RadioGroup, Radio, PasswordTextField, FormComponent, Form, DropDownChoice, CheckGroup, Button }
import org.apache.wicket.markup.html.link.{ Link, BookmarkablePageLink }
import org.apache.wicket.markup.html.link.ExternalLink
@brunoborges
brunoborges / MeuEvento.scala
Created July 27, 2011 17:27
Usage of DSLWicket
package code.pages
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation
import org.apache.wicket.markup.html.form.Button
import org.apache.wicket.markup.html.form.Form
import org.apache.wicket.markup.html.WebMarkupContainer
import org.apache.wicket.spring.injection.annot.SpringBean
import org.springframework.stereotype.Service
import code.model.Evento
import code.services.EventosService
@timyates
timyates / abacus.groovy
Last active July 18, 2020 14:17
A GroovyFX version of the Canoo JavaFX Abacus tutorial part IV
@Grab('org.codehaus.groovyfx:groovyfx:0.3.1')
import static groovyx.javafx.GroovyFX.start
final int ROW_COUNT = 10
final int COL_COUNT = 10
final int RADIUS = 20
final int DIAMETER = 2 * RADIUS
final int MOVE_WAY = 8 * DIAMETER
final int WIDTH = COL_COUNT * DIAMETER + MOVE_WAY
final int HEIGHT = ROW_COUNT * DIAMETER
@danveloper
danveloper / MainController.java
Created April 13, 2015 20:38
Spring Boot Hello World JSON No Annotations
package app;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.GenericBeanDefinition;
import org.springframework.boot.SpringApplication;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.http.server.ServletServerHttpResponse;
import org.springframework.web.servlet.ModelAndView;
@brunoborges
brunoborges / data.csv
Last active September 19, 2017 23:00
Schooner Bay Apartments
Extraction Unit Available Price
04/15/17 552 4/25/2017 3688
04/15/17 562 5/4/2017 3693
04/15/17 304 5/5/2017 3693
04/15/17 592 4/27/2017 3716
04/15/17 360 5/19/2017 3737
04/15/17 476 4/15/2017 3796
04/15/17 544 5/18/2017 3856
04/15/17 304 5/5/2017 3713
04/15/17 552 4/25/2017 3718