- Random with Random.generate Cmd,Generators
- Random with Ports Cmd,Sub,Ports
  
    
      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 exposing (..) | |
| import Html.Attributes as Attrs exposing (..) | |
| import Html.Events exposing (..) | |
| type Msg | |
| = SetPrice 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
    
  
  
    
  | module Main exposing (..) | |
| import Html exposing (..) | |
| import Html.Attributes as Attrs exposing (..) | |
| import Html.Events exposing (..) | |
| type Msg | 
  
    
      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
    
  
  
    
  | <div class="pure-u-1-1 welcome" *ngIf="service.state | isNotAsked"> | |
| <p>Welcome, use the controls above to obtain today's sunset and sunrise times.</p> | |
| </div> | |
| <div class="pure-u-1-1" *ngIf="service.state | isLoading"> | |
| <p class="loading"> | |
| Loading... | |
| </p> | |
| </div> | 
  
    
      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
    
  
  
    
  | export class NotAsked {} | |
| export class Loading {} | |
| export class Faliure<E> { | |
| constructor(private error: E){} | |
| fold(): E { | |
| return this.error; | |
| } | |
| } | |
| export class Success<T> { | |
| constructor(private value: T){} | 
  
    
      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
    
  
  
    
  | <div class="pure-u-1-1" *ngIf="service.state.isLoading"> | |
| <p class="loading"> | |
| Loading... | |
| </p> | |
| </div> | |
| <div class="pure-u-1-1" *ngIf="!service.state.isLoading && !service.state.error && service.state.data"> | |
| <p> | |
| Sunrise: {{ service.state.data.sunrise }}<br> | |
| Sunset: {{ service.state.data.sunset }} | 
  
    
      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
    
  
  
    
  | export interface SunriseState { | |
| isLoading: boolean; | |
| error: string; | |
| data: { | |
| sunrise: string, | |
| sunset: 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
    
  
  
    
  | -- https://ellie-app.com/fMXwpzt7va1/1 | |
| module MouseCoordinates exposing (..) | |
| import Html exposing (Html, div, text, program) | |
| import Html.Attributes exposing (style) | |
| import Html.Events exposing (on) | |
| import Json.Decode as Decode exposing (Decoder, map2, at, int) | |
| -- MODEL | 
  
    
      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 Counter exposing (..) | |
| import Html exposing (..) | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (..) | |
| programParams = | |
| { model = modelo | |
| , view = vista | 
NewerOlder