chrome://flags/#ignore-gpu-blocklist
Игнорирование блоклиста GPU
Принудительно включает аппаратное ускорение на системах, которые Chrome считает неподдерживаемыми. Обходит встроенный список "несовместимого" железа.
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
| [user] | |
| name = | |
| email = | |
| [alias] | |
| current-branch = "!git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'" | |
| a = "!git add . && git s" | |
| ch = "!echo 'Stop using git checkout' && false" | |
| c = commit -S -m | |
| s = status --short --branch | |
| d = diff |
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
| # EditorConfig файл | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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
| / Мы ожидаем, что Вы исправите синтаксические ошибки, сделаете перехват возможных исключений и улучшите читаемость кода. | |
| // А так же, напишите кастомный хук useThrottle и используете его там где это нужно. | |
| // Желательно использование React.memo и React.useCallback там где это имеет смысл. | |
| // Будет большим плюсом, если Вы сможете закэшировать получение случайного пользователя. | |
| // Укажите правильные типы. | |
| // По возможности пришлите Ваш вариант в https://codesandbox.io | |
| import React, { useState } from "react"; | |
| const URL = "https://jsonplaceholder.typicode.com/users"; |
Конечно, вот перевод в формат Markdown:
map(отображение):- Определение: Создает новый массив, применяя функцию к каждому элементу исходного массива.
- Пример:
const numbers = [1, 2, 3]; const squared = numbers.map(x => x * x); // squared: [1, 4, 9]
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
| # https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04 | |
| sudo fallocate -l 10G /swapfile && | |
| sudo chmod 600 /swapfile && | |
| sudo mkswap /swapfile && | |
| sudo cp /etc/fstab /etc/fstab.bak && | |
| echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab /swapfile none swap sw 0 0 |
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
| #!/bin/bash | |
| # Опции по умолчанию | |
| DISABLE_MODE=true | |
| REMOVE_MODE=false | |
| # Функция для вывода помощи | |
| show_help() { | |
| echo "Использование: $0 [OPTIONS]" | |
| echo "" |
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
| [user] | |
| name = Ramil | |
| email = example@gmail.com | |
| [core] | |
| editor = nano | |
| [init] | |
| defaultBranch = 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
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
| # /etc/default/grub | |
| GRUB_DEFAULT=saved | |
| GRUB_SAVEDEFAULT=true | |
| GRUB_TIMEOUT_STYLE=hidden | |
| GRUB_TIMEOUT=3 | |
| GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | |
| GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
| GRUB_CMDLINE_LINUX="" | |
| GRUB_BACKGROUND="/files/pictures/mars.jpg" | |
| GRUB_GFXMODE=640x480 |
NewerOlder