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.Attributes exposing (style) | |
import Html.Events exposing (onClick, onMouseDown) | |
import Html exposing (node, text) | |
import Html.App | |
type alias Model = | |
{ color : String | |
, clicks : Int | |
} |
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.Attributes exposing (classList) | |
import Html.Events exposing (onClick, onMouseDown) | |
import Html exposing (node, text) | |
import Html.App | |
type alias Model = | |
{ color : String | |
, clicks : Int | |
} |
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 exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onClick) | |
import Html exposing (node, text) | |
import Html.App | |
type alias Model = | |
{ color : String |
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
149lazy_test.elm:6939 Uncaught Error: Ran into an unknown patch! | |
applyPatch @ lazy_test.elm:6939 | |
applyPatches @ lazy_test.elm:6889 | |
updateIfNeeded @ lazy_test.elm:6277 |
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 | |
= Tasks () | |
| RunTask | |
update : Action -> Model -> (Model, Effects.Effects Action) | |
update action model = | |
case action of | |
RunTask -> | |
(model, sendAsEffect address value Tasks) |
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
sendAsEffect : Signal.Address a -> a -> (() -> b) -> Effects.Effects b | |
sendAsEffect address value action = | |
Signal.send address value | |
|> Effects.task | |
|> Effects.map action | |
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 alias Model tag id err = | |
{ create : String -> List tag -> Task err tag | |
, failAddress : Maybe (Signal.Address err) | |
, remove : tag -> Task err tag | |
, input : Ui.Input.Model | |
, label : tag -> String | |
, tags : List tag | |
, removeable : Bool | |
, id : tag -> id | |
, disabled : Bool |
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 Ext.Date where | |
{-| Utility functions for dates. | |
# Create | |
@docs now, createDate | |
# Querying | |
@docs month, daysInMonth, datesInMonth |
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
require "kemal" | |
require "process" | |
require "redis" | |
require "secure_random" | |
class Action | |
def run | |
end | |
end |
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
AllCops: | |
RunRailsCops: true | |
Style/AccessModifierIndentation: | |
EnforcedStyle: indent | |
Style/AlignHash: | |
Enabled: false | |
Style/AlignParameters: |