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); |
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
| function png2mp4() { | |
| ffmpeg -framerate 12 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p "out${1}.mp4"; | |
| mkdir "stills${1}"; | |
| find ./ -maxdepth 1 -name '*.png' -exec mv {} "./stills${1}" \; | |
| } |