Skip to content

Instantly share code, notes, and snippets.

Patrik Åkerfeldt pakerfeldt

  • Spotify
  • Stockholm, Sweden
Block or report user

Report or block pakerfeldt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pakerfeldt
pakerfeldt / day1a.scala
Last active Dec 7, 2017
AoC 2017 day 1
View day1a.scala
List(91212129)
.map(_.toString)
.flatMap(x => x.toList :+ x.charAt(0))
.sliding(2)
.filter { case first :: second :: _ => first == second}
.foldLeft(0){ case (acc, value :: _) => acc + value.asDigit}
View keybase.md

Keybase proof

I hereby claim:

  • I am pakerfeldt on github.
  • I am pakerfeldt (https://keybase.io/pakerfeldt) on keybase.
  • I have a public key whose fingerprint is 0845 C363 B788 3EFC DF73 0310 AA84 13D6 F8D2 F31E

To claim this, I am signing this object:

You can’t perform that action at this time.