Find value using array of objects with id or other property.
In the controller:
| txtblk='\e[0;30m' # Black - Regular | |
| txtred='\e[0;31m' # Red | |
| txtgrn='\e[0;32m' # Green | |
| txtylw='\e[0;33m' # Yellow | |
| txtblu='\e[0;34m' # Blue | |
| txtpur='\e[0;35m' # Purple | |
| txtcyn='\e[0;36m' # Cyan | |
| txtwht='\e[0;37m' # White | |
| bldblk='\e[1;30m' # Black - Bold |
| <?php | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\Exception\ConnectException; | |
| use GuzzleHttp\Exception\RequestException; | |
| use GuzzleHttp\Handler\CurlHandler; | |
| use GuzzleHttp\HandlerStack; | |
| use GuzzleHttp\Psr7\Request as Psr7Request; | |
| use GuzzleHttp\Psr7\Response as Psr7Response; | |
| use Psr\Log\LoggerInterface; | |
| const MAX_RETRIES = 2; |
| from __future__ import print_function | |
| import numpy | |
| # Save this file using file save in your browser | |
| # Do not copy paste into PyCharm as it will mess up the indentation | |
| # and thus your code will not run properly. | |
| # Print Hangman's current state | |
| def printHangman(numberWrong): | |
| # Print the hangman |
| from __future__ import print_function | |
| import numpy as np | |
| import matplotlib.pyplot as plt #conda install matplotlib | |
| # -40 65.33333333 | |
| # -30 99.66666667 | |
| # -20 130 | |
| # -10 175.3333333 | |
| # 0 383.6666667 | |
| # 10 446.3333333 |