Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import scalaz._,Scalaz._ | |
import akka.scalaz.futures._ | |
import akka.dispatch._ | |
import System.{currentTimeMillis => now} | |
object Pi extends App { | |
val nrOfElements = 10000 | |
val nrOfMessages = 10000 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)
I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.
A functor is something that supports map
.
package org.apache.wicket.examples.compref; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Locale; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.apache.wicket.Component; |
WebClient client = WebClient.builder() | |
.baseUrl("http://" + args[0]) | |
.build(); | |
Flux | |
.generate(AtomicLong::new, (state, sink) -> { | |
long i = state.getAndIncrement(); | |
sink.next(i); | |
return state; | |
}) |
WITHOUT DEBUG SYMBOLS DWARF | |
arguments( | |
'-H:+PreserveFramePointer', | |
'--no-server', | |
'--no-fallback', | |
'--enable-all-security-services', | |
'--report-unsupported-elements-at-runtime' | |
) |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.