This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput, onClick) | |
main = | |
Html.beginnerProgram { model = Model "" "", view = view, update = update } | |
type alias Model = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING! totally untested, I have only compiled the code! :) | |
package json | |
import collection.immutable.Map | |
import scalaz.{\/, MonadPlus} | |
import scalaz.\/._ | |
import scalaz.std.vector._ | |
import scalaz.std.map._ | |
import scalaz.std.list._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.danneu.result | |
class State <T> (var target: T, var tip: String? = null) { | |
override fun toString() = "[State tip=$tip]" | |
} | |
typealias ResultState <T> = Result<State<T>, String> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.danneu.msgpack | |
import org.msgpack.core.MessagePack | |
import org.msgpack.core.MessagePacker | |
import org.msgpack.core.MessageUnpacker | |
import org.msgpack.value.ValueType | |
import java.math.BigInteger | |
// DEMO: Encode <-> Decode roundtrip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MZP ˇˇ ∏ @ ∫ ¥ Õ!∏LÕ!êêThis program must be run under Win32 | |
$7 PE L ^B* ‡ éÅ " Ï/ @ @ † ù | |