(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.
(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.
sudo apt-get install python-pip
or wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
sudo pip install powerline-status
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
> " Always show statusline
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
#!/usr/bash | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
#Create a Desktop Entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman |
object Cached { | |
def create[F[_]: Concurrent, A](fa: F[A], ttl: FiniteDuration)(implicit t: Timer[F]): F[Cached[F, A]] = { | |
sealed trait State | |
case class Value(v: A, ts: Long) extends State | |
case class Updating(d: Deferred[F, Either[Throwable, A]]) extends State | |
case object NoValue extends State | |
def currentTimestamp = t.clock.monotonic(ttl.unit) | |
Ref.of[F, State](NoValue).map { state => | |
new Cached[F, A] { |
let mapleader = " " | |
" :actionlist for all commands | |
set surround | |
set multiple-cursors | |
set history=1000 | |
set visualbell | |
set noerrorbells | |
set incsearch " Highlight search results when typing | |
set hlsearch " Highlight search results | |
set relativenumber " relative numbers |