<body class="Site">
<header>…</header>
<main class="Site-content">…</main>
<footer>…</footer>
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 html_escapes = { | |
'&': '&', | |
'<': '<', | |
'>': '>', | |
'"': '"', | |
"'": ''', | |
}; |
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 jsEscapes = { | |
'\\': '\\u005C', | |
'\'': '\\u0027', | |
'"': '\\u0022', | |
'>': '\\u003E', | |
'<': '\\u003C', | |
'&': '\\u0026', | |
'=': '\\u003D', | |
'-': '\\u002D', | |
';': '\\u003B', |
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
// Create a Chrome bookmark and use the code as the URL. Toggle the css-layout on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
const element = document.querySelector('#test-layout-styles'); | |
if (element) { | |
document.head.removeChild(element); | |
} else { | |
const style = document.createElement('style'); | |
style.id = 'test-layout-styles'; |
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
{ | |
"workbench.colorCustomizations": { | |
"activityBar.background": "#050d14", | |
"activityBar.foreground": "#e7e7e7", | |
"activityBar.inactiveForeground": "#e7e7e799", | |
"activityBarBadge.background": "#90cf10", | |
"activityBarBadge.foreground": "#15202b", | |
"titleBar.activeBackground": "#cd108f", | |
"titleBar.inactiveBackground": "#cd108f99", | |
"titleBar.activeForeground": "#e7e7e7", |
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
Show hidden characters
{ | |
"rulesDirectory": ["node_modules/codelyzer"], | |
"rules": { | |
"arrow-return-shorthand": true, | |
"callable-types": true, | |
"class-name": true, | |
"comment-format": [true, "check-space"], | |
"curly": true, | |
"eofline": true, | |
"forin": true, |
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
import React, { useMemo } from "react"; | |
import useSubscription from "./useSubscription"; | |
// In this example, "source" is an event dispatcher (e.g. an HTMLInputElement) | |
// but it could be anything that emits an event and has a readable current value. | |
function Example({ source }) { | |
// In order to avoid removing and re-adding subscriptions each time this hook is called, | |
// the parameters passed to this hook should be memoized. | |
const subscription = useMemo( | |
() => ({ |
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
#header { | |
font-family: Roboto; | |
background-color: #252429; | |
color: #ff59d8; | |
border-color: #f513f5; | |
} | |
#user-tools a { | |
color: #4fffff; | |
} |
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
{ | |
"workbench.colorCustomizations": { | |
"titleBar.activeForeground": "#000", | |
"titleBar.inactiveForeground": "#000000CC", | |
"titleBar.activeBackground": "#17FFFF", | |
"titleBar.inactiveBackground": "#17FFFF" | |
} | |
} |
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
- Open the
keymap.cson
file by clicking onAtom -> Keymap…
in the menu bar - Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':