Avalanche is an open-source platform for launching highly decentralized applications, financial primitives, and interoperable blockchains.
These are steps for firing up an Avalanche full node on Digital Ocean.
ssh
into a Digital Ocean Ubuntu box
Avalanche is an open-source platform for launching highly decentralized applications, financial primitives, and interoperable blockchains.
These are steps for firing up an Avalanche full node on Digital Ocean.
ssh
into a Digital Ocean Ubuntu box
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |
package main | |
import ( | |
"./binding" | |
"fmt" | |
) | |
func main() { | |
binding.PrintHello() | |
binding.Seed(1) | |
fmt.Println(binding.Random()) |
package akkahttptest | |
import akka.http.Http | |
import akka.stream.ActorFlowMaterializer | |
import akka.actor.ActorSystem | |
import akka.stream.scaladsl.{Sink, Source} | |
import akka.http.model._ | |
object TestClient extends App { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
If your csv doesn't contain escaped newlines then it is pretty easy to do a progressive parsing without putting the whole file into memory. The iteratee library comes with a method search inside play.api.libs.iteratee.Parsing :
def search (needle: Array[Byte]): Enumeratee[Array[Byte], MatchInfo[Array[Byte]]]
which will partition your stream into Matched[Array[Byte]]
and Unmatched[Array[Byte]]
Then you can combine a first iteratee that takes a header and another that will fold into the umatched results. This should look like the following code:
// break at each match and concat unmatches and drop the last received element (the match)
//this runs the dependencies in parallel (undesirable) | |
buildAndRun <<= Seq(addScalaLib, packageDebug in Android, removeScalaLib, startDevice in Android).dependOn, | |
---- vs --- | |
//this runs the dependencies serially (desired) | |
buildAndRun <<= removeScalaLib, | |
buildAndRun <<= buildAndRun dependsOn (startDevice in Android), | |
buildAndRun <<= buildAndRun dependsOn (packageDebug in Android), | |
buildAndRun <<= buildAndRun dependsOn addScalaLib, |