- Pidgey Calculator - Calculate when you should use a lucky egg to get the most XP
- Best Movesets - Search for a Pokemon, view all kinds of info including Movesets ranked by % effectiveness.
- How to Dodge
- Counter Attack Pokemon Chooser - Select the pokemon you're battling against, set the CP, see the pokemon you should attack with, at the lowest possible CP. (Lower CP during attack gives more prestige)
- Pokestops/Pokemaps Map
- Appraisal Translator
- IV Calculator
This file contains 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
#!/usr/bin/php | |
<?php | |
require __DIR__ . '/../../vendor/autoload.php'; | |
/** | |
* Dependencies: | |
* - Symfony Console Component: symfony/console | |
* - Symfony Process Component: symfony/process | |
* - PHP Mess Detector: phpmd/phpmd |
This file contains 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
public function waitForAjax() | |
{ | |
$waitTime = 10000; | |
try { | |
//Wait for Angular | |
$angularIsNotUndefined = $this->getSession()->evaluateScript("return (typeof angular != 'undefined')"); | |
if ($angularIsNotUndefined) { | |
//If you run the below code on a page ending in #, the page reloads. | |
if (substr($this->getSession()->getCurrentUrl(), -1) !== '#') { | |
$angular = 'angular.getTestability(document.body).whenStable(function() { |
This file contains 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
<?php | |
define("CONSUMER_SECRET", "secret"); | |
define("CONSUMER_KEY", "key"); | |
define("TOKEN", "token"); | |
define("TOKEN_SECRET", "token secret"); | |
define("URL_API", "https://api.***"); | |
$method = "GET"; |
This file contains 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
$dql = "SELECT orderStatus.id | |
FROM \models\OrderStatus orderStatus | |
WHERE orderStatus.isCompleted = true"; | |
var_dump($this->getEntityManager()->createQuery($dql)->getScalarResult()); | |
getScalarResult Output: | |
array (size=1) | |
0 => | |
array (size=1) |
This file contains 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
<?php | |
/** @AfterScenario */ | |
public function after($event) | |
{ | |
if($event->getResult() == Event\StepEvent::FAILED) | |
{ | |
$imagePathPrefix = 'http://mysite.local'; | |
errorImagesDir = '/'; |
This file contains 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
# Robots and Marbles | |
There are five robots, A, B, C, D, and E. Robot A is the oldest model, Robot E is the newest model. | |
When we give the robots a bag of 100 marbles, they will distribute the marbles among themselves following these rules: | |
1. The oldest robot will present a distribution of the marbles, divided however it has decided. | |
2. All robots will vote on whether or not to accept this distribution. | |
3. If 50% or more vote to accept the proposal, the marbles are distributed in that manner. | |
4. If less than 50% vote to accept the proposal, the oldest robot is automatically shut down, and the process starts over with the next oldest robot. | |
5. All robots have the following priorities and will vote according to these rules, in this order. They all know that they all share the priorities: |