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 fs from 'fs'; | |
| import { WebhookClient } from 'discord.js' | |
| const webhookUrl = "DISCORD_WEBHOOK_URL"; | |
| const client = new WebhookClient({ | |
| url: webhookUrl | |
| }); | |
| export async function notify(message, imagePath) { |
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
| export function dirReduc(arr: string[]): string[] { | |
| let result = []; | |
| let mtrx: any = { | |
| "NORTH": "SOUTH", | |
| "SOUTH": "NORTH", | |
| "WEST": "EAST", | |
| "EAST": "WEST" | |
| } | |
| for (let val of arr) { | |
| if(result.length > 0 && result[result.length - 1] === mtrx[val]) { |
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 Node { | |
| value = null; | |
| leftChild = null; | |
| rightChild = null; | |
| constructor(value) { | |
| this.value = value | |
| } | |
| } |
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
| <link rel="modulepreload" href="${vendorJsUrl}"> | |
| <script type="module" src="${mainJsUrl}"></script> | |
| <script nomodule type="application/javascript" src="${legacyPollyFillJsUrl}"></script> | |
| <script nomodule>System.import(legacyJsUrl)</script> |
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 externalGlobals from 'rollup-plugin-external-globals'; | |
| const externals = { | |
| react: 'React', | |
| 'react-dom': 'ReactDOM', | |
| axios: 'axios', | |
| }; | |
| export default defineConfig({ | |
| ... |
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 externals = { | |
| react: 'React', | |
| 'react-dom': 'ReactDOM', | |
| axios: 'axios', | |
| }; | |
| export default defineConfig({ | |
| ... | |
| build: { | |
| rollupOptions: { |
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
| table = document.querySelector("table"); | |
| sum = 0; | |
| for (var i = 0, row; row = table.rows[i]; i++) { | |
| for (var j = 0, col; col = row.cells[j]; j++) { | |
| if (j ==2 && i > 0) { | |
| sum += Number(col.innerHTML.replaceAll(',', '')); | |
| } | |
| } | |
| } |
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
| pkill -f 'java.*cassandra' |
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
| table = document.querySelector("table"); | |
| sum = 0; | |
| for (var i = 0, row; row = table.rows[i]; i++) { | |
| for (var j = 0, col; col = row.cells[j]; j++) { | |
| if (j ==2 && i > 0) { | |
| sum += Number(col.innerHTML.replaceAll(',', '')); | |
| } | |
| } | |
| } |
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
| table = document.querySelector("table"); | |
| sum = 0; | |
| for (var i = 0, row; row = table.rows[i]; i++) { | |
| for (var j = 0, col; col = row.cells[j]; j++) { | |
| if (j ==2 && i > 0) { | |
| sum += Number(col.innerHTML.replaceAll(',', '')); | |
| } | |
| } | |
| } |
NewerOlder