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
var HashMap = function() { | |
this.length = 0; | |
this._slots = []; | |
this._capacity = 8; | |
this._secret = (Math.random() * 65536) | 0; | |
}; | |
HashMap.MAX_LOAD_RATIO = 0.9; | |
HashMap.SIZE_RATIO = 3; | |
HashMap._hashString = function(string) { |
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
// inifinite scrolling of content without extra wrappers | |
const { render, findDOMNode } = ReactDOMFiber | |
class App extends React.Component { | |
render() { | |
// wrap the root element with an Intersection Observer, exposing .observe for children | |
return <Intersection> | |
<div style={{ height: 200, overflow: 'auto' }}> | |
<Page offset={0} count={10} /> | |
</div> |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Consolas", | |
"editor.tabSize": 2, | |
"editor.wordWrapColumn": 80, | |
"editor.fontLigatures": true, | |
"editor.snippetSuggestions": "top", | |
"editor.minimap.enabled": true, | |
"files.exclude": { |
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
5 TOP PACKAGES | |
1. Path Intellisense | |
2. Project Manager | |
3. Auto Rename Tag | |
4. JavaScript (ES6) code snippets | |
5. Output Colorizer | |
You need to have |
OlderNewer