Skip to content

Instantly share code, notes, and snippets.

View szabba's full-sized avatar

Karol Marcjan szabba

  • Zielona Góra, Poland
View GitHub Profile
module Button exposing ( Button, new, view, onClick )
import Html exposing ( Html, Attribute )
import Html.Attributes as Attributes
import Html.Events as Events
import Time exposing ( Time )
import Platform.Cmd.Extra as XCmd
import Embedding exposing ( Embedding, OpaqueUpdate )
import Html
import Html.App as App
import Html.Attributes as Attributes
import Html.Events as Events
import Json.Decode as Json
import String
main =
App.beginnerProgram
import Html exposing (Html)
import Html.App as App
import Http
import Task exposing (Task)
main : Program Never
main =
App.program
{ init = init
@szabba
szabba / .gitignore
Last active June 1, 2016 09:41 — forked from maxhoffmann/Main.elm
Token HTTP Authentication in Elm
elm-stuff/
@szabba
szabba / .gitignore
Last active June 2, 2016 13:15 — forked from sgillis/Component.elm
Elm message
elm-stuff/
import Html exposing (..)
import Html.Events exposing (..)
import Html.Attributes exposing (..)
import Html.App as App
main : Program Never
main =
App.beginnerProgram
{ model = init
@szabba
szabba / Main.elm
Last active June 9, 2016 23:05
Elm WebGL -- nothing gets rendered without AnimationFrame being involved.
module Main exposing (main)
import Math.Vector3 as Vec3 exposing (Vec3)
import Html as H exposing (Html)
import Html.App as App
import Html.Attributes as HA
import Time
import WebGL
import AnimationFrame
import Date exposing (Date)
import Html as H exposing (Html)
import Html.App as App
import Html.Events as HE
import Result
main =
App.beginnerProgram
{ model = init
import Html as H exposing (Html)
import Html.Events as HE
type alias Model =
{ data : String
, moreData : String
}
-module(ring).
-export([start/3, member_init/1]).
% RING SETUP
start(N, M, Msg) ->
Pids = spawnN(N, { expecting, M, messages }),
initMembers(Pids),
withHead(
Pids,