function fillEmptyCells() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var range = sheet.getRange("A1:A100");
var values = range.getValues();
for (var i = 0; i < values.length; i++) {
if (values[i][0] == "") {
values[i][0] = ".";
}
}
range.setValues(values);
}
const newArray = originalArray.map(({ dates, ...rest }) => ({
...rest,
...dates
}));
for(let i = 2; i <= 19; i++) {
let arr = await page.evaluate((index) => {
let text = document.querySelector(`body > main > div > section > div:nth-child(${index})`).innerText;
return text;
}, i);
console.log(arr);
}
cd C:\2
$clipboardText = Get-Clipboard -Format Text
anyflip-downloader
# Используйте $clipboardText здесь
alias_name() {
command -flag 'option -ss '"$1"' -to '"$2"'' "$3"
}
# Укажите путь к папке с фотографиями
$sourceFolder = "Путь_к_исходной_папке"
$files = Get-ChildItem -Path $sourceFolder -File
foreach ($file in $files) {
$newFolderPath = Join-Path -Path $sourceFolder -ChildPath $file.BaseName
New-Item -ItemType Directory -Path $newFolderPath -ErrorAction SilentlyContinue | Out-Null
Move-Item -Path $file.FullName -Destination $newFolderPath
}
function exit(n) {
return new Promise(function(resolve) {
setTimeout(() => resolve(n), 1000);
});
}
async function printNumbers() {
for (let i = 1; i <= 10; i++) {
let number = await exit(i);
console.log(number);
}
}
printNumbers();
let n = 1;
function exit(n) {
return new Promise(function(resolve, reject) {
setTimeout(() => resolve(n), 1000);
});
}
function outputNumber(n) {
if (n <= 10) {
exit(n).then((num) => {
console.log(num);
outputNumber(num + 1);
});
}
}
outputNumber(n);
@echo off
setlocal enabledelayedexpansion
set "mainDir=C:\path\to\main"
set "7zPath=C:\Program Files\7-Zip\7z.exe"
for /D %%f in ("%mainDir%\*") do (
echo Processing folder: %%f
set "folderPath=%%f"
set "archiveName=%%~nf"
set "archivePath=%mainDir%\!archiveName!"
echo Creating archive at: !archivePath!.zip
"!7zPath!" a -tzip "!archivePath!.zip" "!folderPath!\*"
)
endlocal