import { Image } from 'mdx-deck'
<Image src='https://source.unsplash.com/random/768x2048?cats' style={{ display: 'flex', alignItems: 'center',
import { Image } from 'mdx-deck'
<Image src='https://source.unsplash.com/random/768x2048?cats' style={{ display: 'flex', alignItems: 'center',
let UserContext = React.createContext(); | |
class App extends React.Component { | |
state = { | |
user: null, | |
setUser: user => { | |
this.setState({ user }); | |
} | |
}; |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
import jsdom from 'jsdom'; | |
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); | |
global.document = doc; | |
global.window = doc.defaultView; |
// https://github.com/webpack-contrib/sass-loader/issues/40 | |
$bootstrap-sass-asset-helper: true; | |
@import "~bootstrap-sass/assets/stylesheets/bootstrap"; |
#!/bin/bash | |
## Install Mysql | |
yum install mysql-server | |
service mysql-start | |
grep 'Temporary Password' |
{ | |
"name": "MyProject", | |
"scripts": { | |
"docs": "./node_modules/.bin/jsdoc src -r -d docs" | |
} | |
} |