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 "~@/scss/variables/_variables.scss"; | |
| // Color Palette | |
| $colors: ( | |
| 'primary':$primaryColor, | |
| 'accent':$accentColor, | |
| 'secondary':$secondaryColor, | |
| 'white':$whiteColor, | |
| 'black':$blackColor, |
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 MaxBinaryHeap { | |
| constructor() { | |
| this.values = []; | |
| } | |
| insert(value) { | |
| this.values.push(value); | |
| this.bubbleUp(); | |
| return this.values; | |
| } |
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 MinBinaryHeap { | |
| constructor() { | |
| this.values = []; | |
| } | |
| insert(value) { | |
| this.values.push(value); | |
| this.bubbleUp(); | |
| return this.values; | |
| } |
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 PriorityQueue { | |
| constructor() { | |
| this.values = []; | |
| } | |
| enqueue(priority, value) { | |
| const newNode = new Node(priority, value); | |
| this.values.push(newNode); | |
| this.bubbleUp(); | |
| return this.values; |
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 HashTable { | |
| constructor(size = 53) { | |
| this.keyMap = new Array(size); | |
| } | |
| _hash(key) { | |
| let total = 0; | |
| let WEIRD_PRIME = 31; | |
| for (let i = 0; i < Math.min(key.length, 100); i++) { | |
| let char = key[i]; | |
| let value = char.charCodeAt(0) - 96; |
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 Graph { | |
| constructor() { | |
| this.adjacencyList = {} | |
| } | |
| addVertex(vertex) { | |
| if (this.adjacencyList[vertex]) return; | |
| this.adjacencyList[vertex] = [] | |
| } | |
| addEdge(vertex1, vertex2) { |
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 Graph { | |
| constructor() { | |
| this.adjacencyList = {} | |
| } | |
| addVertex(vertex) { | |
| if (this.adjacencyList[vertex]) return; | |
| this.adjacencyList[vertex] = [] | |
| } | |
| addEdge(vertex1, vertex2) { |
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
| $breakpoints: ( | |
| "2xs": 320px, | |
| "xs": 480px, | |
| "sm": 640px, | |
| "md": 768px, | |
| "lg": 1024px, | |
| "xl": 1280px, | |
| "2xl": 1440px, | |
| "3xl": 1620px, | |
| "4xl": 1920px, |
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
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| const dotenv = require('dotenv'); | |
| function envVariables() { | |
| const env = dotenv.config().parsed; | |
| return Object.keys(env).reduce((newObject, key) => { | |
| newObject[key] = JSON.stringify(env[key]); |
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 { fileURLToPath, URL } from "node:url"; | |
| import { defineConfig } from "vite"; | |
| import vue from "@vitejs/plugin-vue"; | |
| interface IAssetFileNames { | |
| [key: string]: any; | |
| } | |
| interface IDefineConfig { |