Skip to content

Instantly share code, notes, and snippets.

@psrinuhp
psrinuhp / install_spark_centos7.sh
Created March 23, 2018 15:10 — forked from darcyliu/install_spark_centos7.sh
Install Spark on CentOS 7
#!/bin/bash
# Install Spark on CentOS 7
yum install java -y
java -version
yum install wget -y
wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz
tar xvf scala-2.11.7.tgz
sudo mv scala-2.11.7 /usr/lib
sudo ln -s /usr/lib/scala-2.11.7 /usr/lib/scala
@psrinuhp
psrinuhp / bq_schema.json
Created March 9, 2020 16:11
Big Query Schema
[
{
"mode": "NULLABLE",
"name": "visitorId",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "visitNumber",
"type": "INTEGER"
@psrinuhp
psrinuhp / iterm2-solarized.md
Created September 8, 2020 10:42 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

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
@psrinuhp
psrinuhp / BIGDATA_HIVE_Syntax.md
Created August 9, 2021 05:48 — forked from kzhangkzhang/BIGDATA_HIVE_Syntax.md
Hive Syntax Cheat Sheet

Hive Syntax Cheat Sheet

General rule

  • interchangeable constructs
  • hive is case sensitive
  • secmicolon to terminate statements

Hive Data Types