https://www.youtube.com/watch?v=_QEM9kdV-b0&feature=youtu.be
Webpack takes a path to a single starting file (entry file)
- Find dependent files
- Apply loaders
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
-- Returns an array of all values | |
SELECT enum_range(NULL::my_enum_name) | |
-- Returns a row for each value | |
SELECT unnest(enum_range(NULL::my_enum_name)) |
/* A trick to see the design's "skeleton" */ | |
.someClass * { | |
background-color: rgba(100, 100, 100, 0.2); | |
} | |
/* Another trick */ | |
*, | |
::before, |
https://www.youtube.com/watch?v=_QEM9kdV-b0&feature=youtu.be
Webpack takes a path to a single starting file (entry file)
license: mit |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
someObservable.retry(3) | |
consts tasks = | |
{ | |
....{....5......2.......3...} | |
............{......5............4....3} | |
............................................{5...2...4} | |
.....................................................{...5} | |
} |
export default function(babel) { | |
const { types: t } = babel; | |
return { | |
name: "consoleImproved", | |
visitor: { | |
CallExpression(path) { | |
if (path.node.callee.object && path.node.callee.object.name === "console") { | |
const parentFunction = path.findParent(t.isFunctionDeclaration); | |
const parentFunctionExpression = path.findParent(t.isFunctionExpression); |
const Price = (props) => { | |
const price = props.children.toLocaleString('en', { | |
style: props.showSymbol ? 'currency' : undefined, | |
currency: props.showSymbol ? 'USD' : undefined, | |
maximumFractionDigits: props.showDecimals ? 2 : 0, | |
}); | |
return <span className={props.className}>{price}</span> | |
}; |
const Link = (props) => { | |
let className = `link link--${props.theme}-theme`; | |
if (!props.underline) className += ' link--no-underline'; | |
return <a href={props.href} className={className}>{props.children}</a>; | |
}; | |
Link.propTypes = { | |
theme: PropTypes.oneOf([ |