docker pull docker pull giantswarm/helloworld
docker pull busybox:ubuntu-14.04
docker pull busybox
docker pull ghost
git clone https://github.com/giantswarm/giantswarm-firstapp-nodejs && make
git clone https://github.com/giantswarm/helloworld
class AvroUnpackedSourceTest extends Specification with ScalaCheck { | |
"Running M/R jobs on Avro data" should { | |
"work for unpacked sources" in { | |
val prop = Prop.forAll(MyAvroRecordGenerators.myAvroGen) { (record: MyAvroRecord) => | |
var res: Double = 0.0 | |
val tempFolder = new File(System.getProperty("java.io.tmpdir")) | |
val tempInput = new File(tempFolder, "input") | |
tempInput.mkdirs |
import reactivemongo.core.commands._ | |
import reactivemongo.bson._ | |
import reactivemongo.bson.DefaultBSONHandlers._ | |
import reactivemongo.bson.BSONInteger | |
import reactivemongo.bson.BSONString | |
import scala.Some | |
// { listDatabases: 1 } | |
/* | |
listDatabases returns a document for each database |
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
.
##VGG16 model for Keras
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
theory Scratch | |
imports Main | |
begin | |
fun insert :: "'a::linorder ⇒ 'a list ⇒ 'a list" where | |
"insert x [] = [x]" | | |
"insert x (y # ys) = (if x ≤ y then x # y # ys else y # insert x ys)" | |
inductive sorted :: "'a::linorder list ⇒ bool" where | |
empty: "sorted []" | |
Copyright © 2016-2018 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
# perform a fresh install of Ubuntu 17.10 | |
# upgrade the kernel to v4.13.10 | |
mkdir ~/kernel-v4.13.10 | |
cd ~/kernel-v4.13.10 | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
sudo dpkg -i *.deb |
#!/usr/bin/env bash | |
# This script require root privileges | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
# Parse ARGS | |
POSITIONAL=() |