Skip to content

Instantly share code, notes, and snippets.

Henrik Härkönen heharkon

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am heharkon on github.
  • I am heharkon (https://keybase.io/heharkon) on keybase.
  • I have a public key whose fingerprint is F3E0 C8CD E9DB 22B7 7C4A EFDB E14E BC31 284E 1E94

To claim this, I am signing this object:

@heharkon
heharkon / W3Navbar.scala
Last active Dec 20, 2018
Liftweb snippet for rendering sitemap as navbar with W3.CSS
View W3Navbar.scala
import net.liftweb.http._
import net.liftweb.sitemap.MenuItem
import scala.xml.NodeSeq
class W3Navbar {
def ifSelectedColor(kid: MenuItem, color: String): String = {
kid.current match {
case true => color
You can’t perform that action at this time.