This file contains hidden or 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
| ---context:global # following code refers to global config | |
| assign turnInstructionMode = 1 # %turnInstructionMode% | Mode for the generated turn instructions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=oruxmaps-style] | |
| assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set to "false" to avoid generating special turning instructions for roundabouts | boolean | |
| assign turnInstructionCatchingRange = 4 | |
| # generate a bike route | |
| assign validForBikes = false | |
| assign validForCars = true | |
| assign validForFoot = false |
This file contains hidden or 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
| ---context:global # following code refers to global config | |
| assign turnInstructionMode = 1 # %turnInstructionMode% | Mode for the generated turn instructions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=oruxmaps-style] | |
| assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set to "false" to avoid generating special turning instructions for roundabouts | boolean | |
| assign turnInstructionCatchingRange = 4 | |
| # generate a bike route | |
| assign validForBikes = false | |
| assign validForCars = true | |
| assign validForFoot = false |
This file contains hidden or 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
| ---context:global # following code refers to global config | |
| assign turnInstructionMode = 1 # %turnInstructionMode% | Mode for the generated turn instructions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=oruxmaps-style] | |
| assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set to "false" to avoid generating special turning instructions for roundabouts | boolean | |
| assign turnInstructionCatchingRange = 4 | |
| # generate a bike route | |
| assign validForBikes = false | |
| assign validForCars = true | |
| assign validForFoot = false |
This file contains hidden or 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
| module Part = OfferPart; | |
| module Button = OfferButton; | |
| module Styles = OfferStyles; | |
| module Form = OfferForm; | |
| module PartButton = { | |
| let component = ReasonReact.statelessComponent(__MODULE__); | |
| let make = | |
| ( | |
| ~actions: array(Action.t), |
This file contains hidden or 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
| // @noflow | |
| const { compile, format } = require("reasonably-typed"); | |
| const fs = require("fs"); | |
| const COMPONENTS = [ | |
| "Button", | |
| "Card", | |
| "Center", | |
| "Checkbox", |
This file contains hidden or 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
| Error: node_modules/redux-persist/lib/createPersistoid.js.flow:38 | |
| 38: timeIterator = setInterval(processNextKey, throttle) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ IntervalID. This type is incompatible with | |
| 23: let timeIterator: ?number = null | |
| ^^^^^^ number | |
| Error: node_modules/redux-persist/lib/createPersistoid.js.flow:46 | |
| 46: if (timeIterator) clearInterval(timeIterator) | |
| ^^^^^^^^^^^^ number. This type is incompatible with the expected param type of | |
| 732: declare function clearInterval(intervalId?: IntervalID): void; |
This file contains hidden or 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
| const WithColor = ({ children }) => { | |
| const color = /* advanced compuation as fuck */ | |
| return children(color); | |
| } | |
| // nasz Component ktory korzysta z render propsow | |
| const Component = () => { | |
| render ( | |
| <WithColor> |
This file contains hidden or 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
| const Component = (props) => { | |
| return <div props1={props.props1} props2={props.props2}>{props.children}</div> | |
| } | |
| // lub alternatywnie | |
| const Component = ({ children, ...props}) => { | |
| return <div {...props}>{props.children}</div> | |
| } | |
| // no i nasz HOC - higher order component, przyjmuje style i component i zwraca nam nowy component | |
| // easy |
This file contains hidden or 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
| let | |
| matherfuckingComplicated = ... | |
| a = 1 | |
| in | |
| if True then | |
| a | |
| else | |
| matherfuckingComplicated |
NewerOlder