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
<template> | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-12"> | |
<div class="card card-default"> | |
<div class="card-body"> | |
<div id="word-section"> | |
<div class="waiting">⌛</div> | |
</div> | |
<div id="type-section"> |
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
<template> | |
<div class="container"> | |
<div class="row" v-show="loading"> | |
<div class="col-xl-4 pt-5"> | |
<div class="placeholder wave"> | |
<div class="square"></div> | |
<div class="line"></div> | |
<div class="line"></div> | |
</div> | |
</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
<template> | |
<div id="burger" :class="{ | |
'active': active | |
}" @click="toggleActive"> | |
<button type="button" class="burger-button" title="Menu"> | |
<span class="burger-bar burger-bar--1"></span> | |
<span class="burger-bar burger-bar--2"></span> | |
<span class="burger-bar burger-bar--3"></span> | |
</button> | |
</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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
number := 8 | |
result := factorial(number) | |
travResult := traversal(number) |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
unordered := []int{99, 6, 5, 88, 3, 9, 7, 11} | |
ordered := bubbleSort(unordered) |
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 insertionSort(array) { | |
const length = array.length | |
for (i = 0; i < length; i++) { | |
if (array[i] > array[i + 1]) { | |
let temp = array[i] | |
array[i] = array[i + 1] | |
array[i + 1] = temp | |
for (j = i - 1; j >= 0; j--) { | |
if (array[j] > array[j + 1]) { | |
let temp = array[j] |
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 numbers = [99, 44, 6, 2, 1, 5, 63, 87, 283, 4, 0]; | |
function mergeSort(array) { | |
if (array.length === 1) { | |
return array | |
} | |
let half = array.length / 2 | |
let left = array.slice(0, half) | |
let right = array.slice(half) |
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
/** | |
* Definition for singly-linked list. | |
* function ListNode(val, next) { | |
* this.val = (val===undefined ? 0 : val) | |
* this.next = (next===undefined ? null : next) | |
* } | |
*/ | |
/** | |
* @param {ListNode} l1 | |
* @param {ListNode} l2 |
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 { | |
constructor(value) { | |
this.left = null | |
this.right = null | |
this.value = value | |
} | |
} | |
class BinarySearchTree { | |
constructor() { |
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 path = require('path') | |
const {VueLoaderPlugin} = require('vue-loader') | |
const {CleanWebpackPlugin} = require('clean-webpack-plugin') | |
const CompressionPlugin = require('compression-webpack-plugin') | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | |
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | |
let watchOptions = { | |
aggregateTimeout: 300, | |
poll: 1000, |