Skip to content

Instantly share code, notes, and snippets.

View jouderianjr's full-sized avatar
🍕
:o

Jouderian Nobre Junior jouderianjr

🍕
:o
View GitHub Profile
This file has been truncated, but you can view the full file.
"items_game"
{
"game_info"
{
"first_valid_class" "2"
"last_valid_class" "3"
"first_valid_item_slot" "0"
"last_valid_item_slot" "54"
"num_item_presets" "4"
"max_num_stickers" "5"

You will generate colors using a combination of 2 types, Tone and Brightness, and the function you should use is Palette.color.

Example:

Palette.color Palette.toneDanger Palette.brightnessMiddle
console.log("Hello victor");
// Creating a variable and setting a string to it;
var person = "Victor";
console.log(person);
// Changing the value of the variable
person = "Jouderian";
module Main exposing (main)
import Browser exposing (sandbox)
import Button
import Element exposing (..)
import Input
type Msg
= NoOp
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/fzf'
" Syntax highlighting
Plug 'andys8/vim-elm-syntax', { 'for': ['elm'] }
module Explorer.Utils exposing (story, storyList, storyWithModel)
import Element exposing (layout, spacing, wrappedRow)
story ( title, content, note ) =
( title
, \_ -> layout [] content
, note
)

You can use Ellie to "test" the code, changing only the result function and adding your extra code

Extra documentation to use this as reference:

Data Modeling exercises

1 - Represent a package containing:

  • barcode
----------------------------------------------------------------------
-- Type
type alias Package =
{ id : String
, deliverySlot : DeliverySlot
, deliveryAddress : Address
, pickupAddress : Address
, status : String
, tenantId : String
----------------------------------------------------------------------
-- Type
type alias Package =
{ id : String
, deliverySlot : DeliverySlot
, deliveryAddress : Address
, pickupAddress : Address
, status : String
, tenantId : String