This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Exercise { | |
sealed trait InvoiceType | |
case object Approved extends InvoiceType | |
case object UnApproved extends InvoiceType | |
type Money = Double | |
type FundingFacilityId = String | |
case class Invoice(`type`: InvoiceType, amount: Money) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.getquill.sources.finagle.mysql | |
import com.twitter.util.Future | |
import io.getquill.FinagleMysqlSourceConfig | |
import io.getquill.naming.NamingStrategy | |
class ConfigFinagleMysqlSource[N <: NamingStrategy](config: FinagleMysqlSourceConfig[N]) | |
extends FinagleMysqlSource[N](config) { | |
def transaction[T](f: FinagleMysqlSource[N] => Future[T]) = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.getquill.sources.jdbc | |
import java.sql.{ Connection, PreparedStatement, ResultSet } | |
import com.typesafe.scalalogging.Logger | |
import io.getquill.JdbcSourceConfig | |
import io.getquill.naming.NamingStrategy | |
import io.getquill.sources.BindedStatementBuilder | |
import io.getquill.sources.sql.SqlSource | |
import io.getquill.sources.sql.idiom.SqlIdiom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object GoogleService { | |
sealed trait Mensagem | |
case class Buscar(url: String) extends Mensagem | |
case class Resultado(conteudo: String) extends Mensagem | |
implicit val timeout = Timeout(2 seconds) | |
class Buscador extends Actor { | |
def buscar(url: String) = // crawleia a internet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static br.com.caelum.vraptor.util.collections.Filters.hasAnnotation; | |
import static com.google.common.collect.Iterables.any; | |
import static java.util.Arrays.asList; | |
import java.lang.annotation.Annotation; | |
import java.util.ArrayList; | |
import java.util.List; | |
import br.com.caelum.vraptor.InterceptionException; | |
import br.com.caelum.vraptor.Intercepts; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.simpledev.springhibernate.dao; | |
import java.util.List; | |
import br.com.simpledev.springhibernate.model.Carro; | |
public interface CarroDao { | |
List<Carro> lista(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.simpledev.struts2; | |
import static org.junit.Assert.assertFalse; | |
import static org.mockito.Mockito.when; | |
import java.util.Collections; | |
import java.util.List; | |
import org.junit.Before; | |
import org.junit.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.concurrent5.service; | |
import java.util.Random; | |
public class RandomService { | |
private final String name; | |
public RandomService(final String name) { | |
this.name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application> | |
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> | |
</application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.simpledev.spring.controller; | |
import static org.springframework.web.bind.annotation.RequestMethod.GET; | |
import static org.springframework.web.bind.annotation.RequestMethod.POST; | |
import static org.springframework.web.bind.annotation.RequestMethod.PUT; | |
import java.util.List; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; |
NewerOlder