I hereby claim:
- I am kossal on github.
- I am ck_wilson (https://keybase.io/ck_wilson) on keybase.
- I have a public key ASAAmvylqo3tEj_-rcpy3yTuaisulb6UhwbsqmoCfTw_xAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
object App extends zio.App { | |
val salute: ZIO[Console, IOException, Unit] = putStrLn("Hello! What's your name?") | |
def respond(name: String): ZIO[Console, IOException, Unit] = | |
putStrLn(s"Hello $name! It's nice to finally meet you") | |
val action: ZIO[Console, IOException, Unit] = for { | |
_ <- salute | |
name <- getStrLn |
// succeed returns a succesful ZIO and fail a failing ZIO | |
ZIO.succeed("Hello"): Task[String] | |
ZIO.fail(new Throwable("Failed")): Task[String] | |
// Lift computations to ZIO | |
// Any failure will be captured as a Throwable | |
ZIO.effect(5 / 10): Task[Double] | |
// Lift effects that don't fail | |
ZIO.effectTotal(println("This should not fail")): UIO[Unit] |
case class ZIO[E, R, A](run: R => Either[E, A]) | |
val getStrLn = ZIO[Console, IOException, Unit](run: console => { | |
try { | |
// This function doesn't actually exist but you get my point | |
Right(console.readLine) | |
} catch { | |
case e: IOException => Left(e) | |
} | |
}) |
package app | |
import zio._ | |
import zio.console._ | |
import java.io.IOException | |
object App extends zio.App { | |
def respond(name: String): ZIO[Console, IOException, Unit] = |
At Deal Engine, we strive on automating and optimizing processes in an industry that has been stagnant for several decades - the travel industry.
We solve these and more pains, working with leisure and corporate travelers, along with airlines and service providers. We are on a mission to become the most efficient and transparent online travel agency in the world.
Even though we are a small team we are currently operating in more than 10 countries, managing and optimizing more than 1 billion dollars in flight tickets.
library(tabulizer) | |
library(purrr) | |
url <- "https://www.gob.mx/cms/uploads/attachment/file/544266/Tabla_casos_positivos_COVID-19_resultado_InDRE_2020.03.30.pdf" | |
# Cada página es una lista | |
infectados_ss <- extract_tables(url, encoding = "UTF-8") | |
# Las primeras 5 filas son los nombres de las columnas | |
# Los uno y filtro de la lista original | |
columnas <- sapply(asinfectados_ss[[1]][1:5]) |