Skip to content

Instantly share code, notes, and snippets.

View phongngtuan's full-sized avatar

Phong Nguyen phongngtuan

View GitHub Profile
@phongngtuan
phongngtuan / day-2.scala
Created October 4, 2018 13:07 — forked from calvinlfer/day-2.scala
Functional Scala: Toronto Edition
// Copyright(C) 2018 - John A. De Goes. All rights reserved.
package net.degoes.abstractions
import scalaz._
import Scalaz._
import scala.language.higherKinds
object algebra {
@phongngtuan
phongngtuan / day-1.scala
Created October 4, 2018 13:07 — forked from calvinlfer/day-1.scala
Functional Scala: Toronto edition
// Copyright(C) 2018 - John A. De Goes. All rights reserved.
package net.degoes.essentials
import java.time.{Instant, ZonedDateTime}
import scala.util.Try
object types {
type ??? = Nothing
@phongngtuan
phongngtuan / day-3.scala
Created October 4, 2018 13:06 — forked from calvinlfer/day-3.scala
Functional Scala: Toronto edition
// Copyright(C) 2018 - John A. De Goes. All rights reserved.
package net.degoes.effects
import scalaz.zio._
import scalaz.zio.console._
import scala.annotation.tailrec
import scala.concurrent.duration._