I hereby claim:
- I am ivanopagano on github.
- I am ivanopagano (https://keybase.io/ivanopagano) on keybase.
- I have a public key whose fingerprint is B69F 549F 2B42 DB94 2BD3 4749 0754 4458 C605 E71A
To claim this, I am signing this object:
package patmat | |
/* | |
* This file should be used to generate an easy visualization of huffman trees implemented | |
* during the course of the Coursera "Principles of Functional Programming" class, held by prof.M.Odersky. | |
* | |
* It's intended as an aid to the students. | |
* Take notice that you need to have access to the course material, so it's almost useless for any other purpose. | |
* | |
* To correctly compile you need to have the patmat.Huffman object visible in your class-path. |
import scalax.io._ | |
import scalax.file._ | |
import scalax.file.defaultfs._ | |
import scalax.file.LinkOption.NoFollowLinks | |
import scalax.file.PathMatcher.IsDirectory | |
object Counts { | |
type Counter = Map[String, Int] | |
package org.iainhull.akka | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.event.Logging | |
import akka.pattern.ask | |
import akka.util.Timeout | |
import akka.persistence.{PersistentView, AtLeastOnceDelivery, PersistentActor} |
package it.pagoda5b; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App { |
import java.util.*; | |
public class Joiner { | |
public static void main(String[] args) { | |
System.out.println(String.join("\n", Arrays.asList(args))); | |
System.out.println(String.join("\n", testArgs())); | |
} |
import fj.* | |
import fj.data.* | |
import static LiftingMiaClasse.* | |
class UsaClasse { | |
//ho importato staticamente i metodi di lifting a funzione per una sintassi piu' scorrevole | |
public static void usa() { | |
Validation<String, Risultato> risultato = faiQuesto() |
package omdb.client; | |
/** | |
* Created by Ivano Pagano on 09/02/16. | |
* | |
* Espone i valori presenti nella risposta json delle API | |
*/ | |
public interface OpenMovie { | |
public String title(); | |
public String year(); |
I hereby claim:
To claim this, I am signing this object:
The policy is keep-majority
, new instances are started one by one, on redeploy newest instances are downed first (YOUNGEST_FIRST
)
N1
, N2
, N3
N+
)N+
is acked by all the nodes, so the Leader (L
) is about to set the node to UP//refers to http://eed3si9n.com/herding-cats/stacking-future-and-either.html | |
def isFriends1(user1: Long, user2: Long) | |
(implicit ec: ExecutionContext): Future[Either[Error, Boolean]] = | |
for { | |
a <- followers(user1) | |
b <- followers(user2) | |
} yield for { | |
x <- a.right | |
y <- b.right |