Skip to content

Instantly share code, notes, and snippets.

View fbrubacher's full-sized avatar

Federico Brubacher fbrubacher

  • Montevideo, Uruguay
View GitHub Profile
def apply(petRepository: PetRepository, contestResultRepository: ContestResultRepository, rules: Rules)
(pet1Id: UUID, pet2Id: UUID)
(implicit ec: ExecutionContext): Future[Either[String, UUID]] = {
val id = java.util.UUID.randomUUID
for {
pet1: Option[Pet] <- petRepository.find(pet1Id)
pet2: Option[Pet] <- petRepository.find(pet2Id)
// this is messy, try to change it to a more functional style at some point
@bishboria
bishboria / springer-free-maths-books.md
Last active June 8, 2024 06:39
Springer made a bunch of books available for free, these were the direct links