The default JDK store is in:
<JDK>\lib\security\cacerts
Add a certificate with keytool:
<JDK>\bin\keytool.exe -importcert -file my-cert.cer -alias 'My cert' -keystore <JDK>\lib\security\cacerts -storepass "changeit"
package ca.venasse.hooks | |
import org.scalajs.dom.html | |
import slinky.core.facade.ReactRef | |
import scala.scalajs.js | |
import scala.scalajs.js.JSConverters._ | |
import scala.scalajs.js.annotation.JSImport | |
import scala.scalajs.js.| |
#!/bin/sh | |
# Inspired by https://gist.github.com/daktak/f887352d564b54f9e529404cc0eb60d5 | |
# Inspired by https://gist.github.com/jpouellet/d8cd0eb8589a5b9bf0c53a28fc530369 | |
ip() { qvm-prefs -g -- "$1" ip; } | |
netvm() { qvm-prefs -g -- "$1" netvm; } | |
forward() { | |
local from_domain=$1 | |
local to_domain=$2 |
Sparkathon - Developing Spark Structured Streaming Apps in Scala
groupBy
or groupByKey
aggregations in a batch structured queryobject OneWayImplicits extends App { | |
//outside implicits visible, but T is not visible inside | |
case class Outwards[T](value: T) extends AnyVal | |
//outside implicits invisible, T is visible inside | |
case class Inwards[T](value: T) extends AnyVal | |
implicit def outwardsFromT[T](implicit t: T): Outwards[T] = Outwards(t) | |
implicit def tFromInwards[T](implicit inw: Inwards[T]): T = inw.value |
Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x