This file has been truncated, but you can view the full file.
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | |
<channel> | |
<title><![CDATA[Kent C. Dodds]]></title> | |
<description><![CDATA[Come check out how Kent C. Dodds can help you level up your career as a software engineer.]]></description> | |
<link>https://kentcdodds.com</link> | |
<generator>RSS for Node</generator> | |
<lastBuildDate>Fri, 19 Jul 2019 20:25:23 GMT</lastBuildDate> | |
<item> | |
<title><![CDATA[When to break up a component into multiple components]]></title> |
This file contains 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
{ | |
"editor.fontFamily": "'Dank Mono'", | |
"editor.fontLigatures": true, | |
"terminal.integrated.fontFamily": "'Dank Mono'", | |
"terminal.integrated.fontSize": 16, | |
"editor.fontSize": 18, | |
"editor.renderLineHighlight": "gutter", | |
"editor.renderWhitespace": "boundary", | |
"extensions.autoUpdate": true, | |
"window.menuBarVisibility": "toggle", |
This file contains 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
module.exports = { | |
plugins: { | |
'postcss-cssnext': {}, | |
// other plugins (https://github.com/postcss/postcss#plugins) | |
'cssnano': {} | |
} | |
} |
This file contains 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
[user] | |
name = Jonas Gierer | |
email = [email protected] | |
signingkey = 0123456789ABCDEF | |
[core] | |
excludesFile = path/to/.gitignore | |
editor = code --wait --new-window | |
autocrlf = false | |
eol = lf |
This file contains 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
{ | |
"showPans": [ | |
"js", | |
"output" | |
], | |
"activePan": "js" | |
} |
This file contains 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
.mtki { | |
/* Enable Cartograph Mono CF font features */ | |
font-feature-settings: 'ss01' on; | |
} |
This file contains 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 View = ({ loading, error, ...otherProps }) => ( | |
<div> | |
{(() => { | |
if (loading) { | |
return <Loading /> | |
} else if (error) { | |
return <Error error={error} /> | |
} else { | |
return <MyLoadedComponent {...otherProps} /> | |
}; |
This file contains 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
let clicked = false; | |
// `mousedown` always seems to fire before `focusin`. | |
// (But within the same millisecond). | |
document.addEventListener('mousedown', () => { | |
clicked = true; | |
setTimeout(() => clicked = false, 1); | |
}); | |
// `focusin` is the bubbling version of `focus`. |
This file contains 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 gcd = (x, y) => y ? gcd(y, x % y) : x; | |
const simplify = xs => xs.map(x => x / gcd(...xs)); | |
export default str => simplify(str.split(' ')).join(' '); |
This file contains 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 arr => arr.some(x => arr.includes(-x)); |
NewerOlder