$ time ./node_modules/.bin/elm-make src/Main.elm --output dist/index.js --debug Success! Compiled 219 modules. Successfully generated dist/index.js ./node_modules/.bin/elm-make src/Main.elm --output dist/index.js --debug 173.55s user 40.82s system 160% cpu 2:13.39 total
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"autoLogin": true, | |
"allowRandomValues" : false | |
}, | |
"profile": { | |
"attrs": { | |
"name": "Gian Maria" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Home": "Home", | |
"Matches": "Matches", | |
"Sign up": "Sign up", | |
"My Bets": "My Bets", | |
"Account": "Account", | |
"More": "More", | |
"Welcome back!": "Welcome back!", | |
"No results": "No results", | |
"We sent you a code": "We sent you a code", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Convert JSON to valid Elm data structure (record)"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Futura-BT-normal'; | |
src: url( 'http://www.magdaazab.it/assets/fonts/futura/futura_book_bt/FUTURAN.TTF' ); | |
} | |
@font-face { | |
font-family: 'Futura-BT-bold'; | |
src: url( 'http://www.magdaazab.it/assets/fonts/futura/futura_heavy_bt/FUTURAH.TTF' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Flatten arbitrary nested arrays. | |
* | |
* @arg the array to flatten | |
* @return array with depth 1, empty array for non-arrays | |
*/ | |
const flatten = (arrayOfArrays = []) => { | |
if (arrayOfArrays.length === 0) { | |
return [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (beginnerProgram, div, input, text) | |
import Html.Events exposing (onInput) | |
main = | |
beginnerProgram | |
{ model = | |
{ name = "" | |
} | |
, view = view |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.scalakata._ | |
@instrument class Playground { | |
// help | |
def isSorted[A](as: Array[A], ordered: (A, A) => Boolean): Boolean = { | |
def go(n: Int): Boolean = | |
if (n >= as.length-1) true | |
else if (!ordered(as(n), as(n+1))) false | |
else go(n+1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (text, div) | |
import String | |
import List | |
contains c s = | |
-- we should use String.contains | |
(List.length (String.indexes c s)) > 0 | |
main = | |
div [] |
NewerOlder