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
Archive of the code for images posted to https://twitter.com/tweegeemee | |
Started February 12, 2022 with the Top 10 from the last week. | |
:clisk-random-seed 220212 | |
Learn more at https://tweegeemee.com |
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
// how to create a clockwise rotate animation with SwitchTransition and CSSTransition approach | |
// jsx | |
<div className="rotating-icon"> | |
<SwitchTransition> | |
<CSSTransition | |
key={state ? 'faChevronDown' : 'faChevronUp'} | |
addEndListener={(node, done) => node.addEventListener('transitionend', done, false)} | |
classNames="rotate" |
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
// exmpale to use Promise.all to preload all the iamges in the array to the app | |
// [loading, setLoading] = useState(false); | |
const cacheImages = async (srcArray) => { | |
const promises = await srcArray.map((src)=>{ | |
return new Promise((resolve, reject) => { | |
const img = new Image(); | |
img.src = src; | |
img.onload = resolve; |
Six Sigma is a highly disciplined process that helps us focus on developing and delivering near-perfect products and services.
Features of Six Sigma
- Six Sigma's aim is to eliminate waste and inefficiency, thereby increasing customer satisfaction by delivering what the customer is expecting.
- Six Sigma follows a structured methodology, and has defined roles for the participants.
- Six Sigma is a data driven methodology, and requires accurate data collection for the processes being analyzed.
- Six Sigma is about putting results on Financial Statements.
Free to read online: exploringjs.com/impatient-js/
- The exercises now run as native ESM modules on Node.js. Previously, they were run via the
esm
package. - Material on new ES2021 features:
String.prototype.replaceAll()
Promise.any()
- Logical assignment operators
- Underscores (
_
) as separators in number literals and bigint literals
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 _ = require("lodash"); | |
const { defineAbility, an } = require("@casl/ability"); | |
const { permittedFieldsOf } = require("@casl/ability/extra"); | |
function Article(attrs) { | |
Object.assign(this, attrs); | |
} | |
const user = { | |
id: 1, |
NewerOlder