- 300000ms = 5 minute session duration (durSession)
- You can derive these or I'll get you the data:
description = I will get these from Sonja
fixImagePath = "" or "img/x.png"
name = "Stop Signal"
slug = "stopsignal"
icon = "stopsignal.png
module Main exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
type alias Model = Int | |
type Msg = NoOp |
-- UNBOUND TYPE VARIABLES ---------------------------------------- Messaging.elm | |
Type `Msg` must declare its use of type variable a | |
12|>type Msg | |
13|> = MessagesResp (WebData a) | |
You probably need to change the declaration like this: | |
type Msg a = ... |
# cat ~/.ssh/id_rsa.pub | ssh root@$1 'cat >> .ssh/authorized_keys' | |
# ssh-copy-id root@$1 | |
ssh root@$1 'curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
cat ~/.vimrc | ssh root@$1 'cat > .vimrc' | |
cat ~/.tmux.conf | ssh root@$1 'cat > .tmux.conf' |
Recreate the rainbow: http://codepen.io/terabaud/pen/GWvJem
c = a.getContext("2d")
w = a.width = (innerWidth/30)|0
h = a.height = (innerHeight/30)|0
z = 0
function L(t){
with(Math)
for(y0=h;y0--;)
module Decoder exposing (..) | |
import Json.Decode exposing (Decoder, string, int, float, dict, list, bool, map, value, decodeValue, decodeString) | |
import Json.Decode.Pipeline exposing (decode, required, optional, hardcoded) | |
maybe : String -> Decoder a -> Decoder (Maybe a -> b) -> Decoder b | |
maybe name decoder = | |
optional name (map Just decoder) Nothing |
# This is a small program for sweet pea. Lala, I love you a lot. | |
secret = ['o', 'y', ' ', 'u', 'r', 'a', ' ', 'e', 'y', 'm', 'd', ' ', 'r', 'a', 'e', 'j', 'l', 'e', 'n', 'i'] | |
kiss = "" | |
for love in range(len(secret)): | |
if love % 2: | |
kiss += secret[love] | |
kiss += secret[love-1] |
npm install -g elm
)elm-repl
on the command lineThank the creator of Elm and BDFL, Evan Czaplicki.
I would highly recommend reading the guide and writing elm code before watching any videos.
#!/bin/bash | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && | |
sudo apt-get install -y nodejs && | |
# Install yarn | |
sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && | |
echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && | |
sudo apt-get update && sudo apt-get install yarn && |