ticket number 2370 solpress.dev
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
// Run these in your console. You need to have | |
// https://chromewebstore.google.com/detail/twcommunity-export-x-comm/ekmakfofejepagjcfllcfjapmhdeafdg?hl=en | |
// The extension helps request a new list of x handles at intervals | |
// run | |
const responses = []; | |
// then run | |
XMLHttpRequest.prototype.realSend = XMLHttpRequest.prototype.send; | |
XMLHttpRequest.prototype.send = function(data) { | |
this.realSend(data); |
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 | |
private function handlePaydayInvoiceUpdate($invoice_id, $action) { | |
$body = []; | |
if ($action == 'PAID') { | |
$body["status"] = "PAID"; | |
$body["paidDate"] = Carbon::now()->toDateTimeString(); | |
$body["paymentType"] = "d4a76367-d9dc-4fd0-9671-f789fee6cd16"; | |
} | |
if($action === "REFUND") { |
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
[ | |
{ | |
"mint": "DPTgLsaMtUxEvSWgn1tcD7bu3GbEMNA3uSyymVY7mTtA" | |
}, | |
{ | |
"mint": "H7NtYfqD9w8BSzT4qBTXJ1WM3L7nkW6nN1MYR9dRkVeq" | |
}, | |
{ | |
"mint": "HRtgq6Xm1whbggjiwqe2SXfgLvTYsYQ3WgC1pPr2Ac9k" | |
}, |
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 * as solanaWeb3 from '@solana/web3.js'; | |
const theblockchainapi = require('theblockchainapi') | |
const jsonfile = require('jsonfile') | |
let defaultClient = theblockchainapi.ApiClient.instance; | |
let APIKeyID = defaultClient.authentications['APIKeyID']; | |
let APISecretKey = defaultClient.authentications['APISecretKey']; | |
APIKeyID.apiKey = 'xxx'; |
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 arrayOfEvenNumbers = (numbers) => { | |
const arrayForEventualResults = [] | |
for (let index = numbers.length - 1; index >= 0; index--) { | |
// check if this is an even index | |
if (index % 2 === 0) { | |
// check if the number at this index is evem | |
const numberAtCurrentIndex = numbers[index] | |
if (numberAtCurrentIndex % 2 === 0) { | |
// add the number to the `arrayForEventualResults` |
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 arr = [ | |
{ | |
"name": "Jeff", | |
"ranking": 1 | |
}, | |
{ | |
"name": "Kevin", | |
"ranking": 5 | |
}, | |
{ |
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
....... | |
<form [formGroup]="teamsEdit"> | |
<ion-list no-lines> | |
<ion-item> | |
........ | |
</ion-select> | |
</ion-item> | |
<app-sport-category [fieldof]="'sportName'" [parentForm]="teamsEdit"></app-sport-category> | |
..... |
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
<ion-item> | |
<ion-label> | |
Sport Name | |
</ion-label> | |
<ion-select placeholder="Select Sport" (ionChange)="pickedSport($event)"> | |
<ion-select-option *ngFor="let sc of list" [value]="sc.CategoryName">{{sc.CategoryName}}</ion-select-option> | |
</ion-select> | |
</ion-item> |
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 { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; | |
import { BoardService } from '../../services/board/board.service' | |
@Component({ | |
selector: 'app-sport-category', | |
templateUrl: './sport-category.component.html', | |
styleUrls: ['./sport-category.component.scss'] | |
}) | |
export class SportCategoryComponent implements OnInit {y | |
@Input() parentForm // input decorator |
NewerOlder