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:
\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.
function main({DOM}) { | |
const h = CycleDOM.h; | |
return { | |
DOM: | |
// click, click, click -> [2.. 4.. 4..] | |
DOM.select('button').events('click'). | |
map(evt => parseInt(evt.target.innerText)). | |
filter(val => val % 2 === 0). | |
<!doctype html> | |
<!-- https://medium.com/@fkrautwald/we-are-not-writing-much-code-5404fb7d39e --> | |
<div id="app"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.all.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/6.0.0/cycle.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-dom/9.0.2/cycle-dom.min.js"></script> | |
<script src="https://rawgit.com/rofrol/c11c3926742b0ce65b87/raw/app.js"></script> |