Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Typing a lot

Ryan Moelter ryanmoelter

👨‍💻
Typing a lot
View GitHub Profile
@ryanmoelter
ryanmoelter / Day2Part2.kts
Last active Dec 10, 2019
Advent of code 2019
View Day2Part2.kts
/* Run in IntelliJ scratch file */
// AoC 2019, day 2
enum class Operation(val action: (Int, Int) -> Int) {
PLUS({ first, second -> first + second }),
MULTIPLY({ first, second -> first * second }),
UNKNOWN({ _, _ -> throw IllegalArgumentException("No operation specified") })
}
View kebase.md

Keybase proof

I hereby claim:

  • I am ryanmoelter on github.
  • I am moelten (https://keybase.io/moelten) on keybase.
  • I have a public key ASDT2YWncclqGq_HJbw5WNoBR6TZkLfAzUdF_aprwXeUcwo

To claim this, I am signing this object: