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
export type tDirection = 'NORTH' | 'SOUTH' | 'EAST' | 'WEST'; | |
export const opposites = { | |
EAST: 'WEST', | |
NORTH: 'SOUTH', | |
SOUTH: 'NORTH', | |
WEST: 'EAST', | |
}; | |
export function dirReduc(arr: string[]): tDirection[] { | |
const output = [...arr] as tDirection[]; |
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
/** | |
* @param {TreeNode} node | |
* @return {TreeNode} | |
*/ | |
const invert = node => { | |
if(!node) { | |
return null; | |
} | |
const temp = node?.left; |
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
module.exports = { | |
host: "http://localhost", | |
apps: [ | |
{ | |
name: "strapi", | |
port: 3537, | |
redirect: "/admin", | |
sub: "admin" | |
}, | |
{ |
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
var iFileName = "Random Trinket"; | |
RequiredSheetVersion(12.999); | |
var trinketList = [ | |
'A mummified goblin hand', | |
'A piece of crystal that faintly glows in the moonlight', | |
'A gold coin minted in an unknown land', | |
'A diary written in a language you don’t know', | |
'A brass ring that never tarnishes', | |
'An old chess piece made from glass', |
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
(function(){ | |
/** | |
* A single sodoku cell | |
*/ | |
var cell = function(col, row) { | |
this.col = col; | |
this.row = row; | |
this.block = (Math.floor(col / 3) * 10) + Math.floor(row / 3); | |
this.id = "f" + col + "" + row; | |
this.value = document.getElementById(this.id).value; |
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
var characters = [ | |
{ | |
key: 'I', | |
value: 1 | |
}, | |
{ | |
key: 'V', | |
value: 5 | |
}, | |
{ |
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
Hydrogen | |
Helium | |
Lithium | |
Beryllium | |
Boron | |
Carbon | |
Nitrogen | |
Oxygen | |
Fluorine | |
Neon |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Splurthian_Chemistry_101 | |
{ | |
class Program | |
{ | |
static Tuple<string, string>[] isValidInputs = | |
{ |
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
115, 73, 24, 807, 37, 52, 49, 17, 31, 62, 647, 22, 7, 15, 140, 47, 29, 107, 79, 84, 56, 239, 10, 26, 811, 5, 196, 308, 85, 52, 160, 136, 59, 211, 36, 9, 46, 316, 554, 122, 106, 95, 53, 58, 2, 42, 7, 35, 122, 53, 31, 82, 77, 250, 196, 56, 96, 118, 71, 140, 287, 28, 353, 37, 1005, 65, 147, 807, 24, 3, 8, 12, 47, 43, 59, 807, 45, 316, 101, 41, 78, 154, 1005, 122, 138, 191, 16, 77, 49, 102, 57, 72, 34, 73, 85, 35, 371, 59, 196, 81, 92, 191, 106, 273, 60, 394, 620, 270, 220, 106, 388, 287, 63, 3, 6, 191, 122, 43, 234, 400, 106, 290, 314, 47, 48, 81, 96, 26, 115, 92, 158, 191, 110, 77, 85, 197, 46, 10, 113, 140, 353, 48, 120, 106, 2, 607, 61, 420, 811, 29, 125, 14, 20, 37, 105, 28, 248, 16, 159, 7, 35, 19, 301, 125, 110, 486, 287, 98, 117, 511, 62, 51, 220, 37, 113, 140, 807, 138, 540, 8, 44, 287, 388, 117, 18, 79, 344, 34, 20, 59, 511, 548, 107, 603, 220, 7, 66, 154, 41, 20, 50, 6, 575, 122, 154, 248, 110, 61, 52, 33, 30, 5, 38, 8, 14, 84, 57, 540, 217, 115, 71, 29, 84, 63, 43, 131, 29, 138, 47, 73, 239, 540, 52, |
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
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string input1 = Console.ReadLine(); | |
string input2 = Console.ReadLine(); | |
Console.Clear(); | |
NewerOlder