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
<head> | |
<title>quadrados</title> | |
</head> | |
<body> | |
{{> quadrados}} | |
</body> | |
<template name="quadrados"> | |
{{#each quadrados}} |
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
Page Cache: | |
- Quando todos os usuários verão exatamente a mesma página, ao mesmo tempo, e quando é uma página que não muda muito | |
Action Cache: | |
- Quando houver código para ser executado antes da action (ex.: Autenticação) | |
- Porém os resultados das páginas serão os mesmos | |
Fragment Cache: | |
- Quando a página for diferente para cada usuário | |
- Porém partes da página forem a mesma para diversos usuários |
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
Verifying that +rchaves is my blockchain ID. https://onename.com/rchaves |
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
module Main where | |
import Task | |
import Console exposing (..) | |
import Graphics.Element exposing (Element) | |
import ElmTest exposing (..) | |
import Example | |
tests : Test |
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
type alias Model = | |
{ tasks : List Task | |
, field : String | |
, uid : Int | |
, visibility : String | |
} | |
type alias Task = | |
{ description : String | |
, completed : Bool |
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
update : Action -> Control -> Control | |
update actionFor control = | |
case actionFor of | |
ActionForControl action -> updateControl action control | |
_ -> control | |
updateControl : ControlAction -> Control -> Control | |
updateControl action model = | |
case action of | |
ChangeVisibility visibility -> |
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
main : Signal Html | |
main = | |
Signal.map (view actions.address) (model getStorage) |
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
type alias Task = | |
{ description : String | |
, completed : Bool | |
, editing : Bool | |
, id : Int | |
} | |
type alias TaskList = | |
List Task |
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
port setData : Signal Data.Model | |
incommingData : Signal Action.Action | |
incommingData = | |
Signal.map UpdateData setData | |
-- App starting | |
app : StartApp.App 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
main = | |
ul [class "grocery-list"] | |
[ li [] [text "Pamplemousse"] | |
, li [] [text "Ananas"] | |
, li [] [text "Jus d'orange"] | |
, li [] [text "Boeuf"] | |
, li [] [text "Soupe du jour"] | |
, li [] [text "Camembert"] | |
, li [] [text "Jacques Cousteau"] | |
, li [] [text "Baguette"] |