This short howto is intended to be a mental note for myself so I don't have
to spend all the wasted hours that took me to figure out howto get landslide
up and running and beautifully displaying LaTeX on the slides. If you find it
useful, good for you ;-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import spark.streaming.StreamingContext._ | |
| import spark.streaming.{Seconds, StreamingContext} | |
| import spark.SparkContext._ | |
| import spark.storage.StorageLevel | |
| import spark.streaming.examples.twitter.TwitterInputDStream | |
| import com.twitter.algebird.HyperLogLog._ | |
| import com.twitter.algebird._ | |
| /** | |
| * Example of using HyperLogLog monoid from Twitter's Algebird together with Spark Streaming's |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In https://github.com/ekmett/lens/wiki/Derivation, we see some types for | |
| composition of compositions: (.).(.), (.).(.).(.), and so on. Let's prove that | |
| the type of (.).(.) is (a -> b) -> (c -> d -> a) -> c -> d -> b, as stated in | |
| the site. We'll stick with prefix notation, meaning that we want the type of | |
| (.)(.)(.). | |
| Recall the type of composition. This should be intuitive: | |
| (.) :: (b -> c) -> (a -> b) -> a -> c [1] |