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
@szabba
szabba / .gitignore
Last active September 5, 2016 14:49
Elm BDD API sketch
elm-stuff/
-module(ring).
-export([start/3, member_init/1]).
% RING SETUP
start(N, M, Msg) ->
Pids = spawnN(N, { expecting, M, messages }),
initMembers(Pids),
withHead(
Pids,
import Html as H exposing (Html)
import Html.Events as HE
type alias Model =
{ data : String
, moreData : String
}
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
@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 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 / .gitignore
Last active June 2, 2016 13:15 — forked from sgillis/Component.elm
Elm message
elm-stuff/
@szabba
szabba / .gitignore
Last active June 1, 2016 09:41 — forked from maxhoffmann/Main.elm
Token HTTP Authentication in Elm
elm-stuff/
import Html exposing (Html)
import Html.App as App
import Http
import Task exposing (Task)
main : Program Never
main =
App.program
{ init = init
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