Skip to content

Instantly share code, notes, and snippets.

View CraftyFella's full-sized avatar

Dave Craft CraftyFella

View GitHub Profile
@thefringeninja
thefringeninja / Dockerfile
Last active April 24, 2019 14:56
Dockerized Pulumi
FROM pulumi/pulumi as build
RUN curl -L https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz | tar xvz \
&& mv linux-amd64/helm /usr/bin/helm \
&& chmod +x /usr/bin/helm \
&& rm -rf linux-amd64
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o user \
@vdparikh
vdparikh / main.go
Created November 9, 2017 19:06
GoLang Verify/Generate JWT Token
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strings"
"time"

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 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