Skip to content

Instantly share code, notes, and snippets.

View kogupta's full-sized avatar
💻
Yak Shaving

Kohinoor Gupta kogupta

💻
Yak Shaving
View GitHub Profile
@kogupta
kogupta / AliceInAggregatorLand.scala
Created March 8, 2017 10:59 — forked from johnynek/AliceInAggregatorLand.scala
A REPL Example of using Aggregators in scala
/**
* To get started:
* git clone https://github.com/twitter/algebird
* cd algebird
* ./sbt algebird-core/console
*/
/**
* Let's get some data. Here is Alice in Wonderland, line by line
*/

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

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
@kogupta
kogupta / Apache Kafka on Ubuntu.txt
Last active June 20, 2019 09:14 — forked from SemenMartynov/Apache Kafka on Ubuntu.txt
kafka installation on ubuntu 16.04
Install and configure Apache Kafka on Ubuntu 16.04
1. Install Java (JDK8)::
Add the repository
$ sudo add-apt-repository -y ppa:webupd8team/java
Update the metadata of the new repository and install JDK