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
| import Html exposing (text, h1) | |
| main = | |
| h1 [ ] [ text "Hello world!" ] |
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
| import Graphics.Element exposing (..) | |
| import Window | |
| area : (Int, Int) -> Int | |
| area (w,h) = | |
| w * h | |
| windowArea : Signal Int | |
| windowArea = |
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
| import Html exposing (..) | |
| import Html.Events exposing (..) | |
| import Html.Attributes exposing (..) | |
| view : Signal.Address String -> String -> Html | |
| view address message = | |
| div [] | |
| [ input | |
| [ type' "string", |
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
| """ | |
| Exports Issues from a specified repository to a CSV file | |
| Uses basic authentication (Github username + password) to retrieve Issues | |
| from a repository that username has access to. | |
| INSTUCTIONS: | |
| 1. pip install requests | |
| 2. replace GITHUB_USER with your username | |
| 3. replace GITHUB_PASSWORD with your auth token (settings -> personal access tokens) | |
| 4. run as "python export_issues.py" | |
| """ |
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
| /src | |
| /components | |
| /containers | |
| /actions | |
| /reducers | |
| /sagas |
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
| /src | |
| /components | |
| PureComponent1 | |
| index.js | |
| index.spec.js | |
| style.css | |
| PureComponent2 | |
| index.js | |
| index.spec.js | |
| style.css |
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
| /src | |
| /components | |
| /Component1 | |
| index.js <— may be a pure component or a component wrapped in a container, the consumer doesn’t care anyway | |
| index.spec.js | |
| /Component2 | |
| /Component3 | |
| /reducers | |
| index.js | |
| /Reducer1 |
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
| /* | |
| Replacing an item in an array without mutating it | |
| */ | |
| const old = [1, 2, 3, 4]; | |
| const new = Object.assign([], old, {0: 1000}); | |
| console.log(new); | |
| // [1000, 2, 3, 4] |
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
| /* | |
| Instead of | |
| require('../../blah/stories.js'); | |
| require('../../blah/blah/stories.js'); | |
| ... | |
| */ | |
| const req = require.context('../', true, /stories\.js$/); | |
| function loadStories() { |
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
| export { default as CircleAdd } from './icons/CircleAdd'; | |
| export { default as TagRemove } from './icons/TagRemove'; |
OlderNewer