Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
Firstly install Brew on your MAC
Then install PHP
| # Author: Kyle Kastner | |
| # License: BSD 3-Clause | |
| # Implementing http://mnemstudio.org/path-finding-q-learning-tutorial.htm | |
| # Q-learning formula from http://sarvagyavaish.github.io/FlappyBirdRL/ | |
| # Visualization based on code from Gael Varoquaux gael.varoquaux@normalesup.org | |
| # http://scikit-learn.org/stable/auto_examples/applications/plot_stock_market.html | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.collections import LineCollection |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React.js Hello World!</title> | |
| <script src="https://fb.me/react-0.13.3.js"></script> | |
| <script src="https://fb.me/JSXTransformer-0.13.3.js"></script> | |
| </head> | |
| <body> |