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
fetchSrc = async(url, mimeType) => { | |
const audioResponse = await fetch(url, { | |
method: 'get', | |
headers: {'Accept': mimeType}, | |
}); | |
const blob = await audioResponse.blob(); | |
audio.mimeType = mimeType; | |
audio.preload = 'metadata'; | |
audio.src = URL.createObjectURL(blob); | |
}; |
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
I am attesting that this GitHub handle OrderAndCh4oS is linked to the Tezos account tz1iM7PB4brTmkbTUccsrXYjepSQ6ext7KYu for tzprofiles | |
sig:edsigtdsPStL8c1MGmAVCPn3PnEypvFLww1V4GGxZjvAcGE9vrKgfpTKuDLSZqBqmf1oDsY7jvioNgxq7BXvrKR3bLSwnfnqcvn |
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
import fetch from 'node-fetch'; | |
import ObjectsToCsv from 'objects-to-csv'; | |
import path from 'path'; | |
const getBurns = async(objktId) => { | |
const response = await fetch( | |
`https://api.tzkt.io/v1/operations/transactions?target=KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton&entrypoint=transfer&status=applied&limit=10000¶meter.[0].txs.[0].token_id=${objktId}¶meter.[0].txs.[0].to_=tz1burnburnburnburnburnburnburjAYjjX&select=id,hash,parameter`); | |
const data = await response.json(); | |
let i = 1; | |
return data.reduce((arr, d) => { |
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
import fetch from 'node-fetch'; | |
import fs from 'fs'; | |
const blockLevels = { | |
0: 1365242 | |
}; | |
let tokenId = 1000; | |
while(true) { |
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
{ | |
"abk": { | |
"iso-639-2": "abk", | |
"iso-639-1": "ab", | |
"english": "Abkhazian", | |
"french": "abkhaze", | |
"german": "Abchasisch" | |
}, | |
"ace": { | |
"iso-639-2": "ace", |
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
{ | |
"ab": { | |
"iso-639-2": [ | |
"abk" | |
], | |
"iso-639-1": "ab", | |
"english": "Abkhazian", | |
"french": "abkhaze", | |
"german": "Abchasisch" | |
}, |
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
class CharNode { | |
_char; | |
_phonetics = new Set(); | |
_nextCharsLevel = {}; | |
constructor(char) { | |
this._char = char; | |
} | |
get phoneticsLength() { |
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
// https://www.iso.org/obp/ui/#search | |
const isoCountryCodes = [ | |
{name: 'Andorra', alphaTwoCode: 'AD', alphaThreeCode: 'AND', numeric: '020'}, | |
{name: 'United Arab Emirates', alphaTwoCode: 'AE', alphaThreeCode: 'ARE', numeric: '784'}, | |
{name: 'Afghanistan', alphaTwoCode: 'AF', alphaThreeCode: 'AFG', numeric: '004'}, | |
{name: 'Antigua and Barbuda', alphaTwoCode: 'AG', alphaThreeCode: 'ATG', numeric: '028'}, | |
{name: 'Anguilla', alphaTwoCode: 'AI', alphaThreeCode: 'AIA', numeric: '660'}, | |
{name: 'Albania', alphaTwoCode: 'AL', alphaThreeCode: 'ALB', numeric: '008'}, | |
{name: 'Armenia', alphaTwoCode: 'AM', alphaThreeCode: 'ARM', numeric: '051'}, | |
{name: 'Angola', alphaTwoCode: 'AO', alphaThreeCode: 'AGO', numeric: '024'}, |
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
const randomInteger = (min: number, max: number) => | |
Math.floor(Math.random() * (max - min + 1)) + min; | |
export const getFutureExpiryDate = () => { | |
const now = new Date(); | |
now.setFullYear(now.getFullYear() + randomInteger(1, 5)); | |
return {month: randomInteger(1, 12), year: now.getFullYear().toString().slice(2)}; | |
} | |
export const getPastExpiryDate = () => { |
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
const randomInteger = (min: number, max: number) => | |
Math.floor(Math.random() * (max - min + 1)) + min; | |
export const getFutureExpiryDate = () => { | |
const now = new Date(); | |
now.setFullYear(now.getFullYear() + randomInteger(1, 5)); | |
return {month: randomInteger(1, 12), year: now.getFullYear().toString().slice(2)}; | |
} | |
export const getPastExpiryDate = () => { |
NewerOlder