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
const isPalindrome = (string) => { | |
if (length(string) <= 1) { | |
return true; | |
} | |
const firstSymbol = string[0]; | |
const lastSymbol = string[length(string) - 1]; | |
if (firstSymbol !== lastSymbol) { | |
return false; | |
} |
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
import { getLength } from './strings'; // eslint-disable-line | |
// BEGIN (write your solution here) | |
const substr = (str, start = 0, size = getLength(str)) => { | |
const length = getLength(str); | |
if(start >= length) { | |
return ''; | |
} |
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
let webpack = require('webpack'); | |
let webpackDefaultConfig = require('./webpack-default'); | |
let Entry = require('./Entry'); | |
let webpackRules = require('./webpack-rules'); | |
let webpackPlugins = require('./webpack-plugins'); | |
process.noDeprecation = true; | |
class WebpackConfig { |
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
fs.js:143 | |
throw err; | |
^ | |
Error: EISDIR: illegal operation on a directory, read | |
at Object.fs.readSync (fs.js:632:3) | |
at tryReadSync (fs.js:472:20) | |
at Object.fs.readFileSync (fs.js:513:19) | |
at Function.concatenate.sync (C:\OpenServer\domains\crm2.local\node_modules\concatenate\lib\concatenate.js:122:17) | |
at FileCollection.merge (C:\OpenServer\domains\crm2.local\node_modules\laravel-mix\src\FileCollection.js:29:36) |
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
driver | |
.wait(until.elementLocated(By.css(createBtn)), 20000) | |
.then(function(element) { | |
return driver.wait(until.elementIsVisible(element), 20000); | |
}) | |
.then(function(button) { | |
driver | |
.actions() | |
.mouseMove(button) | |
.mouseUp() |
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
let scriptToExecute = | |
"var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; var network = performance.getEntries() || {}; return network;"; |
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
const selectCompaniesLocated = await driver.wait(until.elementLocated(By.xpath("//div[@id='modalAddCompany']/div[@role='document']//form[@role='form']/div[@class='panel-body']/div/div[1]/div/div//select[@name='5']/option[@value='6']")), TIMEOUT); | |
const selectCompaniesVisible = await driver.wait(until.elementIsVisible(selectCompaniesLocated), TIMEOUT); | |
selectCompaniesVisible.click(); |
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
<!-- Модальное окно добавления рамки --> | |
<div class="modal fade" id="modalAddFrame" | |
role="dialog" aria-labelledby="historyLabel"> | |
<div class="modal-dialog modal-lg" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span>×</span></button> | |
<h4 class="modal-title" id="historyLabel"><i class="fa fa-list"></i> Добавить рамку</h4> | |
</div> | |
<div class="panel-body"> |
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
$("body").on('show.bs.modal', '#modalAddFrame', function() { | |
$('#tableModalFrames').DataTable({ | |
"retrieve": true, | |
"destroy": true, | |
"paging": true, | |
"lengthChange": true, | |
"searching": true, | |
"ordering": true, | |
"info": true, | |
"autoWidth": true, |