Skip to content

Instantly share code, notes, and snippets.

Petre Damoc pdamoc

Block or report user

Report or block pdamoc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Print2.elm
module Print2 exposing (..)
import Html exposing (div, button, text, body, iframe)
import Html.Attributes as A
import Html.App as App
import Html.Events exposing (onClick)
import Svg exposing (..)
import Svg.Attributes exposing (..)
import VirtualDom exposing (..)
import String
@pdamoc
pdamoc / Component.elm
Last active Jun 27, 2016
Counter through JS
View Component.elm
module Component exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Ports exposing (..)
-- MODEL
@pdamoc
pdamoc / Sam.elm
Created Jun 21, 2016
update to valid data
View Sam.elm
import Html exposing (..)
import Html.App as App
import Html.Events exposing (on, onClick)
import Html.Attributes exposing (style)
import Mouse exposing (Position)
import Json.Decode as Json
-- MODEL
@pdamoc
pdamoc / Sam.elm
Created Jun 21, 2016
Another SAM approach
View Sam.elm
import Html exposing (..)
import Html.App as App
import Html.Events exposing (on, onClick)
import Html.Attributes exposing (style)
import Mouse exposing (Position)
import Json.Decode as Json
-- MODEL
@pdamoc
pdamoc / Main2.elm
Created Jun 17, 2016
SAM with AnimationFrame
View Main2.elm
module Main exposing (..)
import Html exposing (..)
import Html.App as App
import Html.Events exposing (onClick)
import AnimationFrame
import Time exposing (Time, second)
-- MODEL
@pdamoc
pdamoc / Main.elm
Last active Jun 17, 2016
SAM in Elm
View Main.elm
module Main exposing (..)
import Html exposing (..)
import Html.App as App
import Html.Events exposing (onClick)
import Time
-- MODEL
@pdamoc
pdamoc / RandomGif.elm
Last active May 24, 2016
Chain Html.App.map Error - Start from WidgetList.elm
View RandomGif.elm
module RandomGif exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Http
import Json.Decode as Json
import Task
@pdamoc
pdamoc / Component.elm
Created May 20, 2016
Counters through JS
View Component.elm
module Component exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Ports exposing (..)
-- MODEL
@pdamoc
pdamoc / RelativeMouse.elm
Created May 20, 2016
Relative Mouse Position
View RelativeMouse.elm
import Html exposing (..)
import Html.App as App
import Html.Attributes exposing (..)
import Mouse exposing (Position)
import Window exposing (Size)
import Task
-- MODEL
plottingSize = Size 600 400
@pdamoc
pdamoc / Counter.elm
Last active May 19, 2016
Widget Union
View Counter.elm
module Counter exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
-- MODEL
type alias Model = Int
You can’t perform that action at this time.