- approachability (be simple, expressive)
- decoupling (create bridges, swim lanes)
- empowering (inspire confidence)
- feedback (listen, collaborate, ask why)
- inclusivity (accessibility, empathy, appropriate tone)
- impact (exposure to diverse ideas)
- prototyping (facilitate consumption, deliver standards)
- resilience (compose isolated modules, enforce with tooling)
π£
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
| :root { | |
| --violation-color: red; /* used for clear issues */ | |
| --warning-color: orange; /* used for potential issues we should look into */ | |
| } | |
| /* IMAGES */ | |
| /* | |
| * Lazy-Loaded Images Check | |
| * ==== |
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
| console.log('Starting instagram..'); | |
| const fetchData = (url) => { | |
| return fetch(url) | |
| .then(data => data.json()) | |
| .then(json => { | |
| if (json) { | |
| return Promise.resolve(json); | |
| } else { | |
| return Promise.reject(Error('json is undefined!')); |
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 makeRequest = async () => { | |
| const value1 = await promise1() | |
| const value2 = await promise2(value1) | |
| return promise3(value1, value2) | |
| } |
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 makeRequest = async () => { | |
| const data = await getJSON() | |
| if (data.needsAnotherRequest) { | |
| const moreData = await makeAnotherRequest(data) | |
| console.log(moreData) | |
| return moreData | |
| } else { | |
| console.log(data) | |
| return data | |
| } |
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() { | |
| var emitter = { | |
| emit: console.dir.bind(console) | |
| } | |
| function emit(mutation) { | |
| var target = mutation.target | |
| var name = mutation.attributeName | |
| var value = target.getAttribute(name) |
Imagine a web application that uses multiple CSS frameworks, libraries, components, etc. Class names are bound to conflict. Imagine two libraries: freeform.css and aid.css
<a class="freeform-text--bold freeform-display--block aid aid--focusable">example</a>
<a data-freeform="text--bold display--block" data-aid="focusable">example</a>
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
| localeIdentifier | Description | |
|---|---|---|
| eu | Basque | |
| hr_BA | Croatian (Bosnia & Herzegovina) | |
| en_CM | English (Cameroon) | |
| en_BI | English (Burundi) | |
| rw_RW | Kinyarwanda (Rwanda) | |
| ast | Asturian | |
| en_SZ | English (Swaziland) | |
| he_IL | Hebrew (Israel) | |
| ar | Arabic |
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
| $space-inset-default = 16px 16px 16px 16px; | |
| $space-inset-xs = 4px 4px 4px 4px; | |
| $space-inset-s = 8px 8px 8px 8px; | |
| $space-inset-m = 16px 16px 16px 16px; | |
| $space-inset-l = 32px 32px 32px 32px; | |
| $space-inset-xl = 64px 64px 64px 64px; | |
| $space-stack-default = 0 0 16px 0; | |
| $space-stack-xs = 0 0 4px 0; | |
| $space-stack-s = 0 0 8px 0; | |
| $space-stack-m = 0 0 16px 0; |
NewerOlder