This file contains hidden or 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.App as Html | |
| import Html.Events exposing (..) | |
| import Random exposing (Generator) | |
| import List | |
| users = | |
| [ {name = "one", username = "@one"} | |
| , {name = "two", username = "@two"} | |
| , {name = "three", username = "@three"} |
This file contains hidden or 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 List | |
| import Random | |
| without : Int -> [a] -> [a] | |
| without i arr = | |
| let before = take i arr | |
| after = drop (i+1) arr | |
| in | |
| before ++ after |
This file contains hidden or 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 (Html, text, div) | |
| import Html.App as Html | |
| import Keyboard exposing (..) | |
| import Char exposing (..) | |
| main = | |
| Html.program | |
| { init = init | |
| , view = view | |
| , update = update |
This file contains hidden or 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 (Html, text, div) | |
| import Html.App as Html | |
| import Keyboard exposing (..) | |
| import Char exposing (..) | |
| main = | |
| Html.program | |
| { init = init | |
| , view = view | |
| , update = update |
This file contains hidden or 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 (Html, text, div) | |
| import Html.App as Html | |
| import Window exposing (..) | |
| main = | |
| Html.program | |
| { init = init | |
| , view = view | |
| , update = update | |
| , subscriptions = subscriptions |
This file contains hidden or 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 (Html, text, div) | |
| import Html.App as Html | |
| import Mouse exposing (..) | |
| main = | |
| Html.program | |
| { init = init | |
| , view = view | |
| , update = update | |
| , subscriptions = subscriptions |
This file contains hidden or 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 (Html, text, div) | |
| import Html.App as Html | |
| import Mouse exposing (..) | |
| main = | |
| Html.program | |
| { init = init | |
| , view = view | |
| , update = update | |
| , subscriptions = subscriptions |
This file contains hidden or 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
| module Game (..) where | |
| import Graphics.Element exposing (..) | |
| import Graphics.Collage exposing (..) | |
| import Color exposing (red, blue, gray, green) | |
| import Keyboard | |
| import Window | |
| -- ALIAS |
This file contains hidden or 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
| type Action | |
| = Updated Response | |
| | APIError Error | |
| update : Action -> Model -> ( Model, Effects Action ) | |
| update action model = | |
| case action of | |
| Updated response -> -- do things | |
| APIError error -> | |
| let |
This file contains hidden or 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
| module Main (..) where | |
| import Graphics.Element exposing (..) | |
| import Time exposing (Time, second) | |
| import Effects exposing (Effects) | |
| import Keyboard | |
| type alias DebounceState = | |
| Maybe |