Skip to content

Instantly share code, notes, and snippets.

const isPalindrome = (string) => {
if (length(string) <= 1) {
return true;
}
const firstSymbol = string[0];
const lastSymbol = string[length(string) - 1];
if (firstSymbol !== lastSymbol) {
return false;
}
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 '';
}
export const table = (...children) => `<table>${children.join('')}</table>`;
export const tr = (...children) => `<tr>${children.join('')}</tr>`;
export const td = (...children) => `<td>${children.join('')}</td>`;
export const p = (...children) => `<p>${children.join('')}</p>`;
export//////////////
export default () => table(
tr(td('lang'), td('comment')),
tr(td('php'), td('statements')),
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 {
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)
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()
let scriptToExecute =
"var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; var network = performance.getEntries() || {}; return network;";
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();
<!-- Модальное окно добавления рамки -->
<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>&times;</span></button>
<h4 class="modal-title" id="historyLabel"><i class="fa fa-list"></i> Добавить рамку</h4>
</div>
<div class="panel-body">
$("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,