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
| busy signal | |
| gitcontrol | |
| linter |
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 { Observable } from 'rx' | |
| const { fromEvent } = Observable | |
| fromEvent(document.querySelector('button'), 'click').subscribe(e => console.log(e)); |
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
| $inuit-global-spacing-unit: 8px; | |
| .o-flag { | |
| display: table; | |
| width: 100%; | |
| border-spacing: 0; | |
| } | |
| .o-flag__img, | |
| .o-flag__body { |
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
| @media (prefers-reduced-motion: reduce) { | |
| * { | |
| animation: none !important; | |
| transition: none !important; | |
| } | |
| } | |
| /* good line length */ | |
| p { | |
| max-width: 38em; |
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
| function MyLambdaFunction (foo, bar) { | |
| // MyLambdaFunction logic here | |
| } | |
| exports.myHandler = function(event, context, callback) { | |
| var foo = event.foo; | |
| var bar = event.bar; | |
| var result = MyLambdaFunction (foo, bar); | |
| callback(null, result); |
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
| test('What component aspect are you testing?', assert => { | |
| const message = 'What should the feature do?' | |
| const actual = 'What is the actual output?' | |
| const expected = 'What is the expected output?' | |
| assert.equal(actual, expected, message) | |
| }) | |
| // examples |
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
| <meta name="disabled-adaptations" content="watch"> |
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
| braille = { | |
| ' ': '000000', | |
| 'a': '100000', | |
| 'b': '110000', | |
| 'c': '100100', | |
| 'd': '100110', | |
| 'e': '100010', | |
| 'f': '110100', | |
| 'g': '110110', | |
| 'h': '110010', |
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 nested = [[0, 1],[2, 3], 4] | |
| const flat = = nested.reduce((acc, it) => [...acc, ...it], []); |
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
| # https://medium.com/@francoisromain/getting-started-with-docker-for-local-node-js-development-192ceca18781 | |
| version: "3" | |
| services: | |
| app: | |
| image: node:8 | |
| volumes: | |
| - ./:/home/node/app | |
| working_dir: "/home/node/app" | |
| user: "node" # don't use the root user for security reasons |