This file contains hidden or 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 | |
| declare(strict_types=1); | |
| namespace App\Tests\Catalog\Value; | |
| use App\Catalog\Value\Amount; | |
| use PHPUnit\Framework\TestCase; | |
| final class AmountTest extends TestCase |
This file contains hidden or 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
| /** | |
| * Evaluate XPath expression. | |
| * | |
| * @param {string} xpathExpression - XPath expression. | |
| * @param {HTMLElement} [contextNode=document] - Context node for the query. | |
| * @returns {HTMLElement[]} | |
| */ | |
| function evaluateXPath(xpathExpression, contextNode = document) { | |
| const result = document.evaluate( | |
| xpathExpression, |
This file contains hidden or 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
| const KEY_CODE = { | |
| ARROW_DOWN: 40, | |
| BACKSPACE: 8, | |
| ENTER: 13, | |
| }; | |
| /** | |
| * Dispatch keydown event. | |
| * | |
| * @param {number} keyCode |
| Description | Exception |
|---|---|
| Decline | \Stripe\Exception\CardException |
| Too many requests made to the API too quickly | \Stripe\Exception\RateLimitException |
| Invalid parameters were supplied to Stripe's API | \Stripe\Exception\InvalidRequestException |
| Authentication with Stripe's API failed | \Stripe\Exception\AuthenticationException |
| Network communication with Stripe failed | \Stripe\Exception\ApiConnectionException |
| Display a very generic error to the user | \Stripe\Exception\ApiErrorException |
This file contains hidden or 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
| brew tap shivammathur/php | |
| brew install shivammathur/php/[email protected] | |
| brew link --force --overwrite [email protected] | |
| brew services start [email protected] | |
| echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc | |
| echo 'export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc # or ~/.bashrc |
This file contains hidden or 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
| import { WebView } from 'react-native-webview'; | |
| export default function App() { | |
| return ( | |
| <WebView | |
| source={{ uri: 'https://example.com/' }} | |
| style={{ marginTop: 20 }} | |
| /> | |
| ); | |
| } |
This file contains hidden or 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": "dist", | |
| "rewrites": [{ "source": "**", "destination": "/index.html" }], | |
| "headers": [ | |
| { | |
| "source": "**", | |
| "headers": [ | |
| { | |
| "key": "Cache-Control", | |
| "value": "public, max-age=0, must-revalidate" |
This file contains hidden or 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
| { | |
| "scripts": { | |
| "build": "parcel build", | |
| "start": "serve" | |
| }, | |
| "dependencies": { | |
| "serve": "latest" | |
| } | |
| } |