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 '> ' |
/* | |
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.* |
module Main exposing (..) | |
import Html exposing (text) | |
import Json.Decode as Decode exposing (..) | |
type FormField | |
= InputField Input | |
| DecimalField Decimal | |
| SpecialField String |
// ==UserScript== | |
// @name Fixed to Absolute Important | |
// @namespace https://greasyfork.org/en/scripts/369282-fixed-to-absolute-important | |
// @description Stops elements from following you as you scroll down the page | |
// @version 1 | |
// ==/UserScript== | |
// https://gist.github.com/rofrol/a52a36102daf59eeef91c715c0ae402b | |
// Based on https://alisdair.mcdiarmid.org/kill-sticky-headers/ |
<-- | |
Screen Text 0 0 0 | |
Screen Background 255 255 255 | |
Popup Text 255 255 255 | |
Popup Background 0 0 0 | |
255 255 255 | |
0 0 178 | |
0 166 0 |