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 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 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 fetch from 'node-fetch'; | |
| import fs from 'fs'; | |
| const blockLevels = { | |
| 0: 1365242 | |
| }; | |
| let tokenId = 1000; | |
| while(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
| { | |
| "abk": { | |
| "iso-639-2": "abk", | |
| "iso-639-1": "ab", | |
| "english": "Abkhazian", | |
| "french": "abkhaze", | |
| "german": "Abchasisch" | |
| }, | |
| "ace": { | |
| "iso-639-2": "ace", |
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
| { | |
| "ab": { | |
| "iso-639-2": [ | |
| "abk" | |
| ], | |
| "iso-639-1": "ab", | |
| "english": "Abkhazian", | |
| "french": "abkhaze", | |
| "german": "Abchasisch" | |
| }, |
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
| class CharNode { | |
| _char; | |
| _phonetics = new Set(); | |
| _nextCharsLevel = {}; | |
| constructor(char) { | |
| this._char = char; | |
| } | |
| get phoneticsLength() { |
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
| // 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 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 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 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 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 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
| <div style="position: relative;height: 245px;overflow: hidden;"> | |
| <iframe | |
| style="position: absolute;top:0;left: 0;width: 100%;height: 100%;" | |
| src="https://io-radio-embed.orderandchaoscreative.com/" | |
| frameborder="0" scrolling="no" | |
| onload="this.height=this.contentWindow.document.body.scrollHeight;" | |
| ></iframe> | |
| </div> |
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
| r = 0xff; | |
| g = 0xff; | |
| b = 0xff; | |
| rgb = (r << 16) | (g << 8) | b; | |
| console.log(rgb); | |
| red = (rgb >> 16) & 0x0ff; | |
| green = (rgb >> 8) & 0x0ff; | |
| blue = (rgb) & 0x0ff; | |
| console.log(red); | |
| console.log(green); |