To nie jest style guide, więc można za pewne ładniej to napisać. Poradnik ma zwięźle pokazać działanie JSX.
JSX to jakby HTML. Składnia XML, ale zmieszany z javascriptem:
module Main exposing (..) | |
import Html exposing (text) | |
import Json.Decode as Decode exposing (..) | |
type FormField | |
= InputField Input | |
| DecimalField Decimal | |
| SpecialField String |
/* | |
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
Your solution should be a link to a gist on gist.github.com with your implementation. | |
When writing this code, you can use any language you're comfortable with. The code must be well tested and documented if necessary, and in general please treat the quality of the code as if it was ready to ship to production. | |
Try to avoid using language defined methods like Ruby's Array#flatten.* |
\set QUIET 1 | |
\pset null '(null)' | |
\pset linestyle unicode | |
\pset border 2 | |
\timing | |
\set ON_ERROR_ROLLBACK interactive | |
\set HISTFILE ~/.psql_history- :HOST - :DBNAME | |
\set HISTSIZE 2000 | |
\set PROMPT1 '%n@%/[%M:%>] # ' | |
\set PROMPT2 '> ' |
\set QUIET 1 | |
\pset null '(null)' | |
\pset linestyle unicode | |
\pset border 2 | |
\timing | |
\set ON_ERROR_ROLLBACK interactive | |
\set HISTFILE ~/.psql_history- :HOST - :DBNAME | |
\set HISTSIZE 2000 | |
\set PROMPT1 '%n@%/[%M:%>] # ' | |
\set PROMPT2 '> ' |
target |
linter-elm-make
Always Compile Main: Yes
You can have the main paths set per project with file linter-elm-make.json
and content like:
{
"mainPaths": [
"src/elm/Main.elm"
]
[package] | |
name = "rust-async-qotd" | |
version = "0.1.0" | |
authors = ["Gökberk Yaltıraklı <[email protected]>"] | |
[dependencies] | |
tokio = { git = "https://github.com/tokio-rs/tokio" } | |
rand = "0.3" | |
[[bin]] |
Forked from Frederik Krautwald's Pen Cycle.js demo.
A Pen by Roman Frołow on CodePen.