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
Ошибка: | |
.\venv\Scripts\activate : Невозможно загрузить файл C:\path\venv\Scripts\activate.ps1, так как выполнение сценариев отключено в этой системе. | |
Для получения дополнительных сведений см. about_Execution_Policies по адресу http://go.microsoft.com/fwlink/?LinkID=135170. | |
строка:1 знак:1 | |
.\venv\Scripts\activate | |
~~~~~~~~~~~~~~~~~~~~~~~ | |
CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException | |
FullyQualifiedErrorId : UnauthorizedAccess | |
Решение проблемы: |
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
function rot13(message) { | |
const alphabet = { | |
a: 'n', | |
b: 'o', | |
c: 'p', | |
d: 'q', | |
e: 'r', | |
f: 's', | |
g: 't', | |
h: 'u', |
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
// Моё решение | |
function pickPeaks(arr) { | |
const pos = []; | |
const peaks = []; | |
arr.forEach((el, index) => { | |
if (index && index !== arr.length - 1) { | |
if (arr[index - 1] < el && el >= arr[index + 1]) { | |
let need_remove = true; |
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
// https://www.youtube.com/watch?v=Ee4fBFKpn0M&t=128s | |
let wall = [ | |
[2,1,1], | |
[1,2,1], | |
[1,1,1,1], | |
[1,3] | |
]; | |
const view = wall => { |
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
<?php | |
namespace ValueObjects; | |
use Exception; | |
use ReflectionClass; | |
use function array_map; | |
use ReflectionException; | |
use Illuminate\Support\Str; | |
use function property_exists; |