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
<html> | |
<head> | |
<title>Dnd - Lost mines of Phandelver</title> | |
<style type="text/css"> | |
body { | |
margin: 0 10px; | |
font-family: Arial; | |
background-color: darkgreen; | |
} |
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 | |
/** | |
How to run a code coverage report on a web page: | |
Simply put this code after the vendor require and before the rest of the calling logic. | |
(Assumes you have PHPUnit installed) | |
**/ | |
require_once __DIR__ . "/../vendor/autoload.php"; |
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
/** | |
* There is a bug in the Stripe SCA documentation for reusing saved cards. | |
* It gives an incorrect code sample for trying to reuse an existing card via Card Elements. | |
* | |
* The offending sample: https://stripe.com/docs/payments/cards/charging-saved-cards#submit-payment-automatic-confirmation | |
*/ | |
/** It says to do this **/ | |
cardButton.addEventListener('click', function(ev) { | |
stripe.handleCardPayment( |
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 | |
class TestObject | |
{ | |
} | |
function onlyAcceptArrayOfTestObjects(TestObject ...$objects) | |
{ | |
echo "Got ".count($objects)." TestObjects\n"; |