-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
#bg { | |
position: fixed; | |
background-image: url("http://cosmetotheque.com/wp-content/uploads/2018/04/mario-gogh-589733-unsplash-1200x385.jpg"); | |
filter: blur(2px); | |
width: 1000px; | |
height: 300px; | |
} | |
#content { | |
position: relative; |
import React, { Component } from 'react' | |
import store from './store.js' | |
class App extends Component { | |
componentDidMount() { | |
// subscribe to state changes -> forceUpdate will ask React to re-render the view | |
this.unsubscribe = store.subscribe(() => this.forceUpdate()) | |
} |
import React, { Component } from 'react' | |
import store from './store.js' | |
class App extends Component { | |
componentDidMount() { | |
// subscribe to changes -> forceUpdate will ask React to re-render the view | |
this.unsubscribe = store.subscribe(() => this.forceUpdate()) | |
} |
const openingHours = { | |
monday: [ | |
{ begin: '10:00', end: '12:00' }, | |
{ begin: '13:00', end: '18:00' }, | |
], | |
tuesday: [ | |
{ begin: '10:00', end: '12:00' }, | |
{ begin: '13:00', end: '18:00' }, | |
], | |
wednesday: [ |
# install postgres | |
brew install postgresql | |
# set service to restart postgres on startup | |
pg_ctl -D /usr/local/var/postgres start && brew services start postgresql |
// HELPERS | |
const print = s => process.stdout.write(s) | |
const Array2d = (rows, cols, fill = 0) => Array(rows).fill(0).map(_ => Array(cols).fill(fill)) | |
// const wait = ms => new Promise(_ => setTimeout(_, ms)) | |
const Game = require('./Game.js') |