Skip to content

Instantly share code, notes, and snippets.

View luxplanjay's full-sized avatar
:shipit:
Just doing corona things

Alexander Repeta luxplanjay

:shipit:
Just doing corona things
View GitHub Profile
/*
Напишите приложение для хранения url веб-страниц в виде карточек-закладок.
Реализуйте следующий функционал:
- Используйте Gulp для сборки проекта, JS обработан транспайлером Babel, ресурсы оптимизированы
- Для добавления новой закладки, в приложении есть форма с элементом input и кнопкой "Добавить"
- В приложении есть список всех добавленных карточек-закладок, располагающийся под формой
/*
Возьмите домашнее задание №12 и перепишите его ипользуя паттерн MVC.
Вынесите отдельно логику, отдельно представление и реакцию на действия пользователя.
Model, View и Controller вынести в отдельные файлы и сделать классами.
Используйте ES6 модули и Webpack для сборки.
Использование будет выглядеть следующим образом.
*/
/*
Напишите тесты к приложению из домашней работы номер 13.
Постарайтесь покрыть тестами как можно больше методов в Model.
*/
// Can prefetch css and js
function prefetchResource(resourceUrl) {
const xhrRequest = new XMLHttpRequest();
xhrRequest.open('GET', resourceUrl, true);
xhrRequest.send();
}
// Can prefetch everything but support in not great, use for HTML
// <link rel="prefetch" href="path-to-content">
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
// Install packages
// npm install --save-dev prettier eslint-config-airbnb eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y husky lint-staged
{
"extends": [
"eslint:recommended",
"react-app",
"airbnb",
"plugin:import/errors",
"plugin:react/recommended",
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
rules:
block-no-empty: true
color-no-invalid-hex: true
font-family-no-duplicate-names: true
font-family-no-missing-generic-family-keyword: true
function-calc-no-invalid: true
function-calc-no-unspaced-operator: true
function-linear-gradient-no-nonstandard-direction: true
string-no-newline: true
unit-no-unknown: true
alt-require: true
attr-lowercase: true
attr-no-duplication: true
attr-unsafe-chars: true
attr-value-double-quotes: true
attr-value-not-empty: false
doctype-first: true
doctype-html5: true
head-script-disabled: true
href-abs-or-rel: false
@luxplanjay
luxplanjay / visually-hidden.css
Last active April 6, 2025 12:22
Visually hidden CSS pattern
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
clip-path: inset(100%);