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 React from "react"; | |
import CustomTable from "./Components/CustomTable"; | |
function App() { | |
const users = [ | |
{ | |
id: 1, | |
name: "Алексей", | |
surname: "Данчин", |
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 cloneDeep (obj) { | |
const pull = new Map | |
const clone = cloneDeepMaster(obj) | |
pull.clear() | |
return clone | |
function cloneDeepMaster (obj) { | |
if (typeof obj !== 'object' || obj === null) { | |
return obj |
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
{ | |
"name": { | |
"male": ["Аарон", "Абрам", "Аваз", "Августин", "Авраам", "Агап", "Агапит", "Агат", "Агафон", "Адам", "Адриан", "Азамат", "Азат", "Азиз", "Аид", "Айдар", "Айрат", "Акакий", "Аким", "Алан", "Александр", "Алексей", "Али", "Алик", "Алим", "Алихан", "Алишер", "Алмаз", "Альберт", "Амир", "Амирам", "Амиран", "Анар", "Анастасий", "Анатолий", "Анвар", "Ангел", "Андрей", "Анзор", "Антон", "Анфим", "Арам", "Аристарх", "Аркадий", "Арман", "Армен", "Арсен", "Арсений", "Арслан", "АртёмА", "Артемий", "Артур", "Архип", "Аскар", "Аслан", "Асхан", "Асхат", "Ахмет", "Ашот", "Бахрам", "Бенджамин", "Блез", "Богдан", "Борис", "Борислав", "Бронислав", "Булат", "Вадим", "Валентин", "Валерий", "Вальдемар", "Вардан", "Василий", "Вениамин", "Виктор", "Вильгельм", "Вит", "Виталий", "Влад", "Владимир", "Владислав", "Владлен", "Влас", "Всеволод", "Вячеслав", "Гавриил", "Гамлет", "Гарри", "Геннадий", "Генри", "Генрих", "Георгий", "Герасим", "Герман", "Германн", "Глеб", "Гордей", "Григорий", "Густав", "Давид", "Давлат", "Д |
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 quickSort(array) { | |
if (array.length < 2) { | |
return array | |
} | |
quickSortMaster(0, array.length - 1) | |
return array | |
function quickSortMaster (left, right) { |
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 () { | |
'use strict' | |
const state = {} | |
const baseClasses = [ | |
{ | |
type: Number, | |
label: "Number", | |
prototypes: ["toExponential", "toFixed", "toLocaleString", "toPrecision", "toSource", "toString", "valueOf"], |
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 randomizer = { | |
alphabet: 'abcdeABCDE012345', | |
getInt (min = 0, max = 100) { | |
return min + Math.floor(Math.random() * (max - min + 1)) | |
}, | |
getFloat (min = 0, max = 100) { | |
return min + Math.random() * (max - min) | |
}, |
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
{ | |
"problems": [ | |
{ | |
"name": "getSum", | |
"description": "Напишите функцию `getSum()` возвращающую сумму всех своих аргументов. Примеры:\n```javascript\ngetSum(1, 2) === 3\ngetSum(5, -5) === 0\n```", | |
"code": "function getSum () {\n return\n}", | |
"tests": [ | |
{ | |
"testCode": "getSum(5)", | |
"expect": 5 |
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 setMouseWatcher (element, callback, avtoStart = true) { | |
let started = false | |
const mouse = { | |
x: 0, | |
y: 0, | |
dx: 0, | |
dy: 0, | |
pleft: false, | |
left: false |
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 cp = require('child_process') | |
const fs = require('fs') | |
const util = require('util') | |
const exec = util.promisify(cp.exec) | |
const readFile = util.promisify(fs.readFile) | |
const writeFile = util.promisify(fs.writeFile) | |
main() |
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
Show hidden characters
{ | |
"presets": ["@babel/preset-env"], | |
"plugins": ["@babel/plugin-transform-runtime"] | |
} |