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 sleep = time => new Promise(resolve => { | |
setTimeout(() => resolve(), time) | |
}) | |
const waitUntilHidden = async (selector, timeout = 5000) => { | |
const endTime = Date.now() + timeout | |
while (document.querySelectorAll(selector).length && Date.now() < endTime) { | |
await sleep(100) | |
} | |
} |
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
npm install --save-dev babel-cli babel-core babel-plugin-__coverage__ enzyme chai-enzyme jsdom-global mocha-jsdom nyc |
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
Show hidden characters
{ | |
"presets": ["es2015", "react"], | |
"plugins": [ | |
"add-module-exports", | |
"transform-object-rest-spread", | |
"transform-class-properties", | |
"transform-flow-strip-types" | |
] | |
} |
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
# Install Postgres on mac | |
Install it | |
``` bash | |
brew install postgres | |
initdb /usr/local/var/postgres -E utf8 | |
``` | |
Start database |
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
/** | |
* Making a CSS3 only blur effect | |
*/ | |
.blurred { | |
-webkit-filter: blur(4px); | |
/* These a |