Skip to content

Instantly share code, notes, and snippets.


Mark Bolusmjak z5h

View GitHub Profile
z5h / Example.elm
Last active Nov 23, 2020
Elm focusout focusin
View Example.elm
import Browser.Dom
import Element exposing (Element)
import Element.Background as Background
import Element.Border as Border
import Element.Font as Font
import Element.Input as Input
import Html
import Html.Attributes
import Html.Events
import Json.Decode as Decode
z5h / Main.elm
Created Feb 1, 2020
transition animations
View Main.elm
module Main exposing (..)
import Browser
import Html exposing (Html, button, div, span, text)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Timeline exposing (Timeline)
View ListSet.elm
module Base.ListSet exposing
( Set
, diff
, empty
, filter
, foldl
, foldr
, fromList
, group
, insert
z5h / Example.elm
Last active Dec 20, 2018
autofocus in Elm that actually works
View Example.elm
input [
focus ( (RequiresFocus_ Nothing)
View Main.elm
import Stopwatch
import Html exposing (..)
import Html.App as App
import Html.Attributes exposing (..)
import Html.Events exposing (..)
main: Program Never
main =
{ init = init
View TimeApp.elm
module TimeApp ( start, Config, App ) where
{-| This module helps you start your application in a typical Elm workflow.
It assumes you are following [the Elm Architecture][arch] and using
[elm-effects][]. From there it will wire everything up for you!
**Be sure to [read the Elm Architecture tutorial][arch] to learn how this all
z5h / Swap.elm
Created Jul 24, 2015
Elm rendering focus loss
View Swap.elm
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
type Action
= NoOp
| EditEntry Entry String
type alias Entry =

Keybase proof

I hereby claim:

  • I am z5h on github.
  • I am bolusmjak ( on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

z5h / update.js
Last active Aug 29, 2015
Get the result of updating a Javascript object while treating it as immutable.
View update.js
* Get the result of updating `obj` with `props`, while treating `obj`
* as immutable.
var update = function(obj, props){
var keys = Object.keys(props),
changed = false,