Skip to content

Instantly share code, notes, and snippets.

Avatar

Janis Voigtländer jvoigtlaender

View GitHub Profile
View Main.elm
module Main where
import Signal
import Time exposing (Time, millisecond)
import String
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Effects exposing (Never, Effects)
@jvoigtlaender
jvoigtlaender / gist:1a7f469670c29866dafb
Last active Apr 4, 2016
print signal graph from within Elm runtime
View gist:1a7f469670c29866dafb
function printGraph(queue)
{
queue = queue.slice(0);
console.log('digraph { //');
var seen = [];
while (queue.length > 0)
{
var node = queue.pop();
var id = node.id;
@jvoigtlaender
jvoigtlaender / Lib.elm
Last active Aug 29, 2015
0.14 version of Lib.elm
View Lib.elm
import Set
import Array
import Text
import Time
import Mouse
import Keyboard
import Graphics.Collage
import Graphics.Element
import Graphics.Input
import Html
@jvoigtlaender
jvoigtlaender / Lib.elm
Created Jun 23, 2015
0.15 version of Lib.elm
View Lib.elm
import Set
import Array
import Text
import Time
import Mouse
import Keyboard
import Graphics.Collage
import Graphics.Element
import Graphics.Input
import Html
View gist:ac988f88ee4ccf4998d8
FROM jvoigtlaender/elm:0.15.1
RUN mkdir /cached && \
cd /cached && \
elm-package install --yes Apanatshka/elm-signal-extra && \
elm-package install --yes elm-lang/core && \
elm-package install --yes evancz/elm-html && \
elm-package install --yes jwmerrill/elm-animation-frame && \
elm-package install --yes jystic/elm-font-awesome && \
elm-make
View gist:2491f0d9833702e3a64e
FROM debian:jessie
RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl build-essential git ca-certificates
RUN mkdir /nodejs && curl http://nodejs.org/dist/v0.10.33/node-v0.10.33-linux-x64.tar.gz | tar xvzf - -C /nodejs --strip-components=1
ENV PATH $PATH:/nodejs/bin
# FROM codenvy/angular-yeoman
# RUN sudo npm install --global elm@1.5.1