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
| interface TokenBalanceResponse { | |
| status: string; | |
| message: string; | |
| result: string; | |
| } | |
| interface WalletBalance { | |
| balance: string; | |
| formattedBalance: string; | |
| success: boolean; |
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
| { | |
| "accountAssociation": { | |
| "header": "", | |
| "payload": "", | |
| "signature": "" | |
| }, | |
| "frame": { | |
| "version": "1", | |
| "name": "GenyTask", | |
| "iconUrl": "https://task.genyapps.xyz/assets/logo.png?v=1.2", |
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); | |
| // Set up error logging. | |
| ini_set('log_errors', 1); | |
| ini_set('error_log', 'logs/error_log_file.log'); | |
| // Disable caching. | |
| header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); | |
| header('Pragma: no-cache'); |
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); | |
| // Headers - SET THESE FIRST | |
| header('Content-Type: application/json'); | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); | |
| header('Access-Control-Allow-Headers: Content-Type'); | |
| // Handle preflight requests |
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
| /** | |
| * Sends a test notification by calling the backend endpoint. | |
| * Uses the notificationDetails passed from the frameAdded event. | |
| * @param {Object} notificationDetails - An object containing { url, token }. | |
| */ | |
| async function sendTestNotification(notificationDetails) { | |
| try { | |
| // Send a POST request to store the notification details. | |
| const storeResponse = await fetch("send-notification.php", { | |
| method: "POST", |
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); | |
| require '../../lib/vendor/autoload.php'; | |
| require "../../lib/core.php"; | |
| header('Content-Type: application/json'); | |
| class FarcasterWebhookHandler { | |
| private array $webhookData = []; |
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 QtQuick | |
| Window { | |
| width: 640 | |
| height: 480 | |
| visible: true | |
| title: qsTr("Hello World") | |
| function jsonApiRequest() { | |
| var xhr = new XMLHttpRequest(); |
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
| Language: Cpp | |
| AccessModifierOffset: -4 | |
| AlignAfterOpenBracket: true | |
| AlignEscapedNewlinesLeft: true | |
| AlignTrailingComments: true | |
| AllowAllParametersOfDeclarationOnNextLine: true | |
| AllowShortBlocksOnASingleLine: false | |
| AllowShortCaseLabelsOnASingleLine: true |
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
| { | |
| "model": [ | |
| { | |
| "id": 1, | |
| "name": "Kambiz", | |
| "family": "Asadzadeh" | |
| }, | |
| { | |
| "id": 2, | |
| "name": "Hamed", |
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
| let myData = [{ | |
| id: 1, | |
| name: "Kambiz", | |
| family: "Asadzadeh" | |
| }, | |
| { | |
| id: 2, | |
| name: "Sorush", | |
| family: "Rabiei" | |
| }, |
NewerOlder