Skip to content

Instantly share code, notes, and snippets.

View jvoigtlaender's full-sized avatar

Janis Voigtländer jvoigtlaender

View GitHub Profile
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 April 4, 2016 16:10
print signal graph from within Elm runtime
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 August 29, 2015 14:23
0.14 version of 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 June 23, 2015 13:35
0.15 version of 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 / gist:ac988f88ee4ccf4998d8
Last active August 29, 2015 14:23
Elm-Kurs Dockerfile
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
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 [email protected]