Skip to content

Instantly share code, notes, and snippets.

View TobiasRoland's full-sized avatar
🐚
เ ђคשє ยภς๏שєгє๔ Շђє єՇєгภคɭ ค๒ץรร

Tobias Roland TobiasRoland

🐚
เ ђคשє ยภς๏שєгє๔ Շђє єՇєгภคɭ ค๒ץรร
View GitHub Profile
@TobiasRoland
TobiasRoland / code.json
Created February 14, 2017 12:21
What's this now?
{"some sort of new" : "git feature?"}
@TobiasRoland
TobiasRoland / incoming-gcp-cloud-function-slack-slash-command-example.json
Created January 29, 2020 13:57
Example of request recieved in GCP cloud functions from a slack slash command (as deserialized by npm dependency "safe-json-stringify" due to circular nature of object)
{
"_readableState": {
"objectMode": false,
"highWaterMark": 16384,
"buffer": {
"head": null,
"tail": null,
"length": 0
},
"length": 0,
import WhyIsContravarianceSoHard.{Animal, Cat, Dog, Vet}
object WhyIsContravarianceSoHard extends App {
//why are contravariance so hard
val list: List[Int] = List(1, 2, 3)
class Animal
class Dog(name: String) extends Animal
class Cat(name: String) extends Animal