Reusable dropdown in Elm with parameterized types — part II

 — 

Ever needed to have a dropdown on a form? Or on a configuration page? Maybe multiple dropdowns for different ends with different types? elm-ui is great, but it doesn't offer a primitive for dropdowns. In this guide, you'll build a reusable dropdown and, along the way, you'll learn about parametrized …

Tags:

Elm, elm-ui and the building of a dropdown — Part I

 — 

elm-ui%20dropdown%20blog%20post%20part%20I%2073a7f519f8f74d99884b1d1b993ba7d8/Untitled.png

If you're getting into Elm and still handling CSS files, just thrash them. Really. Go ahead and do it, because in Elm, we have the beautiful Elm-UI. You'll get to write design in a language that's actually understandable. However, Elm-UI probably still doesn't have everything you might need. One simple …

Tags:

Bypass firewalls and routers with reverse tunnels

 — 

If you regularly work with remote, screenless machines, you probably regularly work with SSH too. SSH is great to access a machine, but what if it sits behind a router or firewall and you can't change the rules? That's what this is article is about: reverse tunnels!

The typical SSH …

Tags:

How to get unique values in an Elm list?

 — 

You do it like this:

unique : List a -> List a
unique l =
    let
        incUnique : a -> List a -> List a
        intUnique elem lst =
            case List.member elem lst of
                True -> lst
               False -> elem :: lst
    in
        List.foldr incUnique [] l

There you go. Have fun!


Oh, still here? Let’s see what …

Tags: