Skip to content

Instantly share code, notes, and snippets.

Per Wiklander PerWiklander

Block or report user

Report or block PerWiklander

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
View keybase.md

Keybase proof

I hereby claim:

  • I am perwiklander on github.
  • I am perwiklander (https://keybase.io/perwiklander) on keybase.
  • I have a public key ASDRshJJr1jeKLkVHin6yB-Vu7bvkdrCvqZVRJ-qarjV8go

To claim this, I am signing this object:

View ClassSet.scala
package scalatags.Text
import scalatags.Text.Aggregate
import scalatags.Text.attrs._
trait ClassSet extends Aggregate {
final def compositeAttr[A](k: Attr, f: (A, List[A]) => A, e: => Modifier) = new CompositeAttr(k, f, e)
val classSwitch = compositeAttr[String](cls, (h, t) => (h::t).mkString(" ").trim, cls:="")
@PerWiklander
PerWiklander / ItemSelector.scala
Created Jun 24, 2015
Traits to simplify making scalajs-react widgets
View ItemSelector.scala
import scalaz.effect.IO
trait ItemSelector[ItemType] extends StatefulWidget[
ItemSelectorProps[ItemType],
ItemSelectorState[ItemType]
]
{
override def initialState = P => ItemSelectorState(P.selected)
}
case class ItemSelectorProps[ItemType](
@PerWiklander
PerWiklander / Dispatcher.scala
Last active Feb 21, 2018
Facebook Flux implementation for scalajs-react
View Dispatcher.scala
package flux
import utils.Loggable
import scala.concurrent.Future
class Dispatcher[Payload <: AnyRef] extends Loggable {
type Callback = (Payload) => Unit
View StringArrayColumnPrinter.java
package biz.wiklander.tools;
import java.util.Arrays;
public class StringArrayColumnPrinter {
public static void main(final String[] args) {
final String[] words = new String[] {
"one",
"duck",
You can’t perform that action at this time.