Skip to content

Instantly share code, notes, and snippets.

View turboMaCk's full-sized avatar
🏠
Working from home

Marek Fajkus turboMaCk

🏠
Working from home
View GitHub Profile
@turboMaCk
turboMaCk / hints.elm
Last active September 13, 2016 08:59
Hits for wojcek
import Html exposing (..)
import List exposing (..)
multiSnd : number -> (List (a, number) -> List (a, number))
multiSnd k =
map (\(a, b) -> (a, b*k))
multiSnd3 = multiSnd 3
multiSnd4 = multiSnd 4
@turboMaCk
turboMaCk / rounded-rect.html
Last active August 15, 2016 15:51
d3 rounded rect function
<!doctype html>
<html>
<body>
<svg></svg>
</body>
</html>

Keybase proof

I hereby claim:

  • I am turbomack on github.
  • I am turbo_mack (https://keybase.io/turbo_mack) on keybase.
  • I have a public key ASCPf6tiCpj7lboOodSovR6CKk5R8DgcD0X4ht9Cim0Swwo

To claim this, I am signing this object:

@turboMaCk
turboMaCk / Repos.elm
Created May 28, 2016 17:57
Use ! infix function in update
module Repos exposing (main)
import List
import Html exposing (..)
import Html.App
import Html.Attributes exposing (..)
import Html.Events as Events
import Http
import Json.Decode as Json exposing ((:=))
import Task exposing (..)
@turboMaCk
turboMaCk / Repos.elm
Created May 14, 2016 22:49
Elm 0.17: Events
module Repos exposing (main)
import List
import Html exposing (..)
import Html.App
import Html.Attributes exposing (..)
import Html.Events as Events
import Http
import Json.Decode as Json exposing ((:=))
import Task exposing (..)
@turboMaCk
turboMaCk / Repos.elm
Last active May 14, 2016 22:16
Elm 0.17: Http and Effects
module Repos exposing (main)
import List
import Html exposing (..)
import Html.App
import Html.Attributes exposing (..)
import Html.Events as Events
import Http
import Json.Decode as Json exposing ((:=))
import Task exposing (..)
@turboMaCk
turboMaCk / Repos.elm
Last active May 14, 2016 20:42
Elm 0.17: Views + main + update
module Repos exposing (main)
import List
import Html exposing (..)
import Html.App
import Html.Attributes exposing (..)
import Html.Events as Events
import Http
import Json.Decode as Json exposing ((:=))
import Task exposing (..)
@turboMaCk
turboMaCk / 1_old:Repos.elm
Created May 14, 2016 19:31
Elm 0.17: module meta
module Repos where
import List
import Graphics.Element exposing (..)
import Http
import Json.Decode as Json exposing ((:=))
import Task
import Signal
import Html exposing (..)
import Html.Attributes exposing (..)
@turboMaCk
turboMaCk / 1_old:elm-package.json
Last active May 14, 2016 19:21
Elm 0.17: elm-package.json
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
@turboMaCk
turboMaCk / .nvmrc
Last active September 16, 2017 15:21
Elm-test with gulp
5.5.0